Skip to content

Commit c69a960

Browse files
authored
fix: resolve the issue of taosdump being unable to filter microsecond data exports (#32571)
1 parent 904113d commit c69a960

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/army/tools/benchmark/basic/queryMain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def checkItem(self, output, key, end, expect, equal):
8787
if ret == False:
8888
tdLog.exit(f"not found key:{key}. end:{end} output:\n{output}")
8989

90-
fval = float(value)
90+
tdLog.info(f"get key:{key} value:{value} end:{end}, output:\n{output}")
91+
cleaned_value = value.split("\n")[0]
92+
fval = float(cleaned_value)
9193
# compare
9294
if equal and fval != expect:
9395
tdLog.exit(f"check not expect. expect:{expect} real:{fval}, key:'{key}' end:'{end}' output:\n{output}")

tools/taos-tools/inc/dump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#define VALUE_BUF_LEN 4096
5555
#define MAX_RECORDS_PER_REQ 32766
5656
#define NEED_CALC_COUNT UINT64_MAX
57-
#define HUMAN_TIME_LEN 28
57+
#define HUMAN_TIME_LEN 60
5858
#define DUMP_DIR_LEN (MAX_DIR_LEN - (TSDB_DB_NAME_LEN + 10))
5959
#define TSDB_USET_PASSWORD_LONGLEN 256 // come from tdef.h
6060
#define ITEM_SPACE 50

0 commit comments

Comments
 (0)