update
This commit is contained in:
parent
ccca39f60b
commit
852f526876
|
@ -137,18 +137,20 @@ class TDTestCase:
|
||||||
stbname = tdCom.getLongName(5,"letters")
|
stbname = tdCom.getLongName(5,"letters")
|
||||||
stream_name = tdCom.getLongName(5,"letters")
|
stream_name = tdCom.getLongName(5,"letters")
|
||||||
tdSql.execute(f'create table {stbname} (ts timestamp,c0 int) tags(t0 int)')
|
tdSql.execute(f'create table {stbname} (ts timestamp,c0 int) tags(t0 int)')
|
||||||
|
tdSql.execute(f'create table tb using {stbname} tags(1)')
|
||||||
tdSql.execute(f'create stream {stream_name} into stb as select * from {self.dbname}.{stbname} partition by tbname')
|
tdSql.execute(f'create stream {stream_name} into stb as select * from {self.dbname}.{stbname} partition by tbname')
|
||||||
tdSql.query(f'select * from information_schema.ins_streams where stream_name = "{stream_name}"')
|
tdSql.query(f'select * from information_schema.ins_streams where stream_name = "{stream_name}"')
|
||||||
print(tdSql.queryResult)
|
print(tdSql.queryResult)
|
||||||
tdSql.checkEqual(tdSql.queryResult[0][2],f'create stream {stream_name} into stb as select * from {self.dbname}.{stbname} partition by tbname')
|
tdSql.checkEqual(tdSql.queryResult[0][2],f'create stream {stream_name} into stb as select * from {self.dbname}.{stbname} partition by tbname')
|
||||||
tdSql.execute(f'drop stream {stream_name}')
|
tdSql.execute(f'drop stream {stream_name}')
|
||||||
tdSql.execute(f'create stream {stream_name} into stb as select c0 from {self.dbname}.{stbname} partition by tbname')
|
tdSql.execute(f'create stream {stream_name} into stb1 as select * from tb')
|
||||||
tdSql.query(f'select * from information_schema.ins_streams where stream_name = "{stream_name}"')
|
tdSql.query(f'select * from information_schema.ins_streams where stream_name = "{stream_name}"')
|
||||||
tdSql.checkEqual(tdSql.queryResult[0][2],f'create stream {stream_name} into stb as select c0 from {stbname} partition by tbname')
|
tdSql.checkEqual(tdSql.queryResult[0][2],f'create stream {stream_name} into stb1 as select * from tb')
|
||||||
|
tdSql.execute(f'drop database {self.dbname}')
|
||||||
def run(self):
|
def run(self):
|
||||||
# self.drop_ntb_check()
|
self.drop_ntb_check()
|
||||||
# self.drop_stb_ctb_check()
|
self.drop_stb_ctb_check()
|
||||||
# self.drop_topic_check()
|
self.drop_topic_check()
|
||||||
self.drop_stream_check()
|
self.drop_stream_check()
|
||||||
pass
|
pass
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
|
Loading…
Reference in New Issue