fix: json csv and txt file postion

This commit is contained in:
Alex Duan 2025-02-03 17:03:49 +08:00
parent 803a1f16db
commit f66ca372a2
5 changed files with 3 additions and 1296 deletions

View File

@ -14,7 +14,7 @@
{
"query_interval": 1,
"concurrent":1,
"sql_file": "./taosbenchmark/json/query-error-sqls.txt",
"sql_file": "./tools/benchmark/json/query-error-sqls.txt",
"result": "taosc_query_specified-sqlfile"
}
}

View File

@ -14,6 +14,6 @@
"specified_table_query": {
"query_interval": 3,
"concurrent": 3,
"sql_file": "./taosbenchmark/json/query-sqls-slow-query.txt"
"sql_file": "./tools/benchmark/basic/json/query-sqls-slow-query.txt"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -159,7 +159,6 @@
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestTypeJson.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestBasic.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestTypeUnsignedSmallInt.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestColTag.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpDbNtb.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestTypeUnsignedTinyInt.py
,,y,army,./pytest.sh python3 ./test.py -f tools/taosdump/native/taosdumpTestTypeUnsignedInt.py

View File

@ -1048,10 +1048,10 @@ static unsigned char *print(const tools_cJSON * const item, tools_cJSON_bool for
if (hooks->reallocate != NULL)
{
printed = (unsigned char*) hooks->reallocate(buffer->buffer, buffer->length);
buffer->buffer = NULL;
if (printed == NULL) {
goto fail;
}
buffer->buffer = NULL;
}
else /* otherwise copy the JSON over to a new buffer */
{