Merge remote-tracking branch 'origin/3.0' into fix/TD-20631
This commit is contained in:
commit
93b1728717
|
@ -101,6 +101,7 @@ tests/examples/JDBC/JDBCDemo/.settings/
|
||||||
source/libs/parser/inc/sql.*
|
source/libs/parser/inc/sql.*
|
||||||
tests/script/tmqResult.txt
|
tests/script/tmqResult.txt
|
||||||
tests/tmqResult.txt
|
tests/tmqResult.txt
|
||||||
|
tests/script/jenkins/basic.txt
|
||||||
|
|
||||||
# Emacs
|
# Emacs
|
||||||
# -*- mode: gitignore; -*-
|
# -*- mode: gitignore; -*-
|
||||||
|
|
|
@ -5672,12 +5672,12 @@ int32_t modeFunction(SqlFunctionCtx* pCtx) {
|
||||||
int32_t numOfElems = 0;
|
int32_t numOfElems = 0;
|
||||||
int32_t startOffset = pCtx->offset;
|
int32_t startOffset = pCtx->offset;
|
||||||
for (int32_t i = pInput->startRowIndex; i < pInput->numOfRows + pInput->startRowIndex; ++i) {
|
for (int32_t i = pInput->startRowIndex; i < pInput->numOfRows + pInput->startRowIndex; ++i) {
|
||||||
char* data = colDataGetData(pInputCol, i);
|
|
||||||
if (colDataIsNull_s(pInputCol, i)) {
|
if (colDataIsNull_s(pInputCol, i)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
numOfElems++;
|
numOfElems++;
|
||||||
|
|
||||||
|
char* data = colDataGetData(pInputCol, i);
|
||||||
doModeAdd(pInfo, i, pCtx, data);
|
doModeAdd(pInfo, i, pCtx, data);
|
||||||
|
|
||||||
if (sizeof(SModeInfo) + pInfo->numOfPoints * (sizeof(SModeItem) + pInfo->colBytes) >= MODE_MAX_RESULT_SIZE) {
|
if (sizeof(SModeInfo) + pInfo->numOfPoints * (sizeof(SModeItem) + pInfo->colBytes) >= MODE_MAX_RESULT_SIZE) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ LOG_BK_DIR=/data/valgrind_log_backup # 192.168.0.203
|
||||||
SIM_FILES=./jenkins/basic.txt
|
SIM_FILES=./jenkins/basic.txt
|
||||||
cases_task_file=../parallel_test/cases.task
|
cases_task_file=../parallel_test/cases.task
|
||||||
|
|
||||||
cat $cases_task_file | grep "./test.sh " | awk -F, '{print $5}' > ./jenkins/basic.txt
|
cat $cases_task_file | grep "./test.sh " | awk -F, '{print $5}' > $SIM_FILES
|
||||||
|
|
||||||
while getopts "v:r:f:" arg
|
while getopts "v:r:f:" arg
|
||||||
do
|
do
|
||||||
|
@ -24,9 +24,9 @@ do
|
||||||
r)
|
r)
|
||||||
LOG_BK_DIR=$(echo $OPTARG)
|
LOG_BK_DIR=$(echo $OPTARG)
|
||||||
;;
|
;;
|
||||||
f)
|
#f)
|
||||||
SIM_FILES=$(echo $OPTARG)
|
# SIM_FILES=$(echo $OPTARG)
|
||||||
;;
|
# ;;
|
||||||
?) #unknow option
|
?) #unknow option
|
||||||
echo "unkonw argument"
|
echo "unkonw argument"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue