Merge pull request #20802 from taosdata/fix/TD-AUTOGET-MAIN

test: change autogen.py random to fixed
This commit is contained in:
Hui Li 2023-04-11 10:52:30 +08:00 committed by GitHub
commit 6492445459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ class AutoGen:
metas = []
for i in range(cnt):
colname = f"{pre}{i}"
if i < len(types):
sel = i
else:
sel = random.randint(0, len(types)-1)
sel = i % len(types)
coltype = types[sel]
sql = f"{colname} {coltype}"
if sqls != "":