Merge pull request #20801 from taosdata/test/TD-AUTOGETN-3.0

test: change random to fixed
This commit is contained in:
dapan1121 2023-04-07 15:11:52 +08:00 committed by GitHub
commit b5b4f5db95
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 = len(types) % len(types)
coltype = types[sel]
sql = f"{colname} {coltype}"
if sqls != "":