diff --git a/cmake/cmake.define b/cmake/cmake.define index 1655154506d1248becc16f54563e1b2d76ff03d9..d1d9266bca9319bb997bf16f6ce278dd682c2958 100644 --- a/cmake/cmake.define +++ b/cmake/cmake.define @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.16) set(CMAKE_VERBOSE_MAKEFILE OFF) +SET(BUILD_SHARED_LIBS "OFF") + #set output directory SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/lib) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build/bin) diff --git a/include/libs/function/tudf.h b/include/libs/function/tudf.h index 22314e4bd667a9f4619386f01ba3633cde73581c..0000972f5ecfee38784414d1e6df2618646109a1 100644 --- a/include/libs/function/tudf.h +++ b/include/libs/function/tudf.h @@ -144,7 +144,7 @@ static FORCE_INLINE int32_t udfColEnsureCapacity(SUdfColumn* pColumn, int32_t ne return TSDB_CODE_SUCCESS; } - int allocCapacity = MAX(data->rowsAlloc, 8); + int allocCapacity = TMAX(data->rowsAlloc, 8); while (allocCapacity < newCapacity) { allocCapacity *= UDF_MEMORY_EXP_GROWTH; } @@ -238,7 +238,7 @@ static FORCE_INLINE int32_t udfColSetRow(SUdfColumn* pColumn, uint32_t currentRo data->varLenCol.payloadLen += dataLen; } } - data->numOfRows = MAX(currentRow + 1, data->numOfRows); + data->numOfRows = TMAX(currentRow + 1, data->numOfRows); return 0; } diff --git a/source/os/src/osDir.c b/source/os/src/osDir.c index 6d90773d1b0d04b803011adb97896ece705814ed..19e4defafc47dfb0b6b84a856ddac8d8484b42c0 100644 --- a/source/os/src/osDir.c +++ b/source/os/src/osDir.c @@ -44,7 +44,7 @@ int wordexp(char *words, wordexp_t *pwordexp, int flags) { return -1; } - printf("parse relative path:%s to abs path:%s\n", words, pwordexp->wordPos); + // printf("parse relative path:%s to abs path:%s\n", words, pwordexp->wordPos); return 0; }