提交 68ffa3b5 编写于 作者: Z zhaoyanggh

modify test

上级 5af76fb2
...@@ -1494,7 +1494,17 @@ class TDTestCase: ...@@ -1494,7 +1494,17 @@ class TDTestCase:
or sql == "select ceil(t1.usmallint_col) from t1"\ or sql == "select ceil(t1.usmallint_col) from t1"\
or sql == "select ceil(super.usmallint_col) from super"\ or sql == "select ceil(super.usmallint_col) from super"\
or sql == "select ceil(t1.utinyint_col) from t1"\ or sql == "select ceil(t1.utinyint_col) from t1"\
or sql == "select ceil(super.utinyint_col) from super": or sql == "select ceil(super.utinyint_col) from super"\
or sql == "select ceil(super.int_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.bigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.smallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.tinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.float_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.double_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.uint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.ubigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.usmallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select ceil(super.utinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag":
tdSql.query(sql) tdSql.query(sql)
else: else:
tdSql.error(sql) tdSql.error(sql)
......
...@@ -17,6 +17,7 @@ from util.log import * ...@@ -17,6 +17,7 @@ from util.log import *
from util.cases import * from util.cases import *
from util.sql import * from util.sql import *
import numpy as np import numpy as np
import random
class TDTestCase: class TDTestCase:
...@@ -24,640 +25,1494 @@ class TDTestCase: ...@@ -24,640 +25,1494 @@ class TDTestCase:
tdLog.debug("start to execute %s" % __file__) tdLog.debug("start to execute %s" % __file__)
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
def run(self): def randomInt(self):
tdSql.prepare() return random.randint(-2147483647, 2147483647)
tdSql.execute("create stable super (ts timestamp, c1 timestamp, c2 int, c3 bigint, c4 float, c5 double, c6 binary(8), c7 smallint, c8 tinyint, c9 bool, c10 nchar(8)) tags (t1 int, t2 bigint, t3 float, t4 double, t5 binary(8), t6 smallint, t7 tinyint, t8 bool, t9 nchar(8))")
tdSql.execute("create table t1 using super tags (1, 8, 1.0, 1.0, 'abcdefgh', 1, 1, 1, 'abcdeffh')")
tdSql.execute("insert into t1 values (1537146000000, 1537146000000, 1, 1, 1.0, 1.0, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000001, 1537146000000, 1, 1, 1.1, 1.1, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000002, 1537146000000, 1, 1, 1.2, 1.2, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000003, 1537146000000, 1, 1, 1.3, 1.3, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000004, 1537146000000, 1, 1, 1.4, 1.4, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000005, 1537146000000, 1, 1, 1.5, 1.5, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000006, 1537146000000, 1, 1, 1.6, 1.6, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000007, 1537146000000, 1, 1, 1.7, 1.7, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000008, 1537146000000, 1, 1, 1.8, 1.8, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000009, 1537146000000, 1, 1, 1.9, 1.9, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000010, 1537146000000, 1, 1, 1.4444445, 1.444445, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000011, 1537146000000, -1, -1, -1.0, -1.0, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000012, 1537146000000, -1, -1, -1.1, -1.1, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000013, 1537146000000, -1, -1, -1.2, -1.2, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000014, 1537146000000, -1, -1, -1.3, -1.3, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000015, 1537146000000, -1, -1, -1.4, -1.4, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000016, 1537146000000, -1, -1, -1.5, -1.5, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000017, 1537146000000, -1, -1, -1.6, -1.6, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000018, 1537146000000, -1, -1, -1.7, -1.7, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000019, 1537146000000, -1, -1, -1.8, -1.8, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000020, 1537146000000, -1, -1, -1.9, -1.9, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000021, 1537146000000, -1, -1, -1.4444445, -1.444445, 'abcdefgh',-1,-1,0,'abcdefgh')")
# tags does not support floor
# for stable
tdSql.error("select floor(t1) from db.super")
tdSql.error("select floor(t2) from db.super")
tdSql.error("select floor(t3) from db.super")
tdSql.error("select floor(t4) from db.super")
tdSql.error("select floor(t5) from db.super")
tdSql.error("select floor(t6) from db.super")
tdSql.error("select floor(t7) from db.super")
tdSql.error("select floor(t8) from db.super")
tdSql.error("select floor(t9) from db.super")
# for table
tdSql.error("select floor(t1) from db.t1")
tdSql.error("select floor(t2) from db.t1")
tdSql.error("select floor(t3) from db.t1")
tdSql.error("select floor(t4) from db.t1")
tdSql.error("select floor(t5) from db.t1")
tdSql.error("select floor(t6) from db.t1")
tdSql.error("select floor(t7) from db.t1")
tdSql.error("select floor(t8) from db.t1")
tdSql.error("select floor(t9) from db.t1")
# check support columns
# for stable
tdSql.error("select floor(ts) from db.super")
tdSql.error("select floor(c1) from db.super")
tdSql.query("select floor(c2) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c3) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c4) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i == 0:
tdSql.checkData(0,0,1)
if 0 < i < 11:
tdSql.checkData(i,0,1)
if i == 11:
tdSql.checkData(11,0,-1)
if i > 11:
tdSql.checkData(i,0,-2)
tdSql.query("select floor(c5) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i == 0:
tdSql.checkData(0,0,1)
if 0 < i < 11:
tdSql.checkData(i,0,1)
if i == 11:
tdSql.checkData(11,0,-1)
if i > 11:
tdSql.checkData(i,0,-2)
tdSql.error("select floor(c6) from db.super")
tdSql.query("select floor(c7) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c8) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.error("select floor(c9) from db.super")
tdSql.error("select floor(c10) from db.super")
# for table
tdSql.error("select floor(ts) from db.t1")
tdSql.error("select floor(c1) from db.t1")
tdSql.query("select floor(c2) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c3) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c4) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i == 0:
tdSql.checkData(0,0,1)
if 0 < i < 11:
tdSql.checkData(i,0,1)
if i == 11:
tdSql.checkData(11,0,-1)
if i > 11:
tdSql.checkData(i,0,-2)
tdSql.query("select floor(c5) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i == 0:
tdSql.checkData(0,0,1)
if 0 < i < 11:
tdSql.checkData(i,0,1)
if i == 11:
tdSql.checkData(11,0,-1)
if i > 11:
tdSql.checkData(i,0,-2)
tdSql.error("select floor(c6) from db.t1")
tdSql.query("select floor(c7) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select floor(c8) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.error("select floor(c9) from db.t1")
tdSql.error("select floor(c10) from db.t1")
# does not support aggregation
# for super table
tdSql.error("select max(floor(c2)) from db.super")
tdSql.error("select max(floor(c3)) from db.super")
tdSql.error("select max(floor(c4)) from db.super")
tdSql.error("select max(floor(c5)) from db.super")
tdSql.error("select max(floor(c7)) from db.super")
tdSql.error("select max(floor(c8)) from db.super")
tdSql.error("select floor(max(c2)) from db.super")
tdSql.error("select floor(max(c3)) from db.super")
tdSql.error("select floor(max(c4)) from db.super")
tdSql.error("select floor(max(c5)) from db.super")
tdSql.error("select floor(max(c7)) from db.super")
tdSql.error("select floor(max(c8)) from db.super")
tdSql.error("select min(floor(c2)) from db.super")
tdSql.error("select min(floor(c3)) from db.super")
tdSql.error("select min(floor(c4)) from db.super")
tdSql.error("select min(floor(c5)) from db.super")
tdSql.error("select min(floor(c7)) from db.super")
tdSql.error("select min(floor(c8)) from db.super")
tdSql.error("select floor(min(c2)) from db.super")
tdSql.error("select floor(min(c3)) from db.super")
tdSql.error("select floor(min(c4)) from db.super")
tdSql.error("select floor(min(c5)) from db.super")
tdSql.error("select floor(min(c7)) from db.super")
tdSql.error("select floor(min(c8)) from db.super")
tdSql.error("select avg(floor(c2)) from db.super")
tdSql.error("select avg(floor(c3)) from db.super")
tdSql.error("select avg(floor(c4)) from db.super")
tdSql.error("select avg(floor(c5)) from db.super")
tdSql.error("select avg(floor(c7)) from db.super")
tdSql.error("select avg(floor(c8)) from db.super")
tdSql.error("select floor(avg(c2)) from db.super")
tdSql.error("select floor(avg(c3)) from db.super")
tdSql.error("select floor(avg(c4)) from db.super")
tdSql.error("select floor(avg(c5)) from db.super")
tdSql.error("select floor(avg(c7)) from db.super")
tdSql.error("select floor(avg(c8)) from db.super")
tdSql.error("select last(floor(c2)) from db.super")
tdSql.error("select last(floor(c3)) from db.super")
tdSql.error("select last(floor(c4)) from db.super")
tdSql.error("select last(floor(c5)) from db.super")
tdSql.error("select last(floor(c7)) from db.super")
tdSql.error("select last(floor(c8)) from db.super")
tdSql.error("select floor(last(c2)) from db.super")
tdSql.error("select floor(last(c3)) from db.super")
tdSql.error("select floor(last(c4)) from db.super")
tdSql.error("select floor(last(c5)) from db.super")
tdSql.error("select floor(last(c7)) from db.super")
tdSql.error("select floor(last(c8)) from db.super")
tdSql.error("select last_row(floor(c2)) from db.super")
tdSql.error("select last_row(floor(c3)) from db.super")
tdSql.error("select last_row(floor(c4)) from db.super")
tdSql.error("select last_row(floor(c5)) from db.super")
tdSql.error("select last_row(floor(c7)) from db.super")
tdSql.error("select last_row(floor(c8)) from db.super")
tdSql.error("select floor(last_row(c2)) from db.super")
tdSql.error("select floor(last_row(c3)) from db.super")
tdSql.error("select floor(last_row(c4)) from db.super")
tdSql.error("select floor(last_row(c5)) from db.super")
tdSql.error("select floor(last_row(c7)) from db.super")
tdSql.error("select floor(last_row(c8)) from db.super")
tdSql.error("select first(floor(c2)) from db.super")
tdSql.error("select first(floor(c3)) from db.super")
tdSql.error("select first(floor(c4)) from db.super")
tdSql.error("select first(floor(c5)) from db.super")
tdSql.error("select first(floor(c7)) from db.super")
tdSql.error("select first(floor(c8)) from db.super")
tdSql.error("select floor(first(c2)) from db.super")
tdSql.error("select floor(first(c3)) from db.super")
tdSql.error("select floor(first(c4)) from db.super")
tdSql.error("select floor(first(c5)) from db.super")
tdSql.error("select floor(first(c7)) from db.super")
tdSql.error("select floor(first(c8)) from db.super")
tdSql.error("select diff(floor(c2)) from db.super")
tdSql.error("select diff(floor(c3)) from db.super")
tdSql.error("select diff(floor(c4)) from db.super")
tdSql.error("select diff(floor(c5)) from db.super")
tdSql.error("select diff(floor(c7)) from db.super")
tdSql.error("select diff(floor(c8)) from db.super")
tdSql.error("select floor(diff(c2)) from db.super")
tdSql.error("select floor(diff(c3)) from db.super")
tdSql.error("select floor(diff(c4)) from db.super")
tdSql.error("select floor(diff(c5)) from db.super")
tdSql.error("select floor(diff(c7)) from db.super")
tdSql.error("select floor(diff(c8)) from db.super")
tdSql.error("select percentile(floor(c2), 0) from db.super")
tdSql.error("select percentile(floor(c3), 0) from db.super")
tdSql.error("select percentile(floor(c4), 0) from db.super")
tdSql.error("select percentile(floor(c5), 0) from db.super")
tdSql.error("select percentile(floor(c7), 0) from db.super")
tdSql.error("select percentile(floor(c8), 0) from db.super")
tdSql.error("select floor(percentile(c2, 0)) from db.super")
tdSql.error("select floor(percentile(c3, 0)) from db.super")
tdSql.error("select floor(percentile(c4, 0)) from db.super")
tdSql.error("select floor(percentile(c5, 0)) from db.super")
tdSql.error("select floor(percentile(c7, 0)) from db.super")
tdSql.error("select floor(percentile(c8, 0)) from db.super")
tdSql.error("select derivate(floor(c2),1s, 1) from db.super")
tdSql.error("select derivate(floor(c3),1s, 1) from db.super")
tdSql.error("select derivate(floor(c4),1s, 1) from db.super")
tdSql.error("select derivate(floor(c5),1s, 1) from db.super")
tdSql.error("select derivate(floor(c7),1s, 1) from db.super")
tdSql.error("select derivate(floor(c8),1s, 1) from db.super")
tdSql.error("select floor(derivate(c2,1s, 1)) from db.super")
tdSql.error("select floor(derivate(c3,1s, 1)) from db.super")
tdSql.error("select floor(derivate(c4,1s, 1)) from db.super")
tdSql.error("select floor(derivate(c5,1s, 1)) from db.super")
tdSql.error("select floor(derivate(c7,1s, 1)) from db.super")
tdSql.error("select floor(derivate(c8,1s, 1)) from db.super")
tdSql.error("select leastsquares(floor(c2),1, 1) from db.super")
tdSql.error("select leastsquares(floor(c3),1, 1) from db.super")
tdSql.error("select leastsquares(floor(c4),1, 1) from db.super")
tdSql.error("select leastsquares(floor(c5),1, 1) from db.super")
tdSql.error("select leastsquares(floor(c7),1, 1) from db.super")
tdSql.error("select leastsquares(floor(c8),1, 1) from db.super")
tdSql.error("select floor(leastsquares(c2,1, 1)) from db.super")
tdSql.error("select floor(leastsquares(c3,1, 1)) from db.super")
tdSql.error("select floor(leastsquares(c4,1, 1)) from db.super")
tdSql.error("select floor(leastsquares(c5,1, 1)) from db.super")
tdSql.error("select floor(leastsquares(c7,1, 1)) from db.super")
tdSql.error("select floor(leastsquares(c8,1, 1)) from db.super")
tdSql.error("select count(floor(c2)) from db.super")
tdSql.error("select count(floor(c3)) from db.super")
tdSql.error("select count(floor(c4)) from db.super")
tdSql.error("select count(floor(c5)) from db.super")
tdSql.error("select count(floor(c7)) from db.super")
tdSql.error("select count(floor(c8)) from db.super")
tdSql.error("select floor(count(c2)) from db.super")
tdSql.error("select floor(count(c3)) from db.super")
tdSql.error("select floor(count(c4)) from db.super")
tdSql.error("select floor(count(c5)) from db.super")
tdSql.error("select floor(count(c7)) from db.super")
tdSql.error("select floor(count(c8)) from db.super")
tdSql.error("select twa(floor(c2)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(floor(c3)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(floor(c4)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(floor(c5)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(floor(c7)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(floor(c8)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c2)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c3)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c4)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c5)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c7)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select floor(twa(c8)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select stddev(floor(c2)) from db.super")
tdSql.error("select stddev(floor(c3)) from db.super")
tdSql.error("select stddev(floor(c4)) from db.super")
tdSql.error("select stddev(floor(c5)) from db.super")
tdSql.error("select stddev(floor(c7)) from db.super")
tdSql.error("select stddev(floor(c8)) from db.super")
tdSql.error("select floor(stddev(c2)) from db.super")
tdSql.error("select floor(stddev(c3)) from db.super")
tdSql.error("select floor(stddev(c4)) from db.super")
tdSql.error("select floor(stddev(c5)) from db.super")
tdSql.error("select floor(stddev(c7)) from db.super")
tdSql.error("select floor(stddev(c8)) from db.super")
tdSql.error("select spread(floor(c2)) from db.super") def randomUInt(self):
tdSql.error("select spread(floor(c3)) from db.super") return random.randint(0, 4294967294)
tdSql.error("select spread(floor(c4)) from db.super")
tdSql.error("select spread(floor(c5)) from db.super")
tdSql.error("select spread(floor(c7)) from db.super")
tdSql.error("select spread(floor(c8)) from db.super")
tdSql.error("select floor(spread(c2)) from db.super") def randomBigint(self):
tdSql.error("select floor(spread(c3)) from db.super") return random.randint(-2**63 + 1, 2**63 - 1)
tdSql.error("select floor(spread(c4)) from db.super")
tdSql.error("select floor(spread(c5)) from db.super")
tdSql.error("select floor(spread(c7)) from db.super")
tdSql.error("select floor(spread(c8)) from db.super")
tdSql.error("select floor(c2 + 1) from db.super") def randomUBigint(self):
tdSql.error("select floor(c3 + 1) from db.super") return random.randint(0, 18446744073709551614)
tdSql.error("select floor(c4 + 1) from db.super")
tdSql.error("select floor(c5 + 1) from db.super")
tdSql.error("select floor(c7 + 1) from db.super")
tdSql.error("select floor(c8 + 1) from db.super")
tdSql.error("select bottom(floor(c2), 2) from db.super") def randomDouble(self):
tdSql.error("select bottom(floor(c3), 2) from db.super") return random.random()
tdSql.error("select bottom(floor(c4), 2) from db.super")
tdSql.error("select bottom(floor(c5), 2) from db.super")
tdSql.error("select bottom(floor(c7), 2) from db.super")
tdSql.error("select bottom(floor(c8), 2) from db.super")
tdSql.error("select floor(bottom(c2, 2)) from db.super") def randomNchar(self):
tdSql.error("select floor(bottom(c3, 2)) from db.super") return random.choice('abcdefghijklmnopqrstuvwxyz')
tdSql.error("select floor(bottom(c4, 2)) from db.super")
tdSql.error("select floor(bottom(c5, 2)) from db.super")
tdSql.error("select floor(bottom(c7, 2)) from db.super")
tdSql.error("select floor(bottom(c8, 2)) from db.super")
tdSql.error("select floor(c2) + floor(c3) from db.super") def randomSmallint(self):
tdSql.error("select floor(c3) + floor(c4) from db.super") return random.randint(-32767, 32767)
tdSql.error("select floor(c4) + floor(c5) from db.super")
tdSql.error("select floor(c5) + floor(c7) from db.super")
tdSql.error("select floor(c7) + floor(c8) from db.super")
tdSql.error("select floor(c8) + floor(c2) from db.super")
tdSql.error("select floor(c2 + c3) from db.super") def randomUSmallint(self):
tdSql.error("select floor(c3 + c4) from db.super") return random.randint(0, 65534)
tdSql.error("select floor(c4 + c5) from db.super")
tdSql.error("select floor(c5 + c7) from db.super")
tdSql.error("select floor(c7 + c8) from db.super")
tdSql.error("select floor(c8 + c2) from db.super")
# for table def randomTinyint(self):
tdSql.error("select max(floor(c2)) from db.t1") return random.randint(-127, 127)
tdSql.error("select max(floor(c3)) from db.t1")
tdSql.error("select max(floor(c4)) from db.t1")
tdSql.error("select max(floor(c5)) from db.t1")
tdSql.error("select max(floor(c7)) from db.t1")
tdSql.error("select max(floor(c8)) from db.t1")
tdSql.error("select floor(max(c2)) from db.t1") def randomUTinyint(self):
tdSql.error("select floor(max(c3)) from db.t1") return random.randint(0, 254)
tdSql.error("select floor(max(c4)) from db.t1")
tdSql.error("select floor(max(c5)) from db.t1")
tdSql.error("select floor(max(c7)) from db.t1")
tdSql.error("select floor(max(c8)) from db.t1")
tdSql.error("select min(floor(c2)) from db.t1") def run(self):
tdSql.error("select min(floor(c3)) from db.t1") select_command = [
tdSql.error("select min(floor(c4)) from db.t1") "floor(ts)",
tdSql.error("select min(floor(c5)) from db.t1") "floor(timestamp_col)",
tdSql.error("select min(floor(c7)) from db.t1") "floor(int_col)",
tdSql.error("select min(floor(c8)) from db.t1") "floor(bigint_col)",
"floor(float_col)",
tdSql.error("select floor(min(c2)) from db.t1") "floor(double_col)",
tdSql.error("select floor(min(c3)) from db.t1") "floor(binary_col)",
tdSql.error("select floor(min(c4)) from db.t1") "floor(smallint_col)",
tdSql.error("select floor(min(c5)) from db.t1") "floor(tinyint_col)",
tdSql.error("select floor(min(c7)) from db.t1") "floor(bool_col)",
tdSql.error("select floor(min(c8)) from db.t1") "floor(nchar_col)",
"floor(uint_col)",
tdSql.error("select avg(floor(c2)) from db.t1") "floor(ubigint_col)",
tdSql.error("select avg(floor(c3)) from db.t1") "floor(usmallint_col)",
tdSql.error("select avg(floor(c4)) from db.t1") "floor(utinyint_col)",
tdSql.error("select avg(floor(c5)) from db.t1") "floor(timestamp_tag)",
tdSql.error("select avg(floor(c7)) from db.t1") "floor(int_tag)",
tdSql.error("select avg(floor(c8)) from db.t1") "floor(bigint_tag)",
"floor(float_tag)",
tdSql.error("select floor(avg(c2)) from db.t1") "floor(double_tag)",
tdSql.error("select floor(avg(c3)) from db.t1") "floor(binary_tag)",
tdSql.error("select floor(avg(c4)) from db.t1") "floor(smallint_tag)",
tdSql.error("select floor(avg(c5)) from db.t1") "floor(tinyint_tag)",
tdSql.error("select floor(avg(c7)) from db.t1") "floor(bool_tag)",
tdSql.error("select floor(avg(c8)) from db.t1") "floor(nchar_tag)",
"floor(uint_tag)",
tdSql.error("select last(floor(c2)) from db.t1") "floor(ubigint_tag)",
tdSql.error("select last(floor(c3)) from db.t1") "floor(usmallint_tag)",
tdSql.error("select last(floor(c4)) from db.t1") "floor(utinyint_tag)",
tdSql.error("select last(floor(c5)) from db.t1") "count(floor(int_col))",
tdSql.error("select last(floor(c7)) from db.t1") "count(floor(bigint_col))",
tdSql.error("select last(floor(c8)) from db.t1") "count(floor(float_col))",
"count(floor(double_col))",
tdSql.error("select floor(last(c2)) from db.t1") "count(floor(smallint_col))",
tdSql.error("select floor(last(c3)) from db.t1") "count(floor(tinyint_col))",
tdSql.error("select floor(last(c4)) from db.t1") "count(floor(uint_col))",
tdSql.error("select floor(last(c5)) from db.t1") "count(floor(ubigint_col))",
tdSql.error("select floor(last(c7)) from db.t1") "count(floor(usmallint_col))",
tdSql.error("select floor(last(c8)) from db.t1") "count(floor(utinyint_col))",
"avg(floor(int_col))",
tdSql.error("select last_row(floor(c2)) from db.t1") "avg(floor(bigint_col))",
tdSql.error("select last_row(floor(c3)) from db.t1") "avg(floor(float_col))",
tdSql.error("select last_row(floor(c4)) from db.t1") "avg(floor(double_col))",
tdSql.error("select last_row(floor(c5)) from db.t1") "avg(floor(smallint_col))",
tdSql.error("select last_row(floor(c7)) from db.t1") "avg(floor(tinyint_col))",
tdSql.error("select last_row(floor(c8)) from db.t1") "avg(floor(uint_col))",
"avg(floor(ubigint_col))",
tdSql.error("select floor(last_row(c2)) from db.t1") "avg(floor(usmallint_col))",
tdSql.error("select floor(last_row(c3)) from db.t1") "avg(floor(utinyint_col))",
tdSql.error("select floor(last_row(c4)) from db.t1") "twa(floor(int_col))",
tdSql.error("select floor(last_row(c5)) from db.t1") "twa(floor(bigint_col))",
tdSql.error("select floor(last_row(c7)) from db.t1") "twa(floor(float_col))",
tdSql.error("select floor(last_row(c8)) from db.t1") "twa(floor(double_col))",
"twa(floor(smallint_col))",
tdSql.error("select first(floor(c2)) from db.t1") "twa(floor(tinyint_col))",
tdSql.error("select first(floor(c3)) from db.t1") "twa(floor(uint_col))",
tdSql.error("select first(floor(c4)) from db.t1") "twa(floor(ubigint_col))",
tdSql.error("select first(floor(c5)) from db.t1") "twa(floor(usmallint_col))",
tdSql.error("select first(floor(c7)) from db.t1") "twa(floor(utinyint_col))",
tdSql.error("select first(floor(c8)) from db.t1") "sum(floor(int_col))",
"sum(floor(bigint_col))",
tdSql.error("select floor(first(c2)) from db.t1") "sum(floor(float_col))",
tdSql.error("select floor(first(c3)) from db.t1") "sum(floor(double_col))",
tdSql.error("select floor(first(c4)) from db.t1") "sum(floor(smallint_col))",
tdSql.error("select floor(first(c5)) from db.t1") "sum(floor(tinyint_col))",
tdSql.error("select floor(first(c7)) from db.t1") "sum(floor(uint_col))",
tdSql.error("select floor(first(c8)) from db.t1") "sum(floor(ubigint_col))",
"sum(floor(usmallint_col))",
tdSql.error("select diff(floor(c2)) from db.t1") "sum(floor(utinyint_col))",
tdSql.error("select diff(floor(c3)) from db.t1") "stddev(floor(int_col))",
tdSql.error("select diff(floor(c4)) from db.t1") "stddev(floor(bigint_col))",
tdSql.error("select diff(floor(c5)) from db.t1") "stddev(floor(float_col))",
tdSql.error("select diff(floor(c7)) from db.t1") "stddev(floor(double_col))",
tdSql.error("select diff(floor(c8)) from db.t1") "stddev(floor(smallint_col))",
"stddev(floor(tinyint_col))",
tdSql.error("select floor(diff(c2)) from db.t1") "stddev(floor(uint_col))",
tdSql.error("select floor(diff(c3)) from db.t1") "stddev(floor(ubigint_col))",
tdSql.error("select floor(diff(c4)) from db.t1") "stddev(floor(usmallint_col))",
tdSql.error("select floor(diff(c5)) from db.t1") "stddev(floor(utinyint_col))",
tdSql.error("select floor(diff(c7)) from db.t1") "irate(floor(int_col))",
tdSql.error("select floor(diff(c8)) from db.t1") "irate(floor(bigint_col))",
"irate(floor(float_col))",
tdSql.error("select percentile(floor(c2), 0) from db.t1") "irate(floor(double_col))",
tdSql.error("select percentile(floor(c3), 0) from db.t1") "irate(floor(smallint_col))",
tdSql.error("select percentile(floor(c4), 0) from db.t1") "irate(floor(tinyint_col))",
tdSql.error("select percentile(floor(c5), 0) from db.t1") "irate(floor(uint_col))",
tdSql.error("select percentile(floor(c7), 0) from db.t1") "irate(floor(ubigint_col))",
tdSql.error("select percentile(floor(c8), 0) from db.t1") "irate(floor(usmallint_col))",
"irate(floor(utinyint_col))",
tdSql.error("select floor(percentile(c2, 0)) from db.t1") "leastsquares(floor(int_col), 1, 1)",
tdSql.error("select floor(percentile(c3, 0)) from db.t1") "leastsquares(floor(bigint_col), 1, 1)",
tdSql.error("select floor(percentile(c4, 0)) from db.t1") "leastsquares(floor(float_col), 1, 1)",
tdSql.error("select floor(percentile(c5, 0)) from db.t1") "leastsquares(floor(double_col), 1, 1)",
tdSql.error("select floor(percentile(c7, 0)) from db.t1") "leastsquares(floor(smallint_col), 1, 1)",
tdSql.error("select floor(percentile(c8, 0)) from db.t1") "leastsquares(floor(tinyint_col), 1, 1)",
"leastsquares(floor(uint_col), 1, 1)",
tdSql.error("select derivate(floor(c2),1s, 1) from db.t1") "leastsquares(floor(ubigint_col), 1, 1)",
tdSql.error("select derivate(floor(c3),1s, 1) from db.t1") "leastsquares(floor(usmallint_col), 1, 1)",
tdSql.error("select derivate(floor(c4),1s, 1) from db.t1") "leastsquares(floor(utinyint_col), 1, 1)",
tdSql.error("select derivate(floor(c5),1s, 1) from db.t1") "min(floor(int_col))",
tdSql.error("select derivate(floor(c7),1s, 1) from db.t1") "min(floor(bigint_col))",
tdSql.error("select derivate(floor(c8),1s, 1) from db.t1") "min(floor(float_col))",
"min(floor(double_col))",
tdSql.error("select floor(derivate(c2,1s, 1)) from db.t1") "min(floor(smallint_col))",
tdSql.error("select floor(derivate(c3,1s, 1)) from db.t1") "min(floor(tinyint_col))",
tdSql.error("select floor(derivate(c4,1s, 1)) from db.t1") "min(floor(uint_col))",
tdSql.error("select floor(derivate(c5,1s, 1)) from db.t1") "min(floor(ubigint_col))",
tdSql.error("select floor(derivate(c7,1s, 1)) from db.t1") "min(floor(usmallint_col))",
tdSql.error("select floor(derivate(c8,1s, 1)) from db.t1") "min(floor(utinyint_col))",
"max(floor(int_col))",
tdSql.error("select leastsquares(floor(c2),1, 1) from db.t1") "max(floor(bigint_col))",
tdSql.error("select leastsquares(floor(c3),1, 1) from db.t1") "max(floor(float_col))",
tdSql.error("select leastsquares(floor(c4),1, 1) from db.t1") "max(floor(double_col))",
tdSql.error("select leastsquares(floor(c5),1, 1) from db.t1") "max(floor(smallint_col))",
tdSql.error("select leastsquares(floor(c7),1, 1) from db.t1") "max(floor(tinyint_col))",
tdSql.error("select leastsquares(floor(c8),1, 1) from db.t1") "max(floor(uint_col))",
"max(floor(ubigint_col))",
tdSql.error("select floor(leastsquares(c2,1, 1)) from db.t1") "max(floor(usmallint_col))",
tdSql.error("select floor(leastsquares(c3,1, 1)) from db.t1") "max(floor(utinyint_col))",
tdSql.error("select floor(leastsquares(c4,1, 1)) from db.t1") "first(floor(int_col))",
tdSql.error("select floor(leastsquares(c5,1, 1)) from db.t1") "first(floor(bigint_col))",
tdSql.error("select floor(leastsquares(c7,1, 1)) from db.t1") "first(floor(float_col))",
tdSql.error("select floor(leastsquares(c8,1, 1)) from db.t1") "first(floor(double_col))",
"first(floor(smallint_col))",
tdSql.error("select count(floor(c2)) from db.t1") "first(floor(tinyint_col))",
tdSql.error("select count(floor(c3)) from db.t1") "first(floor(uint_col))",
tdSql.error("select count(floor(c4)) from db.t1") "first(floor(ubigint_col))",
tdSql.error("select count(floor(c5)) from db.t1") "first(floor(usmallint_col))",
tdSql.error("select count(floor(c7)) from db.t1") "first(floor(utinyint_col))",
tdSql.error("select count(floor(c8)) from db.t1") "last(floor(int_col))",
"last(floor(bigint_col))",
tdSql.error("select floor(count(c2)) from db.t1") "last(floor(float_col))",
tdSql.error("select floor(count(c3)) from db.t1") "last(floor(double_col))",
tdSql.error("select floor(count(c4)) from db.t1") "last(floor(smallint_col))",
tdSql.error("select floor(count(c5)) from db.t1") "last(floor(tinyint_col))",
tdSql.error("select floor(count(c7)) from db.t1") "last(floor(uint_col))",
tdSql.error("select floor(count(c8)) from db.t1") "last(floor(ubigint_col))",
"last(floor(usmallint_col))",
tdSql.error("select twa(floor(c2)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "last(floor(utinyint_col))",
tdSql.error("select twa(floor(c3)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(int_col), 1)",
tdSql.error("select twa(floor(c4)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(bigint_col), 1)",
tdSql.error("select twa(floor(c5)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(float_col), 1)",
tdSql.error("select twa(floor(c7)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(double_col), 1)",
tdSql.error("select twa(floor(c8)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(smallint_col), 1)",
"top(floor(tinyint_col), 1)",
tdSql.error("select floor(twa(c2)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(uint_col), 1)",
tdSql.error("select floor(twa(c3)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(ubigint_col), 1)",
tdSql.error("select floor(twa(c4)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(usmallint_col), 1)",
tdSql.error("select floor(twa(c5)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(floor(utinyint_col), 1)",
tdSql.error("select floor(twa(c7)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "bottom(floor(int_col), 1)",
tdSql.error("select floor(twa(c8)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "bottom(floor(bigint_col), 1)",
"bottom(floor(float_col), 1)",
tdSql.error("select stddev(floor(c2)) from db.t1") "bottom(floor(double_col), 1)",
tdSql.error("select stddev(floor(c3)) from db.t1") "bottom(floor(smallint_col), 1)",
tdSql.error("select stddev(floor(c4)) from db.t1") "bottom(floor(tinyint_col), 1)",
tdSql.error("select stddev(floor(c5)) from db.t1") "bottom(floor(uint_col), 1)",
tdSql.error("select stddev(floor(c7)) from db.t1") "bottom(floor(ubigint_col), 1)",
tdSql.error("select stddev(floor(c8)) from db.t1") "bottom(floor(usmallint_col), 1)",
"bottom(floor(utinyint_col), 1)",
tdSql.error("select floor(stddev(c2)) from db.t1") "percentile(floor(int_col), 20)",
tdSql.error("select floor(stddev(c3)) from db.t1") "percentile(floor(bigint_col), 20)",
tdSql.error("select floor(stddev(c4)) from db.t1") "percentile(floor(float_col), 20)",
tdSql.error("select floor(stddev(c5)) from db.t1") "percentile(floor(double_col), 20)",
tdSql.error("select floor(stddev(c7)) from db.t1") "percentile(floor(smallint_col), 20)",
tdSql.error("select floor(stddev(c8)) from db.t1") "percentile(floor(tinyint_col), 20)",
"percentile(floor(uint_col), 20)",
tdSql.error("select spread(floor(c2)) from db.t1") "percentile(floor(ubigint_col), 20)",
tdSql.error("select spread(floor(c3)) from db.t1") "percentile(floor(usmallint_col), 20)",
tdSql.error("select spread(floor(c4)) from db.t1") "percentile(floor(utinyint_col), 20)",
tdSql.error("select spread(floor(c5)) from db.t1") "apercentile(floor(int_col), 20)",
tdSql.error("select spread(floor(c7)) from db.t1") "apercentile(floor(bigint_col), 20)",
tdSql.error("select spread(floor(c8)) from db.t1") "apercentile(floor(float_col), 20)",
"apercentile(floor(double_col), 20)",
tdSql.error("select floor(spread(c2)) from db.t1") "apercentile(floor(smallint_col), 20)",
tdSql.error("select floor(spread(c3)) from db.t1") "apercentile(floor(tinyint_col), 20)",
tdSql.error("select floor(spread(c4)) from db.t1") "apercentile(floor(uint_col), 20)",
tdSql.error("select floor(spread(c5)) from db.t1") "apercentile(floor(ubigint_col), 20)",
tdSql.error("select floor(spread(c7)) from db.t1") "apercentile(floor(usmallint_col), 20)",
tdSql.error("select floor(spread(c8)) from db.t1") "apercentile(floor(utinyint_col), 20)",
"last_row(floor(int_col))",
tdSql.error("select floor(c2 + 1) from db.t1") "last_row(floor(bigint_col))",
tdSql.error("select floor(c3 + 1) from db.t1") "last_row(floor(float_col))",
tdSql.error("select floor(c4 + 1) from db.t1") "last_row(floor(double_col))",
tdSql.error("select floor(c5 + 1) from db.t1") "last_row(floor(smallint_col))",
tdSql.error("select floor(c7 + 1) from db.t1") "last_row(floor(tinyint_col))",
tdSql.error("select floor(c8 + 1) from db.t1") "last_row(floor(uint_col))",
"last_row(floor(ubigint_col))",
tdSql.error("select bottom(floor(c2), 2) from db.t1") "last_row(floor(usmallint_col))",
tdSql.error("select bottom(floor(c3), 2) from db.t1") "last_row(floor(utinyint_col))",
tdSql.error("select bottom(floor(c4), 2) from db.t1") "interp(floor(int_col))",
tdSql.error("select bottom(floor(c5), 2) from db.t1") "interp(floor(bigint_col))",
tdSql.error("select bottom(floor(c7), 2) from db.t1") "interp(floor(float_col))",
tdSql.error("select bottom(floor(c8), 2) from db.t1") "interp(floor(double_col))",
"interp(floor(smallint_col))",
tdSql.error("select floor(bottom(c2, 2)) from db.t1") "interp(floor(tinyint_col))",
tdSql.error("select floor(bottom(c3, 2)) from db.t1") "interp(floor(uint_col))",
tdSql.error("select floor(bottom(c4, 2)) from db.t1") "interp(floor(ubigint_col))",
tdSql.error("select floor(bottom(c5, 2)) from db.t1") "interp(floor(usmallint_col))",
tdSql.error("select floor(bottom(c7, 2)) from db.t1") "interp(floor(utinyint_col))",
tdSql.error("select floor(bottom(c8, 2)) from db.t1") "diff(floor(int_col))",
"diff(floor(bigint_col))",
tdSql.error("select floor(c2) + floor(c3) from db.t1") "diff(floor(float_col))",
tdSql.error("select floor(c3) + floor(c4) from db.t1") "diff(floor(double_col))",
tdSql.error("select floor(c4) + floor(c5) from db.t1") "diff(floor(smallint_col))",
tdSql.error("select floor(c5) + floor(c7) from db.t1") "diff(floor(tinyint_col))",
tdSql.error("select floor(c7) + floor(c8) from db.t1") "diff(floor(uint_col))",
tdSql.error("select floor(c8) + floor(c2) from db.t1") "diff(floor(ubigint_col))",
"diff(floor(usmallint_col))",
tdSql.error("select floor(c2 + c3) from db.t1") "diff(floor(utinyint_col))",
tdSql.error("select floor(c3 + c4) from db.t1") "spread(floor(int_col))",
tdSql.error("select floor(c4 + c5) from db.t1") "spread(floor(bigint_col))",
tdSql.error("select floor(c5 + c7) from db.t1") "spread(floor(float_col))",
tdSql.error("select floor(c7 + c8) from db.t1") "spread(floor(double_col))",
tdSql.error("select floor(c8 + c2) from db.t1") "spread(floor(smallint_col))",
"spread(floor(tinyint_col))",
"spread(floor(uint_col))",
"spread(floor(ubigint_col))",
"spread(floor(usmallint_col))",
"spread(floor(utinyint_col))",
"derivative(floor(int_col), 1s, 0)",
"derivative(floor(bigint_col), 1s, 0)",
"derivative(floor(float_col), 1s, 0)",
"derivative(floor(double_col), 1s, 0)",
"derivative(floor(smallint_col), 1s, 0)",
"derivative(floor(tinyint_col), 1s, 0)",
"derivative(floor(uint_col), 1s, 0)",
"derivative(floor(ubigint_col), 1s, 0)",
"derivative(floor(usmallint_col), 1s, 0)",
"derivative(floor(utinyint_col), 1s, 0)",
"floor(int_col) - floor(int_col)",
"floor(bigint_col) - floor(bigint_col)",
"floor(float_col) - floor(float_col)",
"floor(double_col) - floor(double_col)",
"floor(smallint_col) - floor(smallint_col)",
"floor(tinyint_col) - floor(tinyint_col)",
"floor(uint_col) - floor(uint_col)",
"floor(ubigint_col) - floor(ubigint_col)",
"floor(usmallint_col) - floor(usmallint_col)",
"floor(utinyint_col) - floor(utinyint_col)",
"floor(int_col) / floor(int_col)",
"floor(bigint_col) / floor(bigint_col)",
"floor(float_col) / floor(float_col)",
"floor(double_col) / floor(double_col)",
"floor(smallint_col) / floor(smallint_col)",
"floor(tinyint_col) / floor(tinyint_col)",
"floor(uint_col) / floor(uint_col)",
"floor(ubigint_col) / floor(ubigint_col)",
"floor(usmallint_col) / floor(usmallint_col)",
"floor(utinyint_col) / floor(utinyint_col)",
"floor(int_col) * floor(int_col)",
"floor(bigint_col) * floor(bigint_col)",
"floor(float_col) * floor(float_col)",
"floor(double_col) * floor(double_col)",
"floor(smallint_col) * floor(smallint_col)",
"floor(tinyint_col) * floor(tinyint_col)",
"floor(uint_col) * floor(uint_col)",
"floor(ubigint_col) * floor(ubigint_col)",
"floor(usmallint_col) * floor(usmallint_col)",
"floor(utinyint_col) * floor(utinyint_col)",
"floor(count(ts))",
"floor(count(timestamp_col))",
"floor(count(int_col))",
"floor(count(bigint_col))",
"floor(count(float_col))",
"floor(count(double_col))",
"floor(count(binary_col))",
"floor(count(smallint_col))",
"floor(count(tinyint_col))",
"floor(count(bool_col))",
"floor(count(nchar_col))",
"floor(count(uint_col))",
"floor(count(ubigint_col))",
"floor(count(usmallint_col))",
"floor(count(utinyint_col))",
"floor(count(timestamp_tag))",
"floor(count(int_tag))",
"floor(count(bigint_tag))",
"floor(count(float_tag))",
"floor(count(double_tag))",
"floor(count(binary_tag))",
"floor(count(smallint_tag))",
"floor(count(tinyint_tag))",
"floor(count(bool_tag))",
"floor(count(nchar_tag))",
"floor(count(uint_tag))",
"floor(count(ubigint_tag))",
"floor(count(usmallint_tag))",
"floor(count(utinyint_tag))",
"floor(avg(ts))",
"floor(avg(timestamp_col))",
"floor(avg(int_col))",
"floor(avg(bigint_col))",
"floor(avg(float_col))",
"floor(avg(double_col))",
"floor(avg(binary_col))",
"floor(avg(smallint_col))",
"floor(avg(tinyint_col))",
"floor(avg(bool_col))",
"floor(avg(nchar_col))",
"floor(avg(uint_col))",
"floor(avg(ubigint_col))",
"floor(avg(usmallint_col))",
"floor(avg(utinyint_col))",
"floor(avg(timestamp_tag))",
"floor(avg(int_tag))",
"floor(avg(bigint_tag))",
"floor(avg(float_tag))",
"floor(avg(double_tag))",
"floor(avg(binary_tag))",
"floor(avg(smallint_tag))",
"floor(avg(tinyint_tag))",
"floor(avg(bool_tag))",
"floor(avg(nchar_tag))",
"floor(avg(uint_tag))",
"floor(avg(ubigint_tag))",
"floor(avg(usmallint_tag))",
"floor(avg(utinyint_tag))",
"floor(twa(ts))",
"floor(twa(timestamp_col))",
"floor(twa(int_col))",
"floor(twa(bigint_col))",
"floor(twa(float_col))",
"floor(twa(double_col))",
"floor(twa(binary_col))",
"floor(twa(smallint_col))",
"floor(twa(tinyint_col))",
"floor(twa(bool_col))",
"floor(twa(nchar_col))",
"floor(twa(uint_col))",
"floor(twa(ubigint_col))",
"floor(twa(usmallint_col))",
"floor(twa(utinyint_col))",
"floor(twa(timestamp_tag))",
"floor(twa(int_tag))",
"floor(twa(bigint_tag))",
"floor(twa(float_tag))",
"floor(twa(double_tag))",
"floor(twa(binary_tag))",
"floor(twa(smallint_tag))",
"floor(twa(tinyint_tag))",
"floor(twa(bool_tag))",
"floor(twa(nchar_tag))",
"floor(twa(uint_tag))",
"floor(twa(ubigint_tag))",
"floor(twa(usmallint_tag))",
"floor(twa(utinyint_tag))",
"floor(sum(ts))",
"floor(sum(timestamp_col))",
"floor(sum(int_col))",
"floor(sum(bigint_col))",
"floor(sum(float_col))",
"floor(sum(double_col))",
"floor(sum(binary_col))",
"floor(sum(smallint_col))",
"floor(sum(tinyint_col))",
"floor(sum(bool_col))",
"floor(sum(nchar_col))",
"floor(sum(uint_col))",
"floor(sum(ubigint_col))",
"floor(sum(usmallint_col))",
"floor(sum(utinyint_col))",
"floor(sum(timestamp_tag))",
"floor(sum(int_tag))",
"floor(sum(bigint_tag))",
"floor(sum(float_tag))",
"floor(sum(double_tag))",
"floor(sum(binary_tag))",
"floor(sum(smallint_tag))",
"floor(sum(tinyint_tag))",
"floor(sum(bool_tag))",
"floor(sum(nchar_tag))",
"floor(sum(uint_tag))",
"floor(sum(ubigint_tag))",
"floor(sum(usmallint_tag))",
"floor(sum(utinyint_tag))",
"floor(stddev(ts))",
"floor(stddev(timestamp_col))",
"floor(stddev(int_col))",
"floor(stddev(bigint_col))",
"floor(stddev(float_col))",
"floor(stddev(double_col))",
"floor(stddev(binary_col))",
"floor(stddev(smallint_col))",
"floor(stddev(tinyint_col))",
"floor(stddev(bool_col))",
"floor(stddev(nchar_col))",
"floor(stddev(uint_col))",
"floor(stddev(ubigint_col))",
"floor(stddev(usmallint_col))",
"floor(stddev(utinyint_col))",
"floor(stddev(timestamp_tag))",
"floor(stddev(int_tag))",
"floor(stddev(bigint_tag))",
"floor(stddev(float_tag))",
"floor(stddev(double_tag))",
"floor(stddev(binary_tag))",
"floor(stddev(smallint_tag))",
"floor(stddev(tinyint_tag))",
"floor(stddev(bool_tag))",
"floor(stddev(nchar_tag))",
"floor(stddev(uint_tag))",
"floor(stddev(ubigint_tag))",
"floor(stddev(usmallint_tag))",
"floor(stddev(utinyint_tag))",
"floor(leastsquares(ts, 1, 1))",
"floor(leastsquares(timestamp_col, 1, 1))",
"floor(leastsquares(int_col, 1, 1))",
"floor(leastsquares(bigint_col, 1, 1))",
"floor(leastsquares(float_col, 1, 1))",
"floor(leastsquares(double_col, 1, 1))",
"floor(leastsquares(binary_col, 1, 1))",
"floor(leastsquares(smallint_col, 1, 1))",
"floor(leastsquares(tinyint_col, 1, 1))",
"floor(leastsquares(bool_col, 1, 1))",
"floor(leastsquares(nchar_col, 1, 1))",
"floor(leastsquares(uint_col, 1, 1))",
"floor(leastsquares(ubigint_col, 1, 1))",
"floor(leastsquares(usmallint_col, 1, 1))",
"floor(leastsquares(utinyint_col, 1, 1))",
"floor(leastsquares(timestamp_tag, 1, 1))",
"floor(leastsquares(int_tag, 1, 1))",
"floor(leastsquares(bigint_tag, 1, 1))",
"floor(leastsquares(float_tag, 1, 1))",
"floor(leastsquares(double_tag, 1, 1))",
"floor(leastsquares(binary_tag, 1, 1))",
"floor(leastsquares(smallint_tag, 1, 1))",
"floor(leastsquares(tinyint_tag, 1, 1))",
"floor(leastsquares(bool_tag, 1, 1))",
"floor(leastsquares(nchar_tag, 1, 1))",
"floor(leastsquares(uint_tag, 1, 1))",
"floor(leastsquares(ubigint_tag, 1, 1))",
"floor(leastsquares(usmallint_tag, 1, 1))",
"floor(leastsquares(utinyint_tag, 1, 1))",
"floor(irate(ts))",
"floor(irate(timestamp_col))",
"floor(irate(int_col))",
"floor(irate(bigint_col))",
"floor(irate(float_col))",
"floor(irate(double_col))",
"floor(irate(binary_col))",
"floor(irate(smallint_col))",
"floor(irate(tinyint_col))",
"floor(irate(bool_col))",
"floor(irate(nchar_col))",
"floor(irate(uint_col))",
"floor(irate(ubigint_col))",
"floor(irate(usmallint_col))",
"floor(irate(utinyint_col))",
"floor(irate(timestamp_tag))",
"floor(irate(int_tag))",
"floor(irate(bigint_tag))",
"floor(irate(float_tag))",
"floor(irate(double_tag))",
"floor(irate(binary_tag))",
"floor(irate(smallint_tag))",
"floor(irate(tinyint_tag))",
"floor(irate(bool_tag))",
"floor(irate(nchar_tag))",
"floor(irate(uint_tag))",
"floor(irate(ubigint_tag))",
"floor(irate(usmallint_tag))",
"floor(irate(utinyint_tag))",
"floor(min(ts))",
"floor(min(timestamp_col))",
"floor(min(int_col))",
"floor(min(bigint_col))",
"floor(min(float_col))",
"floor(min(double_col))",
"floor(min(binary_col))",
"floor(min(smallint_col))",
"floor(min(tinyint_col))",
"floor(min(bool_col))",
"floor(min(nchar_col))",
"floor(min(uint_col))",
"floor(min(ubigint_col))",
"floor(min(usmallint_col))",
"floor(min(utinyint_col))",
"floor(min(timestamp_tag))",
"floor(min(int_tag))",
"floor(min(bigint_tag))",
"floor(min(float_tag))",
"floor(min(double_tag))",
"floor(min(binary_tag))",
"floor(min(smallint_tag))",
"floor(min(tinyint_tag))",
"floor(min(bool_tag))",
"floor(min(nchar_tag))",
"floor(min(uint_tag))",
"floor(min(ubigint_tag))",
"floor(min(usmallint_tag))",
"floor(min(utinyint_tag))",
"floor(max(ts))",
"floor(max(timestamp_col))",
"floor(max(int_col))",
"floor(max(bigint_col))",
"floor(max(float_col))",
"floor(max(double_col))",
"floor(max(binary_col))",
"floor(max(smallint_col))",
"floor(max(tinyint_col))",
"floor(max(bool_col))",
"floor(max(nchar_col))",
"floor(max(uint_col))",
"floor(max(ubigint_col))",
"floor(max(usmallint_col))",
"floor(max(utinyint_col))",
"floor(max(timestamp_tag))",
"floor(max(int_tag))",
"floor(max(bigint_tag))",
"floor(max(float_tag))",
"floor(max(double_tag))",
"floor(max(binary_tag))",
"floor(max(smallint_tag))",
"floor(max(tinyint_tag))",
"floor(max(bool_tag))",
"floor(max(nchar_tag))",
"floor(max(uint_tag))",
"floor(max(ubigint_tag))",
"floor(max(usmallint_tag))",
"floor(max(utinyint_tag))",
"floor(first(ts))",
"floor(first(timestamp_col))",
"floor(first(int_col))",
"floor(first(bigint_col))",
"floor(first(float_col))",
"floor(first(double_col))",
"floor(first(binary_col))",
"floor(first(smallint_col))",
"floor(first(tinyint_col))",
"floor(first(bool_col))",
"floor(first(nchar_col))",
"floor(first(uint_col))",
"floor(first(ubigint_col))",
"floor(first(usmallint_col))",
"floor(first(utinyint_col))",
"floor(first(timestamp_tag))",
"floor(first(int_tag))",
"floor(first(bigint_tag))",
"floor(first(float_tag))",
"floor(first(double_tag))",
"floor(first(binary_tag))",
"floor(first(smallint_tag))",
"floor(first(tinyint_tag))",
"floor(first(bool_tag))",
"floor(first(nchar_tag))",
"floor(first(uint_tag))",
"floor(first(ubigint_tag))",
"floor(first(usmallint_tag))",
"floor(first(utinyint_tag))",
"floor(last(ts))",
"floor(last(timestamp_col))",
"floor(last(int_col))",
"floor(last(bigint_col))",
"floor(last(float_col))",
"floor(last(double_col))",
"floor(last(binary_col))",
"floor(last(smallint_col))",
"floor(last(tinyint_col))",
"floor(last(bool_col))",
"floor(last(nchar_col))",
"floor(last(uint_col))",
"floor(last(ubigint_col))",
"floor(last(usmallint_col))",
"floor(last(utinyint_col))",
"floor(last(timestamp_tag))",
"floor(last(int_tag))",
"floor(last(bigint_tag))",
"floor(last(float_tag))",
"floor(last(double_tag))",
"floor(last(binary_tag))",
"floor(last(smallint_tag))",
"floor(last(tinyint_tag))",
"floor(last(bool_tag))",
"floor(last(nchar_tag))",
"floor(last(uint_tag))",
"floor(last(ubigint_tag))",
"floor(last(usmallint_tag))",
"floor(last(utinyint_tag))",
"floor(top(ts, 1))",
"floor(top(timestamp_col, 1))",
"floor(top(int_col, 1))",
"floor(top(bigint_col, 1))",
"floor(top(float_col, 1))",
"floor(top(double_col, 1))",
"floor(top(binary_col, 1))",
"floor(top(smallint_col, 1))",
"floor(top(tinyint_col, 1))",
"floor(top(bool_col, 1))",
"floor(top(nchar_col, 1))",
"floor(top(uint_col, 1))",
"floor(top(ubigint_col, 1))",
"floor(top(usmallint_col, 1))",
"floor(top(utinyint_col, 1))",
"floor(top(timestamp_tag, 1))",
"floor(top(int_tag, 1))",
"floor(top(bigint_tag, 1))",
"floor(top(float_tag, 1))",
"floor(top(double_tag, 1))",
"floor(top(binary_tag, 1))",
"floor(top(smallint_tag, 1))",
"floor(top(tinyint_tag, 1))",
"floor(top(bool_tag, 1))",
"floor(top(nchar_tag, 1))",
"floor(top(uint_tag, 1))",
"floor(top(ubigint_tag, 1))",
"floor(top(usmallint_tag, 1))",
"floor(top(utinyint_tag, 1))",
"floor(bottom(ts, 1))",
"floor(bottom(timestamp_col, 1))",
"floor(bottom(int_col, 1))",
"floor(bottom(bigint_col, 1))",
"floor(bottom(float_col, 1))",
"floor(bottom(double_col, 1))",
"floor(bottom(binary_col, 1))",
"floor(bottom(smallint_col, 1))",
"floor(bottom(tinyint_col, 1))",
"floor(bottom(bool_col, 1))",
"floor(bottom(nchar_col, 1))",
"floor(bottom(uint_col, 1))",
"floor(bottom(ubigint_col, 1))",
"floor(bottom(usmallint_col, 1))",
"floor(bottom(utinyint_col, 1))",
"floor(bottom(timestamp_tag, 1))",
"floor(bottom(int_tag, 1))",
"floor(bottom(bigint_tag, 1))",
"floor(bottom(float_tag, 1))",
"floor(bottom(double_tag, 1))",
"floor(bottom(binary_tag, 1))",
"floor(bottom(smallint_tag, 1))",
"floor(bottom(tinyint_tag, 1))",
"floor(bottom(bool_tag, 1))",
"floor(bottom(nchar_tag, 1))",
"floor(bottom(uint_tag, 1))",
"floor(bottom(ubigint_tag, 1))",
"floor(bottom(usmallint_tag, 1))",
"floor(bottom(utinyint_tag, 1))",
"floor(percentile(ts, 1))",
"floor(percentile(timestamp_col, 1))",
"floor(percentile(int_col, 1))",
"floor(percentile(bigint_col, 1))",
"floor(percentile(float_col, 1))",
"floor(percentile(double_col, 1))",
"floor(percentile(binary_col, 1))",
"floor(percentile(smallint_col, 1))",
"floor(percentile(tinyint_col, 1))",
"floor(percentile(bool_col, 1))",
"floor(percentile(nchar_col, 1))",
"floor(percentile(uint_col, 1))",
"floor(percentile(ubigint_col, 1))",
"floor(percentile(usmallint_col, 1))",
"floor(percentile(utinyint_col, 1))",
"floor(percentile(timestamp_tag, 1))",
"floor(percentile(int_tag, 1))",
"floor(percentile(bigint_tag, 1))",
"floor(percentile(float_tag, 1))",
"floor(percentile(double_tag, 1))",
"floor(percentile(binary_tag, 1))",
"floor(percentile(smallint_tag, 1))",
"floor(percentile(tinyint_tag, 1))",
"floor(percentile(bool_tag, 1))",
"floor(percentile(nchar_tag, 1))",
"floor(percentile(uint_tag, 1))",
"floor(percentile(ubigint_tag, 1))",
"floor(percentile(usmallint_tag, 1))",
"floor(percentile(utinyint_tag, 1))",
"floor(apercentile(ts, 1))",
"floor(apercentile(timestamp_col, 1))",
"floor(apercentile(int_col, 1))",
"floor(apercentile(bigint_col, 1))",
"floor(apercentile(float_col, 1))",
"floor(apercentile(double_col, 1))",
"floor(apercentile(binary_col, 1))",
"floor(apercentile(smallint_col, 1))",
"floor(apercentile(tinyint_col, 1))",
"floor(apercentile(bool_col, 1))",
"floor(apercentile(nchar_col, 1))",
"floor(apercentile(uint_col, 1))",
"floor(apercentile(ubigint_col, 1))",
"floor(apercentile(usmallint_col, 1))",
"floor(apercentile(utinyint_col, 1))",
"floor(apercentile(timestamp_tag, 1))",
"floor(apercentile(int_tag, 1))",
"floor(apercentile(bigint_tag, 1))",
"floor(apercentile(float_tag, 1))",
"floor(apercentile(double_tag, 1))",
"floor(apercentile(binary_tag, 1))",
"floor(apercentile(smallint_tag, 1))",
"floor(apercentile(tinyint_tag, 1))",
"floor(apercentile(bool_tag, 1))",
"floor(apercentile(nchar_tag, 1))",
"floor(apercentile(uint_tag, 1))",
"floor(apercentile(ubigint_tag, 1))",
"floor(apercentile(usmallint_tag, 1))",
"floor(apercentile(utinyint_tag, 1))",
"floor(last_row(ts))",
"floor(last_row(timestamp_col))",
"floor(last_row(int_col))",
"floor(last_row(bigint_col))",
"floor(last_row(float_col))",
"floor(last_row(double_col))",
"floor(last_row(binary_col))",
"floor(last_row(smallint_col))",
"floor(last_row(tinyint_col))",
"floor(last_row(bool_col))",
"floor(last_row(nchar_col))",
"floor(last_row(uint_col))",
"floor(last_row(ubigint_col))",
"floor(last_row(usmallint_col))",
"floor(last_row(utinyint_col))",
"floor(last_row(timestamp_tag))",
"floor(last_row(int_tag))",
"floor(last_row(bigint_tag))",
"floor(last_row(float_tag))",
"floor(last_row(double_tag))",
"floor(last_row(binary_tag))",
"floor(last_row(smallint_tag))",
"floor(last_row(tinyint_tag))",
"floor(last_row(bool_tag))",
"floor(last_row(nchar_tag))",
"floor(last_row(uint_tag))",
"floor(last_row(ubigint_tag))",
"floor(last_row(usmallint_tag))",
"floor(last_row(utinyint_tag))",
"floor(interp(ts))",
"floor(interp(timestamp_col))",
"floor(interp(int_col))",
"floor(interp(bigint_col))",
"floor(interp(float_col))",
"floor(interp(double_col))",
"floor(interp(binary_col))",
"floor(interp(smallint_col))",
"floor(interp(tinyint_col))",
"floor(interp(bool_col))",
"floor(interp(nchar_col))",
"floor(interp(uint_col))",
"floor(interp(ubigint_col))",
"floor(interp(usmallint_col))",
"floor(interp(utinyint_col))",
"floor(interp(timestamp_tag))",
"floor(interp(int_tag))",
"floor(interp(bigint_tag))",
"floor(interp(float_tag))",
"floor(interp(double_tag))",
"floor(interp(binary_tag))",
"floor(interp(smallint_tag))",
"floor(interp(tinyint_tag))",
"floor(interp(bool_tag))",
"floor(interp(nchar_tag))",
"floor(interp(uint_tag))",
"floor(interp(ubigint_tag))",
"floor(interp(usmallint_tag))",
"floor(interp(utinyint_tag))",
"floor(diff(ts))",
"floor(diff(timestamp_col))",
"floor(diff(int_col))",
"floor(diff(bigint_col))",
"floor(diff(float_col))",
"floor(diff(double_col))",
"floor(diff(binary_col))",
"floor(diff(smallint_col))",
"floor(diff(tinyint_col))",
"floor(diff(bool_col))",
"floor(diff(nchar_col))",
"floor(diff(uint_col))",
"floor(diff(ubigint_col))",
"floor(diff(usmallint_col))",
"floor(diff(utinyint_col))",
"floor(diff(timestamp_tag))",
"floor(diff(int_tag))",
"floor(diff(bigint_tag))",
"floor(diff(float_tag))",
"floor(diff(double_tag))",
"floor(diff(binary_tag))",
"floor(diff(smallint_tag))",
"floor(diff(tinyint_tag))",
"floor(diff(bool_tag))",
"floor(diff(nchar_tag))",
"floor(diff(uint_tag))",
"floor(diff(ubigint_tag))",
"floor(diff(usmallint_tag))",
"floor(diff(utinyint_tag))",
"floor(spread(ts))",
"floor(spread(timestamp_col))",
"floor(spread(int_col))",
"floor(spread(bigint_col))",
"floor(spread(float_col))",
"floor(spread(double_col))",
"floor(spread(binary_col))",
"floor(spread(smallint_col))",
"floor(spread(tinyint_col))",
"floor(spread(bool_col))",
"floor(spread(nchar_col))",
"floor(spread(uint_col))",
"floor(spread(ubigint_col))",
"floor(spread(usmallint_col))",
"floor(spread(utinyint_col))",
"floor(spread(timestamp_tag))",
"floor(spread(int_tag))",
"floor(spread(bigint_tag))",
"floor(spread(float_tag))",
"floor(spread(double_tag))",
"floor(spread(binary_tag))",
"floor(spread(smallint_tag))",
"floor(spread(tinyint_tag))",
"floor(spread(bool_tag))",
"floor(spread(nchar_tag))",
"floor(spread(uint_tag))",
"floor(spread(ubigint_tag))",
"floor(spread(usmallint_tag))",
"floor(spread(utinyint_tag))",
"floor(derivative(ts, 1s, 0))",
"floor(derivative(timestamp_col, 1s, 0))",
"floor(derivative(int_col, 1s, 0))",
"floor(derivative(bigint_col, 1s, 0))",
"floor(derivative(float_col, 1s, 0))",
"floor(derivative(double_col, 1s, 0))",
"floor(derivative(binary_col, 1s, 0))",
"floor(derivative(smallint_col, 1s, 0))",
"floor(derivative(tinyint_col, 1s, 0))",
"floor(derivative(bool_col, 1s, 0))",
"floor(derivative(nchar_col, 1s, 0))",
"floor(derivative(uint_col, 1s, 0))",
"floor(derivative(ubigint_col, 1s, 0))",
"floor(derivative(usmallint_col, 1s, 0))",
"floor(derivative(utinyint_col, 1s, 0))",
"floor(derivative(timestamp_tag, 1s, 0))",
"floor(derivative(int_tag, 1s, 0))",
"floor(derivative(bigint_tag, 1s, 0))",
"floor(derivative(float_tag, 1s, 0))",
"floor(derivative(double_tag, 1s, 0))",
"floor(derivative(binary_tag, 1s, 0))",
"floor(derivative(smallint_tag, 1s, 0))",
"floor(derivative(tinyint_tag, 1s, 0))",
"floor(derivative(bool_tag, 1s, 0))",
"floor(derivative(nchar_tag, 1s, 0))",
"floor(derivative(uint_tag, 1s, 0))",
"floor(derivative(ubigint_tag, 1s, 0))",
"floor(derivative(usmallint_tag, 1s, 0))",
"floor(derivative(utinyint_tag, 1s, 0))",
"floor(ts + ts)",
"floor(timestamp_col + timestamp_col)",
"floor(int_col + int_col)",
"floor(bigint_col + bigint_col)",
"floor(float_col + float_col)",
"floor(double_col + double_col)",
"floor(binary_col + binary_col)",
"floor(smallint_col + smallint_col)",
"floor(tinyint_col + tinyint_col)",
"floor(bool_col + bool_col)",
"floor(nchar_col + nchar_col)",
"floor(uint_col + uint_col)",
"floor(ubigint_col + ubigint_col)",
"floor(usmallint_col + usmallint_col)",
"floor(utinyint_col + utinyint_col)",
"floor(timestamp_tag + timestamp_tag)",
"floor(int_tag + int_tag)",
"floor(bigint_tag + bigint_tag)",
"floor(float_tag + float_tag)",
"floor(double_tag + double_tag)",
"floor(binary_tag + binary_tag)",
"floor(smallint_tag + smallint_tag)",
"floor(tinyint_tag + tinyint_tag)",
"floor(bool_tag + bool_tag)",
"floor(nchar_tag + nchar_tag)",
"floor(uint_tag + uint_tag)",
"floor(ubigint_tag + ubigint_tag)",
"floor(usmallint_tag + usmallint_tag)",
"floor(utinyint_tag + utinyint_tag)",
"floor(ts - ts)",
"floor(timestamp_col - timestamp_col)",
"floor(int_col - int_col)",
"floor(bigint_col - bigint_col)",
"floor(float_col - float_col)",
"floor(double_col - double_col)",
"floor(binary_col - binary_col)",
"floor(smallint_col - smallint_col)",
"floor(tinyint_col - tinyint_col)",
"floor(bool_col - bool_col)",
"floor(nchar_col - nchar_col)",
"floor(uint_col - uint_col)",
"floor(ubigint_col - ubigint_col)",
"floor(usmallint_col - usmallint_col)",
"floor(utinyint_col - utinyint_col)",
"floor(timestamp_tag - timestamp_tag)",
"floor(int_tag - int_tag)",
"floor(bigint_tag - bigint_tag)",
"floor(float_tag - float_tag)",
"floor(double_tag - double_tag)",
"floor(binary_tag - binary_tag)",
"floor(smallint_tag - smallint_tag)",
"floor(tinyint_tag - tinyint_tag)",
"floor(bool_tag - bool_tag)",
"floor(nchar_tag - nchar_tag)",
"floor(uint_tag - uint_tag)",
"floor(ubigint_tag - ubigint_tag)",
"floor(usmallint_tag - usmallint_tag)",
"floor(utinyint_tag - utinyint_tag)",
"floor(ts * ts)",
"floor(timestamp_col * timestamp_col)",
"floor(int_col * int_col)",
"floor(bigint_col * bigint_col)",
"floor(float_col * float_col)",
"floor(double_col * double_col)",
"floor(binary_col * binary_col)",
"floor(smallint_col * smallint_col)",
"floor(tinyint_col * tinyint_col)",
"floor(bool_col * bool_col)",
"floor(nchar_col * nchar_col)",
"floor(uint_col * uint_col)",
"floor(ubigint_col * ubigint_col)",
"floor(usmallint_col * usmallint_col)",
"floor(utinyint_col * utinyint_col)",
"floor(timestamp_tag * timestamp_tag)",
"floor(int_tag * int_tag)",
"floor(bigint_tag * bigint_tag)",
"floor(float_tag * float_tag)",
"floor(double_tag * double_tag)",
"floor(binary_tag * binary_tag)",
"floor(smallint_tag * smallint_tag)",
"floor(tinyint_tag * tinyint_tag)",
"floor(bool_tag * bool_tag)",
"floor(nchar_tag * nchar_tag)",
"floor(uint_tag * uint_tag)",
"floor(ubigint_tag * ubigint_tag)",
"floor(usmallint_tag * usmallint_tag)",
"floor(utinyint_tag * utinyint_tag)",
"floor(ts / ts)",
"floor(timestamp_col / timestamp_col)",
"floor(int_col / int_col)",
"floor(bigint_col / bigint_col)",
"floor(float_col / float_col)",
"floor(double_col / double_col)",
"floor(binary_col / binary_col)",
"floor(smallint_col / smallint_col)",
"floor(tinyint_col / tinyint_col)",
"floor(bool_col / bool_col)",
"floor(nchar_col / nchar_col)",
"floor(uint_col / uint_col)",
"floor(ubigint_col / ubigint_col)",
"floor(usmallint_col / usmallint_col)",
"floor(utinyint_col / utinyint_col)",
"floor(timestamp_tag / timestamp_tag)",
"floor(int_tag / int_tag)",
"floor(bigint_tag / bigint_tag)",
"floor(float_tag / float_tag)",
"floor(double_tag / double_tag)",
"floor(binary_tag / binary_tag)",
"floor(smallint_tag / smallint_tag)",
"floor(tinyint_tag / tinyint_tag)",
"floor(bool_tag / bool_tag)",
"floor(nchar_tag / nchar_tag)",
"floor(uint_tag / uint_tag)",
"floor(ubigint_tag / ubigint_tag)",
"floor(usmallint_tag / usmallint_tag)",
"floor(utinyint_tag / utinyint_tag)",
"int_col, floor(int_col), int_col",
"bigint_col, floor(bigint_col), bigint_col",
"float_col, floor(float_col), float_col",
"double_col, floor(double_col), double_col",
"smallint_col, floor(smallint_col), smallint_col",
"tinyint_col, floor(tinyint_col), tinyint_col",
"uint_col, floor(uint_col), uint_col",
"ubigint_col, floor(ubigint_col), ubigint_col",
"usmallint_col, floor(usmallint_col), usmallint_col",
"utinyint_col, floor(utinyint_col), utinyint_col",
"count(int_col), floor(int_col), count(int_col)",
"count(bigint_col), floor(bigint_col), count(bigint_col)",
"count(float_col), floor(float_col), count(float_col)",
"count(double_col), floor(double_col), count(double_col)",
"count(smallint_col), floor(smallint_col), count(smallint_col)",
"count(tinyint_col), floor(tinyint_col), count(tinyint_col)",
"count(uint_col), floor(uint_col), count(uint_col)",
"count(ubigint_col), floor(ubigint_col), count(ubigint_col)",
"count(usmallint_col), floor(usmallint_col), count(usmallint_col)",
"count(utinyint_col), floor(utinyint_col), count(utinyint_col)",
"avg(int_col), floor(int_col), avg(int_col)",
"avg(bigint_col), floor(bigint_col), avg(bigint_col)",
"avg(float_col), floor(float_col), avg(float_col)",
"avg(double_col), floor(double_col), avg(double_col)",
"avg(smallint_col), floor(smallint_col), avg(smallint_col)",
"avg(tinyint_col), floor(tinyint_col), avg(tinyint_col)",
"avg(uint_col), floor(uint_col), avg(uint_col)",
"avg(ubigint_col), floor(ubigint_col), avg(ubigint_col)",
"avg(usmallint_col), floor(usmallint_col), avg(usmallint_col)",
"avg(utinyint_col), floor(utinyint_col), avg(utinyint_col)",
"twa(int_col), floor(int_col), twa(int_col)",
"twa(bigint_col), floor(bigint_col), twa(bigint_col)",
"twa(float_col), floor(float_col), twa(float_col)",
"twa(double_col), floor(double_col), twa(double_col)",
"twa(smallint_col), floor(smallint_col), twa(smallint_col)",
"twa(tinyint_col), floor(tinyint_col), twa(tinyint_col)",
"twa(uint_col), floor(uint_col), twa(uint_col)",
"twa(ubigint_col), floor(ubigint_col), twa(ubigint_col)",
"twa(usmallint_col), floor(usmallint_col), twa(usmallint_col)",
"twa(utinyint_col), floor(utinyint_col), twa(utinyint_col)",
"sum(int_col), floor(int_col), sum(int_col)",
"sum(bigint_col), floor(bigint_col), sum(bigint_col)",
"sum(float_col), floor(float_col), sum(float_col)",
"sum(double_col), floor(double_col), sum(double_col)",
"sum(smallint_col), floor(smallint_col), sum(smallint_col)",
"sum(tinyint_col), floor(tinyint_col), sum(tinyint_col)",
"sum(uint_col), floor(uint_col), sum(uint_col)",
"sum(ubigint_col), floor(ubigint_col), sum(ubigint_col)",
"sum(usmallint_col), floor(usmallint_col), sum(usmallint_col)",
"sum(utinyint_col), floor(utinyint_col), sum(utinyint_col)",
"stddev(int_col), floor(int_col), stddev(int_col)",
"stddev(bigint_col), floor(bigint_col), stddev(bigint_col)",
"stddev(float_col), floor(float_col), stddev(float_col)",
"stddev(double_col), floor(double_col), stddev(double_col)",
"stddev(smallint_col), floor(smallint_col), stddev(smallint_col)",
"stddev(tinyint_col), floor(tinyint_col), stddev(tinyint_col)",
"stddev(uint_col), floor(uint_col), stddev(uint_col)",
"stddev(ubigint_col), floor(ubigint_col), stddev(ubigint_col)",
"stddev(usmallint_col), floor(usmallint_col), stddev(usmallint_col)",
"stddev(utinyint_col), floor(utinyint_col), stddev(utinyint_col)",
"irate(int_col), floor(int_col), irate(int_col)",
"irate(bigint_col), floor(bigint_col), irate(bigint_col)",
"irate(float_col), floor(float_col), irate(float_col)",
"irate(double_col), floor(double_col), irate(double_col)",
"irate(smallint_col), floor(smallint_col), irate(smallint_col)",
"irate(tinyint_col), floor(tinyint_col), irate(tinyint_col)",
"irate(uint_col), floor(uint_col), irate(uint_col)",
"irate(ubigint_col), floor(ubigint_col), irate(ubigint_col)",
"irate(usmallint_col), floor(usmallint_col), irate(usmallint_col)",
"irate(utinyint_col), floor(utinyint_col), irate(utinyint_col)",
"min(int_col), floor(int_col), min(int_col)",
"min(bigint_col), floor(bigint_col), min(bigint_col)",
"min(float_col), floor(float_col), min(float_col)",
"min(double_col), floor(double_col), min(double_col)",
"min(smallint_col), floor(smallint_col), min(smallint_col)",
"min(tinyint_col), floor(tinyint_col), min(tinyint_col)",
"min(uint_col), floor(uint_col), min(uint_col)",
"min(ubigint_col), floor(ubigint_col), min(ubigint_col)",
"min(usmallint_col), floor(usmallint_col), min(usmallint_col)",
"min(utinyint_col), floor(utinyint_col), min(utinyint_col)",
"max(int_col), floor(int_col), max(int_col)",
"max(bigint_col), floor(bigint_col), max(bigint_col)",
"max(float_col), floor(float_col), max(float_col)",
"max(double_col), floor(double_col), max(double_col)",
"max(smallint_col), floor(smallint_col), max(smallint_col)",
"max(tinyint_col), floor(tinyint_col), max(tinyint_col)",
"max(uint_col), floor(uint_col), max(uint_col)",
"max(ubigint_col), floor(ubigint_col), max(ubigint_col)",
"max(usmallint_col), floor(usmallint_col), max(usmallint_col)",
"max(utinyint_col), floor(utinyint_col), max(utinyint_col)",
"first(int_col), floor(int_col), first(int_col)",
"first(bigint_col), floor(bigint_col), first(bigint_col)",
"first(float_col), floor(float_col), first(float_col)",
"first(double_col), floor(double_col), first(double_col)",
"first(smallint_col), floor(smallint_col), first(smallint_col)",
"first(tinyint_col), floor(tinyint_col), first(tinyint_col)",
"first(uint_col), floor(uint_col), first(uint_col)",
"first(ubigint_col), floor(ubigint_col), first(ubigint_col)",
"first(usmallint_col), floor(usmallint_col), first(usmallint_col)",
"first(utinyint_col), floor(utinyint_col), first(utinyint_col)",
"last(int_col), floor(int_col), last(int_col)",
"last(bigint_col), floor(bigint_col), last(bigint_col)",
"last(float_col), floor(float_col), last(float_col)",
"last(double_col), floor(double_col), last(double_col)",
"last(smallint_col), floor(smallint_col), last(smallint_col)",
"last(tinyint_col), floor(tinyint_col), last(tinyint_col)",
"last(uint_col), floor(uint_col), last(uint_col)",
"last(ubigint_col), floor(ubigint_col), last(ubigint_col)",
"last(usmallint_col), floor(usmallint_col), last(usmallint_col)",
"last(utinyint_col), floor(utinyint_col), last(utinyint_col)",
"last_row(int_col), floor(int_col), last_row(int_col)",
"last_row(bigint_col), floor(bigint_col), last_row(bigint_col)",
"last_row(float_col), floor(float_col), last_row(float_col)",
"last_row(double_col), floor(double_col), last_row(double_col)",
"last_row(smallint_col), floor(smallint_col), last_row(smallint_col)",
"last_row(tinyint_col), floor(tinyint_col), last_row(tinyint_col)",
"last_row(uint_col), floor(uint_col), last_row(uint_col)",
"last_row(ubigint_col), floor(ubigint_col), last_row(ubigint_col)",
"last_row(usmallint_col), floor(usmallint_col), last_row(usmallint_col)",
"last_row(utinyint_col), floor(utinyint_col), last_row(utinyint_col)",
"interp(int_col), floor(int_col), interp(int_col)",
"interp(bigint_col), floor(bigint_col), interp(bigint_col)",
"interp(float_col), floor(float_col), interp(float_col)",
"interp(double_col), floor(double_col), interp(double_col)",
"interp(smallint_col), floor(smallint_col), interp(smallint_col)",
"interp(tinyint_col), floor(tinyint_col), interp(tinyint_col)",
"interp(uint_col), floor(uint_col), interp(uint_col)",
"interp(ubigint_col), floor(ubigint_col), interp(ubigint_col)",
"interp(usmallint_col), floor(usmallint_col), interp(usmallint_col)",
"interp(utinyint_col), floor(utinyint_col), interp(utinyint_col)",
"diff(int_col), floor(int_col), diff(int_col)",
"diff(bigint_col), floor(bigint_col), diff(bigint_col)",
"diff(float_col), floor(float_col), diff(float_col)",
"diff(double_col), floor(double_col), diff(double_col)",
"diff(smallint_col), floor(smallint_col), diff(smallint_col)",
"diff(tinyint_col), floor(tinyint_col), diff(tinyint_col)",
"diff(uint_col), floor(uint_col), diff(uint_col)",
"diff(ubigint_col), floor(ubigint_col), diff(ubigint_col)",
"diff(usmallint_col), floor(usmallint_col), diff(usmallint_col)",
"diff(utinyint_col), floor(utinyint_col), diff(utinyint_col)",
"spread(int_col), floor(int_col), spread(int_col)",
"spread(bigint_col), floor(bigint_col), spread(bigint_col)",
"spread(float_col), floor(float_col), spread(float_col)",
"spread(double_col), floor(double_col), spread(double_col)",
"spread(smallint_col), floor(smallint_col), spread(smallint_col)",
"spread(tinyint_col), floor(tinyint_col), spread(tinyint_col)",
"spread(uint_col), floor(uint_col), spread(uint_col)",
"spread(ubigint_col), floor(ubigint_col), spread(ubigint_col)",
"spread(usmallint_col), floor(usmallint_col), spread(usmallint_col)",
"spread(utinyint_col), floor(utinyint_col), spread(utinyint_col)",
"leastsquares(int_col, 1, 1), floor(int_col), leastsquares(int_col, 1, 1)",
"leastsquares(bigint_col, 1, 1), floor(bigint_col), leastsquares(bigint_col, 1, 1)",
"leastsquares(float_col, 1, 1), floor(float_col), leastsquares(float_col, 1, 1)",
"leastsquares(double_col, 1, 1), floor(double_col), leastsquares(double_col, 1, 1)",
"leastsquares(smallint_col, 1, 1), floor(smallint_col), leastsquares(smallint_col, 1, 1)",
"leastsquares(tinyint_col, 1, 1), floor(tinyint_col), leastsquares(tinyint_col, 1, 1)",
"leastsquares(uint_col, 1, 1), floor(uint_col), leastsquares(uint_col, 1, 1)",
"leastsquares(ubigint_col, 1, 1), floor(ubigint_col), leastsquares(ubigint_col, 1, 1)",
"leastsquares(usmallint_col, 1, 1), floor(usmallint_col), leastsquares(usmallint_col, 1, 1)",
"leastsquares(utinyint_col, 1, 1), floor(utinyint_col), leastsquares(utinyint_col, 1, 1)",
"top(int_col, 1), floor(int_col), top(int_col, 1)",
"top(bigint_col, 1), floor(bigint_col), top(bigint_col, 1)",
"top(float_col, 1), floor(float_col), top(float_col, 1)",
"top(double_col, 1), floor(double_col), top(double_col, 1)",
"top(smallint_col, 1), floor(smallint_col), top(smallint_col, 1)",
"top(tinyint_col, 1), floor(tinyint_col), top(tinyint_col, 1)",
"top(uint_col, 1), floor(uint_col), top(uint_col, 1)",
"top(ubigint_col, 1), floor(ubigint_col), top(ubigint_col, 1)",
"top(usmallint_col, 1), floor(usmallint_col), top(usmallint_col, 1)",
"top(utinyint_col, 1), floor(utinyint_col), top(utinyint_col, 1)",
"bottom(int_col, 1), floor(int_col), bottom(int_col, 1)",
"bottom(bigint_col, 1), floor(bigint_col), bottom(bigint_col, 1)",
"bottom(float_col, 1), floor(float_col), bottom(float_col, 1)",
"bottom(double_col, 1), floor(double_col), bottom(double_col, 1)",
"bottom(smallint_col, 1), floor(smallint_col), bottom(smallint_col, 1)",
"bottom(tinyint_col, 1), floor(tinyint_col), bottom(tinyint_col, 1)",
"bottom(uint_col, 1), floor(uint_col), bottom(uint_col, 1)",
"bottom(ubigint_col, 1), floor(ubigint_col), bottom(ubigint_col, 1)",
"bottom(usmallint_col, 1), floor(usmallint_col), bottom(usmallint_col, 1)",
"bottom(utinyint_col, 1), floor(utinyint_col), bottom(utinyint_col, 1)",
"percentile(int_col, 1), floor(int_col), percentile(int_col, 1)",
"percentile(bigint_col, 1), floor(bigint_col), percentile(bigint_col, 1)",
"percentile(float_col, 1), floor(float_col), percentile(float_col, 1)",
"percentile(double_col, 1), floor(double_col), percentile(double_col, 1)",
"percentile(smallint_col, 1), floor(smallint_col), percentile(smallint_col, 1)",
"percentile(tinyint_col, 1), floor(tinyint_col), percentile(tinyint_col, 1)",
"percentile(uint_col, 1), floor(uint_col), percentile(uint_col, 1)",
"percentile(ubigint_col, 1), floor(ubigint_col), percentile(ubigint_col, 1)",
"percentile(usmallint_col, 1), floor(usmallint_col), percentile(usmallint_col, 1)",
"percentile(utinyint_col, 1), floor(utinyint_col), percentile(utinyint_col, 1)",
"apercentile(int_col, 1), floor(int_col), apercentile(int_col, 1)",
"apercentile(bigint_col, 1), floor(bigint_col), apercentile(bigint_col, 1)",
"apercentile(float_col, 1), floor(float_col), apercentile(float_col, 1)",
"apercentile(double_col, 1), floor(double_col), apercentile(double_col, 1)",
"apercentile(smallint_col, 1), floor(smallint_col), apercentile(smallint_col, 1)",
"apercentile(tinyint_col, 1), floor(tinyint_col), apercentile(tinyint_col, 1)",
"apercentile(uint_col, 1), floor(uint_col), apercentile(uint_col, 1)",
"apercentile(ubigint_col, 1), floor(ubigint_col), apercentile(ubigint_col, 1)",
"apercentile(usmallint_col, 1), floor(usmallint_col), apercentile(usmallint_col, 1)",
"apercentile(utinyint_col, 1), floor(utinyint_col), apercentile(utinyint_col, 1)",
"derivative(int_col, 1s, 0), floor(int_col), derivative(int_col, 1s, 0)",
"derivative(bigint_col, 1s, 0), floor(bigint_col), derivative(bigint_col, 1s, 0)",
"derivative(float_col, 1s, 0), floor(float_col), derivative(float_col, 1s, 0)",
"derivative(double_col, 1s, 0), floor(double_col), derivative(double_col, 1s, 0)",
"derivative(smallint_col, 1s, 0), floor(smallint_col), derivative(smallint_col, 1s, 0)",
"derivative(tinyint_col, 1s, 0), floor(tinyint_col), derivative(tinyint_col, 1s, 0)",
"derivative(uint_col, 1s, 0), floor(uint_col), derivative(uint_col, 1s, 0)",
"derivative(ubigint_col, 1s, 0), floor(ubigint_col), derivative(ubigint_col, 1s, 0)",
"derivative(usmallint_col, 1s, 0), floor(usmallint_col), derivative(usmallint_col, 1s, 0)",
"derivative(utinyint_col, 1s, 0), floor(utinyint_col), derivative(utinyint_col, 1s, 0)",
"1, floor(int_col), 1",
"1, floor(bigint_col), 1",
"1, floor(float_col), 1",
"1, floor(double_col), 1",
"1, floor(smallint_col), 1",
"1, floor(tinyint_col), 1",
"1, floor(uint_col), 1",
"1, floor(ubigint_col), 1",
"1, floor(usmallint_col), 1",
"1, floor(utinyint_col), 1",
"floor(int_col) as anyName",
"floor(bigint_col) as anyName",
"floor(float_col) as anyName",
"floor(double_col) as anyName",
"floor(smallint_col) as anyName",
"floor(tinyint_col) as anyName",
"floor(uint_col) as anyName",
"floor(ubigint_col) as anyName",
"floor(usmallint_col) as anyName",
"floor(utinyint_col) as anyName",
"distinct floor(int_col)",
"distinct floor(bigint_col)",
"distinct floor(float_col)",
"distinct floor(double_col)",
"distinct floor(smallint_col)",
"distinct floor(tinyint_col)",
"distinct floor(uint_col)",
"distinct floor(ubigint_col)",
"distinct floor(usmallint_col)",
"distinct floor(utinyint_col)",
]
simple_select_command = [
"floor(super.int_col)",
"floor(super.bigint_col)",
"floor(super.float_col)",
"floor(super.double_col)",
"floor(super.smallint_col)",
"floor(super.tinyint_col)",
"floor(super.uint_col)",
"floor(super.ubigint_col)",
"floor(super.usmallint_col)",
"floor(super.utinyint_col)",
"floor(t1.int_col)",
"floor(t1.bigint_col)",
"floor(t1.float_col)",
"floor(t1.double_col)",
"floor(t1.smallint_col)",
"floor(t1.tinyint_col)",
"floor(t1.uint_col)",
"floor(t1.ubigint_col)",
"floor(t1.usmallint_col)",
"floor(t1.utinyint_col)",
]
from_command = [" from super", " from t1"]
advance_from_command = [
" from super", " from t1",
" from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"
]
filter_command = [
"", " session(ts, 1s)", " state_window(int_col)", " interval (1s)",
" interval (1s) sliding (1s)", " group by (ts)"
]
fill_command = [
"", " fill(prev)", " fill(next)", " fill(null)", " fill(1)",
" fill(linear)"
]
tdSql.prepare()
tdSql.execute(
"create stable super (ts timestamp, timestamp_col timestamp, int_col int, bigint_col bigint, float_col float,\
double_col double, binary_col binary(8), smallint_col smallint, tinyint_col tinyint, bool_col bool, nchar_col nchar(8), \
uint_col int unsigned, ubigint_col bigint unsigned, usmallint_col smallint unsigned, utinyint_col tinyint unsigned) tags (int_tag int, bigint_tag bigint, \
float_tag float, double_tag double, binary_tag binary(8), smallint_tag smallint, tinyint_tag tinyint, bool_tag bool, nchar_tag nchar(8),\
uint_tag int unsigned, ubigint_tag bigint unsigned, usmallint_tag smallint unsigned, utinyint_tag tinyint unsigned)"
)
tdSql.execute(
"create stable superb (ts timestamp, timestamp_col timestamp, int_col int, bigint_col bigint, float_col float,\
double_col double, binary_col binary(8), smallint_col smallint, tinyint_col tinyint, bool_col bool, nchar_col nchar(8), \
uint_col int unsigned, ubigint_col bigint unsigned, usmallint_col smallint unsigned, utinyint_col tinyint unsigned) tags (int_tag int, bigint_tag bigint, \
float_tag float, double_tag double, binary_tag binary(8), smallint_tag smallint, tinyint_tag tinyint, bool_tag bool, nchar_tag nchar(8),\
uint_tag int unsigned, ubigint_tag bigint unsigned, usmallint_tag smallint unsigned, utinyint_tag tinyint unsigned)"
)
tdSql.execute(
"create table t1 using super tags (1, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomBigint(), self.randomDouble(), self.randomDouble(),
self.randomNchar(), self.randomSmallint(), self.randomTinyint(),
self.randomNchar(), self.randomUInt(), self.randomUBigint(),
self.randomUSmallint(), self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215891, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215892, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215893, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215894, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"create table t2 using superb tags (1, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomBigint(), self.randomDouble(), self.randomDouble(),
self.randomNchar(), self.randomSmallint(), self.randomTinyint(),
self.randomNchar(), self.randomUInt(), self.randomUBigint(),
self.randomUSmallint(), self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215891, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215892, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215893, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215894, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
for s in range(len(select_command)):
for f in range(len(from_command)):
sql = "select " + select_command[s] + from_command[f]
if (select_command[s] == "floor(int_col)"\
or select_command[s] == "floor(bigint_col)"\
or select_command[s] == "floor(smallint_col)" \
or select_command[s] == "floor(float_col)"\
or select_command[s] == "floor(double_col)"\
or select_command[s] == "floor(tinyint_col)"\
or select_command[s] == "floor(uint_col)"\
or select_command[s] == "floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col)"\
or select_command[s] == "1, floor(int_col), 1"\
or select_command[s] == "1, floor(bigint_col), 1"\
or select_command[s] == "1, floor(float_col), 1"\
or select_command[s] == "1, floor(double_col), 1"\
or select_command[s] == "1, floor(smallint_col), 1"\
or select_command[s] == "1, floor(tinyint_col), 1"\
or select_command[s] == "1, floor(uint_col), 1"\
or select_command[s] == "1, floor(ubigint_col), 1"\
or select_command[s] == "1, floor(usmallint_col), 1"\
or select_command[s] == "1, floor(utinyint_col), 1"\
or select_command[s] == "int_col, floor(int_col), int_col"\
or select_command[s] == "bigint_col, floor(bigint_col), bigint_col"\
or select_command[s] == "float_col, floor(float_col), float_col"\
or select_command[s] == "double_col, floor(double_col), double_col"\
or select_command[s] == "smallint_col, floor(smallint_col), smallint_col"\
or select_command[s] == "tinyint_col, floor(tinyint_col), tinyint_col"\
or select_command[s] == "uint_col, floor(uint_col), uint_col"\
or select_command[s] == "ubigint_col, floor(ubigint_col), ubigint_col"\
or select_command[s] == "usmallint_col, floor(usmallint_col), usmallint_col"\
or select_command[s] == "utinyint_col, floor(utinyint_col), utinyint_col"\
or select_command[s] == "floor(int_col) as anyName"\
or select_command[s] == "floor(bigint_col) as anyName"\
or select_command[s] == "floor(float_col) as anyName"\
or select_command[s] == "floor(double_col) as anyName"\
or select_command[s] == "floor(smallint_col) as anyName"\
or select_command[s] == "floor(tinyint_col) as anyName"\
or select_command[s] == "floor(uint_col) as anyName"\
or select_command[s] == "floor(ubigint_col) as anyName"\
or select_command[s] == "floor(usmallint_col) as anyName"\
or select_command[s] == "floor(utinyint_col) as anyName"\
or select_command[s] == "floor(int_col) + floor(int_col)"\
or select_command[s] == "floor(bigint_col) + floor(bigint_col)"\
or select_command[s] == "floor(float_col) + floor(float_col)"\
or select_command[s] == "floor(double_col) + floor(double_col)"\
or select_command[s] == "floor(smallint_col) + floor(smallint_col)"\
or select_command[s] == "floor(tinyint_col) + floor(tinyint_col)"\
or select_command[s] == "floor(uint_col) + floor(uint_col)"\
or select_command[s] == "floor(ubigint_col) + floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col) + floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col) + floor(utinyint_col)"\
or select_command[s] == "floor(int_col) + floor(int_col)"\
or select_command[s] == "floor(bigint_col) + floor(bigint_col)"\
or select_command[s] == "floor(float_col) + floor(float_col)"\
or select_command[s] == "floor(double_col) + floor(double_col)"\
or select_command[s] == "floor(smallint_col) + floor(smallint_col)"\
or select_command[s] == "floor(tinyint_col) + floor(tinyint_col)"\
or select_command[s] == "floor(uint_col) + floor(uint_col)"\
or select_command[s] == "floor(ubigint_col) + floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col) + floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col) + cei(utinyint_col)"\
or select_command[s] == "floor(int_col) - floor(int_col)"\
or select_command[s] == "floor(bigint_col) - floor(bigint_col)"\
or select_command[s] == "floor(float_col) - floor(float_col)"\
or select_command[s] == "floor(double_col) - floor(double_col)"\
or select_command[s] == "floor(smallint_col) - floor(smallint_col)"\
or select_command[s] == "floor(tinyint_col) - floor(tinyint_col)"\
or select_command[s] == "floor(uint_col) - floor(uint_col)"\
or select_command[s] == "floor(ubigint_col) - floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col) - floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col) - floor(utinyint_col)"\
or select_command[s] == "floor(int_col) * floor(int_col)"\
or select_command[s] == "floor(bigint_col) * floor(bigint_col)"\
or select_command[s] == "floor(float_col) * floor(float_col)"\
or select_command[s] == "floor(double_col) * floor(double_col)"\
or select_command[s] == "floor(smallint_col) * floor(smallint_col)"\
or select_command[s] == "floor(tinyint_col) * floor(tinyint_col)"\
or select_command[s] == "floor(uint_col) * floor(uint_col)"\
or select_command[s] == "floor(ubigint_col) * floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col) * floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col) * floor(utinyint_col)"\
or select_command[s] == "floor(int_col) / floor(int_col)"\
or select_command[s] == "floor(bigint_col) / floor(bigint_col)"\
or select_command[s] == "floor(float_col) / floor(float_col)"\
or select_command[s] == "floor(double_col) / floor(double_col)"\
or select_command[s] == "floor(smallint_col) / floor(smallint_col)"\
or select_command[s] == "floor(tinyint_col) / floor(tinyint_col)"\
or select_command[s] == "floor(uint_col) / floor(uint_col)"\
or select_command[s] == "floor(ubigint_col) / floor(ubigint_col)"\
or select_command[s] == "floor(usmallint_col) / floor(usmallint_col)"\
or select_command[s] == "floor(utinyint_col) / floor(utinyint_col)"):
tdSql.query(sql)
else:
tdSql.error(sql)
for sim in range(len(simple_select_command)):
for fr in range(len(advance_from_command)):
for filter in range(len(filter_command)):
for fill in range(len(fill_command)):
sql = "select " + simple_select_command[
sim] + advance_from_command[fr] + filter_command[
filter] + fill_command[fill]
if sql == "select floor(t1.int_col) from t1"\
or sql == "select floor(super.int_col) from super"\
or sql == "select floor(t1.bigint_col) from t1"\
or sql == "select floor(super.bigint_col) from super"\
or sql == "select floor(t1.smallint_col) from t1"\
or sql == "select floor(super.smallint_col) from super"\
or sql == "select floor(t1.tinyint_col) from t1"\
or sql == "select floor(super.tinyint_col) from super"\
or sql == "select floor(t1.float_col) from t1"\
or sql == "select floor(super.float_col) from super"\
or sql == "select floor(t1.double_col) from t1"\
or sql == "select floor(super.double_col) from super"\
or sql == "select floor(t1.uint_col) from t1"\
or sql == "select floor(super.uint_col) from super"\
or sql == "select floor(t1.ubigint_col) from t1"\
or sql == "select floor(super.ubigint_col) from super"\
or sql == "select floor(t1.usmallint_col) from t1"\
or sql == "select floor(super.usmallint_col) from super"\
or sql == "select floor(t1.utinyint_col) from t1"\
or sql == "select floor(super.utinyint_col) from super"\
or sql == "select floor(super.int_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.bigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.smallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.tinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.float_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.double_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.uint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.ubigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.usmallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select floor(super.utinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag":
tdSql.query(sql)
else:
tdSql.error(sql)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)
tdCases.addWindows(__file__, TDTestCase()) tdCases.addWindows(__file__, TDTestCase())
tdCases.addLinux(__file__, TDTestCase()) tdCases.addLinux(__file__, TDTestCase())
\ No newline at end of file
...@@ -17,6 +17,7 @@ from util.log import * ...@@ -17,6 +17,7 @@ from util.log import *
from util.cases import * from util.cases import *
from util.sql import * from util.sql import *
import numpy as np import numpy as np
import random
class TDTestCase: class TDTestCase:
...@@ -24,640 +25,1494 @@ class TDTestCase: ...@@ -24,640 +25,1494 @@ class TDTestCase:
tdLog.debug("start to execute %s" % __file__) tdLog.debug("start to execute %s" % __file__)
tdSql.init(conn.cursor()) tdSql.init(conn.cursor())
def run(self): def randomInt(self):
tdSql.prepare() return random.randint(-2147483647, 2147483647)
tdSql.execute("create stable super (ts timestamp, c1 timestamp, c2 int, c3 bigint, c4 float, c5 double, c6 binary(8), c7 smallint, c8 tinyint, c9 bool, c10 nchar(8)) tags (t1 int, t2 bigint, t3 float, t4 double, t5 binary(8), t6 smallint, t7 tinyint, t8 bool, t9 nchar(8))")
tdSql.execute("create table t1 using super tags (1, 8, 1.0, 1.0, 'abcdefgh', 1, 1, 1, 'abcdeffh')")
tdSql.execute("insert into t1 values (1537146000000, 1537146000000, 1, 1, 1.0, 1.0, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000001, 1537146000000, 1, 1, 1.1, 1.1, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000002, 1537146000000, 1, 1, 1.2, 1.2, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000003, 1537146000000, 1, 1, 1.3, 1.3, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000004, 1537146000000, 1, 1, 1.4, 1.4, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000005, 1537146000000, 1, 1, 1.5, 1.5, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000006, 1537146000000, 1, 1, 1.6, 1.6, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000007, 1537146000000, 1, 1, 1.7, 1.7, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000008, 1537146000000, 1, 1, 1.8, 1.8, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000009, 1537146000000, 1, 1, 1.9, 1.9, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000010, 1537146000000, 1, 1, 1.5444444, 1.544444, 'abcdefgh',1,1,1,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000011, 1537146000000, -1, -1, -1.0, -1.0, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000012, 1537146000000, -1, -1, -1.1, -1.1, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000013, 1537146000000, -1, -1, -1.2, -1.2, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000014, 1537146000000, -1, -1, -1.3, -1.3, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000015, 1537146000000, -1, -1, -1.4, -1.4, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000016, 1537146000000, -1, -1, -1.5, -1.5, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000017, 1537146000000, -1, -1, -1.6, -1.6, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000018, 1537146000000, -1, -1, -1.7, -1.7, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000019, 1537146000000, -1, -1, -1.8, -1.8, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000020, 1537146000000, -1, -1, -1.9, -1.9, 'abcdefgh',-1,-1,0,'abcdefgh')")
tdSql.execute("insert into t1 values (1537146000021, 1537146000000, -1, -1, -1.5444444, -1.544444, 'abcdefgh',-1,-1,0,'abcdefgh')")
# tags does not support round
# for stable
tdSql.error("select round(t1) from db.super")
tdSql.error("select round(t2) from db.super")
tdSql.error("select round(t3) from db.super")
tdSql.error("select round(t4) from db.super")
tdSql.error("select round(t5) from db.super")
tdSql.error("select round(t6) from db.super")
tdSql.error("select round(t7) from db.super")
tdSql.error("select round(t8) from db.super")
tdSql.error("select round(t9) from db.super")
# for table
tdSql.error("select round(t1) from db.t1")
tdSql.error("select round(t2) from db.t1")
tdSql.error("select round(t3) from db.t1")
tdSql.error("select round(t4) from db.t1")
tdSql.error("select round(t5) from db.t1")
tdSql.error("select round(t6) from db.t1")
tdSql.error("select round(t7) from db.t1")
tdSql.error("select round(t8) from db.t1")
tdSql.error("select round(t9) from db.t1")
# check support columns
# for stable
tdSql.error("select round(ts) from db.super")
tdSql.error("select round(c1) from db.super")
tdSql.query("select round(c2) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c3) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c4) from db.super")
tdSql.checkRows(22)
for i in range(22):
if 0 <= i <= 4:
tdSql.checkData(i,0,1)
if 4 < i < 11:
tdSql.checkData(i,0,2)
if 11 <= i <= 15:
tdSql.checkData(i,0,-1)
if i > 15:
tdSql.checkData(i,0,-2)
tdSql.query("select round(c5) from db.super")
tdSql.checkRows(22)
for i in range(22):
if 0 <= i <= 4:
tdSql.checkData(i,0,1)
if 4 < i < 11:
tdSql.checkData(i,0,2)
if 11 <= i <= 15:
tdSql.checkData(i,0,-1)
if i > 15:
tdSql.checkData(i,0,-2)
tdSql.error("select round(c6) from db.super")
tdSql.query("select round(c7) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c8) from db.super")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.error("select round(c9) from db.super")
tdSql.error("select round(c10) from db.super")
# for table
tdSql.error("select round(ts) from db.t1")
tdSql.error("select round(c1) from db.t1")
tdSql.query("select round(c2) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c3) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c4) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if 0 <= i <= 4:
tdSql.checkData(i,0,1)
if 4 < i < 11:
tdSql.checkData(i,0,2)
if 11 <= i <= 15:
tdSql.checkData(i,0,-1)
if i > 15:
tdSql.checkData(i,0,-2)
tdSql.query("select round(c5) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if 0 <= i <= 4:
tdSql.checkData(i,0,1)
if 4 < i < 11:
tdSql.checkData(i,0,2)
if 11 <= i <= 15:
tdSql.checkData(i,0,-1)
if i > 15:
tdSql.checkData(i,0,-2)
tdSql.error("select round(c6) from db.t1")
tdSql.query("select round(c7) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.query("select round(c8) from db.t1")
tdSql.checkRows(22)
for i in range(22):
if i < 11:
tdSql.checkData(i,0,1)
else:
tdSql.checkData(i,0,-1)
tdSql.error("select round(c9) from db.t1")
tdSql.error("select round(c10) from db.t1")
# does not support aggregation
# for super table
tdSql.error("select max(round(c2)) from db.super")
tdSql.error("select max(round(c3)) from db.super")
tdSql.error("select max(round(c4)) from db.super")
tdSql.error("select max(round(c5)) from db.super")
tdSql.error("select max(round(c7)) from db.super")
tdSql.error("select max(round(c8)) from db.super")
tdSql.error("select round(max(c2)) from db.super")
tdSql.error("select round(max(c3)) from db.super")
tdSql.error("select round(max(c4)) from db.super")
tdSql.error("select round(max(c5)) from db.super")
tdSql.error("select round(max(c7)) from db.super")
tdSql.error("select round(max(c8)) from db.super")
tdSql.error("select min(round(c2)) from db.super")
tdSql.error("select min(round(c3)) from db.super")
tdSql.error("select min(round(c4)) from db.super")
tdSql.error("select min(round(c5)) from db.super")
tdSql.error("select min(round(c7)) from db.super")
tdSql.error("select min(round(c8)) from db.super")
tdSql.error("select round(min(c2)) from db.super")
tdSql.error("select round(min(c3)) from db.super")
tdSql.error("select round(min(c4)) from db.super")
tdSql.error("select round(min(c5)) from db.super")
tdSql.error("select round(min(c7)) from db.super")
tdSql.error("select round(min(c8)) from db.super")
tdSql.error("select avg(round(c2)) from db.super")
tdSql.error("select avg(round(c3)) from db.super")
tdSql.error("select avg(round(c4)) from db.super")
tdSql.error("select avg(round(c5)) from db.super")
tdSql.error("select avg(round(c7)) from db.super")
tdSql.error("select avg(round(c8)) from db.super")
tdSql.error("select round(avg(c2)) from db.super")
tdSql.error("select round(avg(c3)) from db.super")
tdSql.error("select round(avg(c4)) from db.super")
tdSql.error("select round(avg(c5)) from db.super")
tdSql.error("select round(avg(c7)) from db.super")
tdSql.error("select round(avg(c8)) from db.super")
tdSql.error("select last(round(c2)) from db.super")
tdSql.error("select last(round(c3)) from db.super")
tdSql.error("select last(round(c4)) from db.super")
tdSql.error("select last(round(c5)) from db.super")
tdSql.error("select last(round(c7)) from db.super")
tdSql.error("select last(round(c8)) from db.super")
tdSql.error("select round(last(c2)) from db.super")
tdSql.error("select round(last(c3)) from db.super")
tdSql.error("select round(last(c4)) from db.super")
tdSql.error("select round(last(c5)) from db.super")
tdSql.error("select round(last(c7)) from db.super")
tdSql.error("select round(last(c8)) from db.super")
tdSql.error("select last_row(round(c2)) from db.super")
tdSql.error("select last_row(round(c3)) from db.super")
tdSql.error("select last_row(round(c4)) from db.super")
tdSql.error("select last_row(round(c5)) from db.super")
tdSql.error("select last_row(round(c7)) from db.super")
tdSql.error("select last_row(round(c8)) from db.super")
tdSql.error("select round(last_row(c2)) from db.super")
tdSql.error("select round(last_row(c3)) from db.super")
tdSql.error("select round(last_row(c4)) from db.super")
tdSql.error("select round(last_row(c5)) from db.super")
tdSql.error("select round(last_row(c7)) from db.super")
tdSql.error("select round(last_row(c8)) from db.super")
tdSql.error("select first(round(c2)) from db.super")
tdSql.error("select first(round(c3)) from db.super")
tdSql.error("select first(round(c4)) from db.super")
tdSql.error("select first(round(c5)) from db.super")
tdSql.error("select first(round(c7)) from db.super")
tdSql.error("select first(round(c8)) from db.super")
tdSql.error("select round(first(c2)) from db.super")
tdSql.error("select round(first(c3)) from db.super")
tdSql.error("select round(first(c4)) from db.super")
tdSql.error("select round(first(c5)) from db.super")
tdSql.error("select round(first(c7)) from db.super")
tdSql.error("select round(first(c8)) from db.super")
tdSql.error("select diff(round(c2)) from db.super")
tdSql.error("select diff(round(c3)) from db.super")
tdSql.error("select diff(round(c4)) from db.super")
tdSql.error("select diff(round(c5)) from db.super")
tdSql.error("select diff(round(c7)) from db.super")
tdSql.error("select diff(round(c8)) from db.super")
tdSql.error("select round(diff(c2)) from db.super")
tdSql.error("select round(diff(c3)) from db.super")
tdSql.error("select round(diff(c4)) from db.super")
tdSql.error("select round(diff(c5)) from db.super")
tdSql.error("select round(diff(c7)) from db.super")
tdSql.error("select round(diff(c8)) from db.super")
tdSql.error("select percentile(round(c2), 0) from db.super")
tdSql.error("select percentile(round(c3), 0) from db.super")
tdSql.error("select percentile(round(c4), 0) from db.super")
tdSql.error("select percentile(round(c5), 0) from db.super")
tdSql.error("select percentile(round(c7), 0) from db.super")
tdSql.error("select percentile(round(c8), 0) from db.super")
tdSql.error("select round(percentile(c2, 0)) from db.super")
tdSql.error("select round(percentile(c3, 0)) from db.super")
tdSql.error("select round(percentile(c4, 0)) from db.super")
tdSql.error("select round(percentile(c5, 0)) from db.super")
tdSql.error("select round(percentile(c7, 0)) from db.super")
tdSql.error("select round(percentile(c8, 0)) from db.super")
tdSql.error("select derivate(round(c2),1s, 1) from db.super")
tdSql.error("select derivate(round(c3),1s, 1) from db.super")
tdSql.error("select derivate(round(c4),1s, 1) from db.super")
tdSql.error("select derivate(round(c5),1s, 1) from db.super")
tdSql.error("select derivate(round(c7),1s, 1) from db.super")
tdSql.error("select derivate(round(c8),1s, 1) from db.super")
tdSql.error("select round(derivate(c2,1s, 1)) from db.super")
tdSql.error("select round(derivate(c3,1s, 1)) from db.super")
tdSql.error("select round(derivate(c4,1s, 1)) from db.super")
tdSql.error("select round(derivate(c5,1s, 1)) from db.super")
tdSql.error("select round(derivate(c7,1s, 1)) from db.super")
tdSql.error("select round(derivate(c8,1s, 1)) from db.super")
tdSql.error("select leastsquares(round(c2),1, 1) from db.super")
tdSql.error("select leastsquares(round(c3),1, 1) from db.super")
tdSql.error("select leastsquares(round(c4),1, 1) from db.super")
tdSql.error("select leastsquares(round(c5),1, 1) from db.super")
tdSql.error("select leastsquares(round(c7),1, 1) from db.super")
tdSql.error("select leastsquares(round(c8),1, 1) from db.super")
tdSql.error("select round(leastsquares(c2,1, 1)) from db.super")
tdSql.error("select round(leastsquares(c3,1, 1)) from db.super")
tdSql.error("select round(leastsquares(c4,1, 1)) from db.super")
tdSql.error("select round(leastsquares(c5,1, 1)) from db.super")
tdSql.error("select round(leastsquares(c7,1, 1)) from db.super")
tdSql.error("select round(leastsquares(c8,1, 1)) from db.super")
tdSql.error("select count(round(c2)) from db.super")
tdSql.error("select count(round(c3)) from db.super")
tdSql.error("select count(round(c4)) from db.super")
tdSql.error("select count(round(c5)) from db.super")
tdSql.error("select count(round(c7)) from db.super")
tdSql.error("select count(round(c8)) from db.super")
tdSql.error("select round(count(c2)) from db.super")
tdSql.error("select round(count(c3)) from db.super")
tdSql.error("select round(count(c4)) from db.super")
tdSql.error("select round(count(c5)) from db.super")
tdSql.error("select round(count(c7)) from db.super")
tdSql.error("select round(count(c8)) from db.super")
tdSql.error("select twa(round(c2)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(round(c3)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(round(c4)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(round(c5)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(round(c7)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select twa(round(c8)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c2)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c3)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c4)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c5)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c7)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select round(twa(c8)) from db.super where ts <= 1537146000021 and ts >= 1537146000000")
tdSql.error("select stddev(round(c2)) from db.super")
tdSql.error("select stddev(round(c3)) from db.super")
tdSql.error("select stddev(round(c4)) from db.super")
tdSql.error("select stddev(round(c5)) from db.super")
tdSql.error("select stddev(round(c7)) from db.super")
tdSql.error("select stddev(round(c8)) from db.super")
tdSql.error("select round(stddev(c2)) from db.super")
tdSql.error("select round(stddev(c3)) from db.super")
tdSql.error("select round(stddev(c4)) from db.super")
tdSql.error("select round(stddev(c5)) from db.super")
tdSql.error("select round(stddev(c7)) from db.super")
tdSql.error("select round(stddev(c8)) from db.super")
tdSql.error("select spread(round(c2)) from db.super") def randomUInt(self):
tdSql.error("select spread(round(c3)) from db.super") return random.randint(0, 4294967294)
tdSql.error("select spread(round(c4)) from db.super")
tdSql.error("select spread(round(c5)) from db.super")
tdSql.error("select spread(round(c7)) from db.super")
tdSql.error("select spread(round(c8)) from db.super")
tdSql.error("select round(spread(c2)) from db.super") def randomBigint(self):
tdSql.error("select round(spread(c3)) from db.super") return random.randint(-2**63 + 1, 2**63 - 1)
tdSql.error("select round(spread(c4)) from db.super")
tdSql.error("select round(spread(c5)) from db.super")
tdSql.error("select round(spread(c7)) from db.super")
tdSql.error("select round(spread(c8)) from db.super")
tdSql.error("select round(c2 + 1) from db.super") def randomUBigint(self):
tdSql.error("select round(c3 + 1) from db.super") return random.randint(0, 18446744073709551614)
tdSql.error("select round(c4 + 1) from db.super")
tdSql.error("select round(c5 + 1) from db.super")
tdSql.error("select round(c7 + 1) from db.super")
tdSql.error("select round(c8 + 1) from db.super")
tdSql.error("select bottom(round(c2), 2) from db.super") def randomDouble(self):
tdSql.error("select bottom(round(c3), 2) from db.super") return random.random()
tdSql.error("select bottom(round(c4), 2) from db.super")
tdSql.error("select bottom(round(c5), 2) from db.super")
tdSql.error("select bottom(round(c7), 2) from db.super")
tdSql.error("select bottom(round(c8), 2) from db.super")
tdSql.error("select round(bottom(c2, 2)) from db.super") def randomNchar(self):
tdSql.error("select round(bottom(c3, 2)) from db.super") return random.choice('abcdefghijklmnopqrstuvwxyz')
tdSql.error("select round(bottom(c4, 2)) from db.super")
tdSql.error("select round(bottom(c5, 2)) from db.super")
tdSql.error("select round(bottom(c7, 2)) from db.super")
tdSql.error("select round(bottom(c8, 2)) from db.super")
tdSql.error("select round(c2) + round(c3) from db.super") def randomSmallint(self):
tdSql.error("select round(c3) + round(c4) from db.super") return random.randint(-32767, 32767)
tdSql.error("select round(c4) + round(c5) from db.super")
tdSql.error("select round(c5) + round(c7) from db.super")
tdSql.error("select round(c7) + round(c8) from db.super")
tdSql.error("select round(c8) + round(c2) from db.super")
tdSql.error("select round(c2 + c3) from db.super") def randomUSmallint(self):
tdSql.error("select round(c3 + c4) from db.super") return random.randint(0, 65534)
tdSql.error("select round(c4 + c5) from db.super")
tdSql.error("select round(c5 + c7) from db.super")
tdSql.error("select round(c7 + c8) from db.super")
tdSql.error("select round(c8 + c2) from db.super")
# for table def randomTinyint(self):
tdSql.error("select max(round(c2)) from db.t1") return random.randint(-127, 127)
tdSql.error("select max(round(c3)) from db.t1")
tdSql.error("select max(round(c4)) from db.t1")
tdSql.error("select max(round(c5)) from db.t1")
tdSql.error("select max(round(c7)) from db.t1")
tdSql.error("select max(round(c8)) from db.t1")
tdSql.error("select round(max(c2)) from db.t1") def randomUTinyint(self):
tdSql.error("select round(max(c3)) from db.t1") return random.randint(0, 254)
tdSql.error("select round(max(c4)) from db.t1")
tdSql.error("select round(max(c5)) from db.t1")
tdSql.error("select round(max(c7)) from db.t1")
tdSql.error("select round(max(c8)) from db.t1")
tdSql.error("select min(round(c2)) from db.t1") def run(self):
tdSql.error("select min(round(c3)) from db.t1") select_command = [
tdSql.error("select min(round(c4)) from db.t1") "round(ts)",
tdSql.error("select min(round(c5)) from db.t1") "round(timestamp_col)",
tdSql.error("select min(round(c7)) from db.t1") "round(int_col)",
tdSql.error("select min(round(c8)) from db.t1") "round(bigint_col)",
"round(float_col)",
tdSql.error("select round(min(c2)) from db.t1") "round(double_col)",
tdSql.error("select round(min(c3)) from db.t1") "round(binary_col)",
tdSql.error("select round(min(c4)) from db.t1") "round(smallint_col)",
tdSql.error("select round(min(c5)) from db.t1") "round(tinyint_col)",
tdSql.error("select round(min(c7)) from db.t1") "round(bool_col)",
tdSql.error("select round(min(c8)) from db.t1") "round(nchar_col)",
"round(uint_col)",
tdSql.error("select avg(round(c2)) from db.t1") "round(ubigint_col)",
tdSql.error("select avg(round(c3)) from db.t1") "round(usmallint_col)",
tdSql.error("select avg(round(c4)) from db.t1") "round(utinyint_col)",
tdSql.error("select avg(round(c5)) from db.t1") "round(timestamp_tag)",
tdSql.error("select avg(round(c7)) from db.t1") "round(int_tag)",
tdSql.error("select avg(round(c8)) from db.t1") "round(bigint_tag)",
"round(float_tag)",
tdSql.error("select round(avg(c2)) from db.t1") "round(double_tag)",
tdSql.error("select round(avg(c3)) from db.t1") "round(binary_tag)",
tdSql.error("select round(avg(c4)) from db.t1") "round(smallint_tag)",
tdSql.error("select round(avg(c5)) from db.t1") "round(tinyint_tag)",
tdSql.error("select round(avg(c7)) from db.t1") "round(bool_tag)",
tdSql.error("select round(avg(c8)) from db.t1") "round(nchar_tag)",
"round(uint_tag)",
tdSql.error("select last(round(c2)) from db.t1") "round(ubigint_tag)",
tdSql.error("select last(round(c3)) from db.t1") "round(usmallint_tag)",
tdSql.error("select last(round(c4)) from db.t1") "round(utinyint_tag)",
tdSql.error("select last(round(c5)) from db.t1") "count(round(int_col))",
tdSql.error("select last(round(c7)) from db.t1") "count(round(bigint_col))",
tdSql.error("select last(round(c8)) from db.t1") "count(round(float_col))",
"count(round(double_col))",
tdSql.error("select round(last(c2)) from db.t1") "count(round(smallint_col))",
tdSql.error("select round(last(c3)) from db.t1") "count(round(tinyint_col))",
tdSql.error("select round(last(c4)) from db.t1") "count(round(uint_col))",
tdSql.error("select round(last(c5)) from db.t1") "count(round(ubigint_col))",
tdSql.error("select round(last(c7)) from db.t1") "count(round(usmallint_col))",
tdSql.error("select round(last(c8)) from db.t1") "count(round(utinyint_col))",
"avg(round(int_col))",
tdSql.error("select last_row(round(c2)) from db.t1") "avg(round(bigint_col))",
tdSql.error("select last_row(round(c3)) from db.t1") "avg(round(float_col))",
tdSql.error("select last_row(round(c4)) from db.t1") "avg(round(double_col))",
tdSql.error("select last_row(round(c5)) from db.t1") "avg(round(smallint_col))",
tdSql.error("select last_row(round(c7)) from db.t1") "avg(round(tinyint_col))",
tdSql.error("select last_row(round(c8)) from db.t1") "avg(round(uint_col))",
"avg(round(ubigint_col))",
tdSql.error("select round(last_row(c2)) from db.t1") "avg(round(usmallint_col))",
tdSql.error("select round(last_row(c3)) from db.t1") "avg(round(utinyint_col))",
tdSql.error("select round(last_row(c4)) from db.t1") "twa(round(int_col))",
tdSql.error("select round(last_row(c5)) from db.t1") "twa(round(bigint_col))",
tdSql.error("select round(last_row(c7)) from db.t1") "twa(round(float_col))",
tdSql.error("select round(last_row(c8)) from db.t1") "twa(round(double_col))",
"twa(round(smallint_col))",
tdSql.error("select first(round(c2)) from db.t1") "twa(round(tinyint_col))",
tdSql.error("select first(round(c3)) from db.t1") "twa(round(uint_col))",
tdSql.error("select first(round(c4)) from db.t1") "twa(round(ubigint_col))",
tdSql.error("select first(round(c5)) from db.t1") "twa(round(usmallint_col))",
tdSql.error("select first(round(c7)) from db.t1") "twa(round(utinyint_col))",
tdSql.error("select first(round(c8)) from db.t1") "sum(round(int_col))",
"sum(round(bigint_col))",
tdSql.error("select round(first(c2)) from db.t1") "sum(round(float_col))",
tdSql.error("select round(first(c3)) from db.t1") "sum(round(double_col))",
tdSql.error("select round(first(c4)) from db.t1") "sum(round(smallint_col))",
tdSql.error("select round(first(c5)) from db.t1") "sum(round(tinyint_col))",
tdSql.error("select round(first(c7)) from db.t1") "sum(round(uint_col))",
tdSql.error("select round(first(c8)) from db.t1") "sum(round(ubigint_col))",
"sum(round(usmallint_col))",
tdSql.error("select diff(round(c2)) from db.t1") "sum(round(utinyint_col))",
tdSql.error("select diff(round(c3)) from db.t1") "stddev(round(int_col))",
tdSql.error("select diff(round(c4)) from db.t1") "stddev(round(bigint_col))",
tdSql.error("select diff(round(c5)) from db.t1") "stddev(round(float_col))",
tdSql.error("select diff(round(c7)) from db.t1") "stddev(round(double_col))",
tdSql.error("select diff(round(c8)) from db.t1") "stddev(round(smallint_col))",
"stddev(round(tinyint_col))",
tdSql.error("select round(diff(c2)) from db.t1") "stddev(round(uint_col))",
tdSql.error("select round(diff(c3)) from db.t1") "stddev(round(ubigint_col))",
tdSql.error("select round(diff(c4)) from db.t1") "stddev(round(usmallint_col))",
tdSql.error("select round(diff(c5)) from db.t1") "stddev(round(utinyint_col))",
tdSql.error("select round(diff(c7)) from db.t1") "irate(round(int_col))",
tdSql.error("select round(diff(c8)) from db.t1") "irate(round(bigint_col))",
"irate(round(float_col))",
tdSql.error("select percentile(round(c2), 0) from db.t1") "irate(round(double_col))",
tdSql.error("select percentile(round(c3), 0) from db.t1") "irate(round(smallint_col))",
tdSql.error("select percentile(round(c4), 0) from db.t1") "irate(round(tinyint_col))",
tdSql.error("select percentile(round(c5), 0) from db.t1") "irate(round(uint_col))",
tdSql.error("select percentile(round(c7), 0) from db.t1") "irate(round(ubigint_col))",
tdSql.error("select percentile(round(c8), 0) from db.t1") "irate(round(usmallint_col))",
"irate(round(utinyint_col))",
tdSql.error("select round(percentile(c2, 0)) from db.t1") "leastsquares(round(int_col), 1, 1)",
tdSql.error("select round(percentile(c3, 0)) from db.t1") "leastsquares(round(bigint_col), 1, 1)",
tdSql.error("select round(percentile(c4, 0)) from db.t1") "leastsquares(round(float_col), 1, 1)",
tdSql.error("select round(percentile(c5, 0)) from db.t1") "leastsquares(round(double_col), 1, 1)",
tdSql.error("select round(percentile(c7, 0)) from db.t1") "leastsquares(round(smallint_col), 1, 1)",
tdSql.error("select round(percentile(c8, 0)) from db.t1") "leastsquares(round(tinyint_col), 1, 1)",
"leastsquares(round(uint_col), 1, 1)",
tdSql.error("select derivate(round(c2),1s, 1) from db.t1") "leastsquares(round(ubigint_col), 1, 1)",
tdSql.error("select derivate(round(c3),1s, 1) from db.t1") "leastsquares(round(usmallint_col), 1, 1)",
tdSql.error("select derivate(round(c4),1s, 1) from db.t1") "leastsquares(round(utinyint_col), 1, 1)",
tdSql.error("select derivate(round(c5),1s, 1) from db.t1") "min(round(int_col))",
tdSql.error("select derivate(round(c7),1s, 1) from db.t1") "min(round(bigint_col))",
tdSql.error("select derivate(round(c8),1s, 1) from db.t1") "min(round(float_col))",
"min(round(double_col))",
tdSql.error("select round(derivate(c2,1s, 1)) from db.t1") "min(round(smallint_col))",
tdSql.error("select round(derivate(c3,1s, 1)) from db.t1") "min(round(tinyint_col))",
tdSql.error("select round(derivate(c4,1s, 1)) from db.t1") "min(round(uint_col))",
tdSql.error("select round(derivate(c5,1s, 1)) from db.t1") "min(round(ubigint_col))",
tdSql.error("select round(derivate(c7,1s, 1)) from db.t1") "min(round(usmallint_col))",
tdSql.error("select round(derivate(c8,1s, 1)) from db.t1") "min(round(utinyint_col))",
"max(round(int_col))",
tdSql.error("select leastsquares(round(c2),1, 1) from db.t1") "max(round(bigint_col))",
tdSql.error("select leastsquares(round(c3),1, 1) from db.t1") "max(round(float_col))",
tdSql.error("select leastsquares(round(c4),1, 1) from db.t1") "max(round(double_col))",
tdSql.error("select leastsquares(round(c5),1, 1) from db.t1") "max(round(smallint_col))",
tdSql.error("select leastsquares(round(c7),1, 1) from db.t1") "max(round(tinyint_col))",
tdSql.error("select leastsquares(round(c8),1, 1) from db.t1") "max(round(uint_col))",
"max(round(ubigint_col))",
tdSql.error("select round(leastsquares(c2,1, 1)) from db.t1") "max(round(usmallint_col))",
tdSql.error("select round(leastsquares(c3,1, 1)) from db.t1") "max(round(utinyint_col))",
tdSql.error("select round(leastsquares(c4,1, 1)) from db.t1") "first(round(int_col))",
tdSql.error("select round(leastsquares(c5,1, 1)) from db.t1") "first(round(bigint_col))",
tdSql.error("select round(leastsquares(c7,1, 1)) from db.t1") "first(round(float_col))",
tdSql.error("select round(leastsquares(c8,1, 1)) from db.t1") "first(round(double_col))",
"first(round(smallint_col))",
tdSql.error("select count(round(c2)) from db.t1") "first(round(tinyint_col))",
tdSql.error("select count(round(c3)) from db.t1") "first(round(uint_col))",
tdSql.error("select count(round(c4)) from db.t1") "first(round(ubigint_col))",
tdSql.error("select count(round(c5)) from db.t1") "first(round(usmallint_col))",
tdSql.error("select count(round(c7)) from db.t1") "first(round(utinyint_col))",
tdSql.error("select count(round(c8)) from db.t1") "last(round(int_col))",
"last(round(bigint_col))",
tdSql.error("select round(count(c2)) from db.t1") "last(round(float_col))",
tdSql.error("select round(count(c3)) from db.t1") "last(round(double_col))",
tdSql.error("select round(count(c4)) from db.t1") "last(round(smallint_col))",
tdSql.error("select round(count(c5)) from db.t1") "last(round(tinyint_col))",
tdSql.error("select round(count(c7)) from db.t1") "last(round(uint_col))",
tdSql.error("select round(count(c8)) from db.t1") "last(round(ubigint_col))",
"last(round(usmallint_col))",
tdSql.error("select twa(round(c2)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "last(round(utinyint_col))",
tdSql.error("select twa(round(c3)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(int_col), 1)",
tdSql.error("select twa(round(c4)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(bigint_col), 1)",
tdSql.error("select twa(round(c5)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(float_col), 1)",
tdSql.error("select twa(round(c7)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(double_col), 1)",
tdSql.error("select twa(round(c8)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(smallint_col), 1)",
"top(round(tinyint_col), 1)",
tdSql.error("select round(twa(c2)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(uint_col), 1)",
tdSql.error("select round(twa(c3)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(ubigint_col), 1)",
tdSql.error("select round(twa(c4)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(usmallint_col), 1)",
tdSql.error("select round(twa(c5)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "top(round(utinyint_col), 1)",
tdSql.error("select round(twa(c7)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "bottom(round(int_col), 1)",
tdSql.error("select round(twa(c8)) from db.t1 where ts <= 1537146000021 and ts >= 1537146000000") "bottom(round(bigint_col), 1)",
"bottom(round(float_col), 1)",
tdSql.error("select stddev(round(c2)) from db.t1") "bottom(round(double_col), 1)",
tdSql.error("select stddev(round(c3)) from db.t1") "bottom(round(smallint_col), 1)",
tdSql.error("select stddev(round(c4)) from db.t1") "bottom(round(tinyint_col), 1)",
tdSql.error("select stddev(round(c5)) from db.t1") "bottom(round(uint_col), 1)",
tdSql.error("select stddev(round(c7)) from db.t1") "bottom(round(ubigint_col), 1)",
tdSql.error("select stddev(round(c8)) from db.t1") "bottom(round(usmallint_col), 1)",
"bottom(round(utinyint_col), 1)",
tdSql.error("select round(stddev(c2)) from db.t1") "percentile(round(int_col), 20)",
tdSql.error("select round(stddev(c3)) from db.t1") "percentile(round(bigint_col), 20)",
tdSql.error("select round(stddev(c4)) from db.t1") "percentile(round(float_col), 20)",
tdSql.error("select round(stddev(c5)) from db.t1") "percentile(round(double_col), 20)",
tdSql.error("select round(stddev(c7)) from db.t1") "percentile(round(smallint_col), 20)",
tdSql.error("select round(stddev(c8)) from db.t1") "percentile(round(tinyint_col), 20)",
"percentile(round(uint_col), 20)",
tdSql.error("select spread(round(c2)) from db.t1") "percentile(round(ubigint_col), 20)",
tdSql.error("select spread(round(c3)) from db.t1") "percentile(round(usmallint_col), 20)",
tdSql.error("select spread(round(c4)) from db.t1") "percentile(round(utinyint_col), 20)",
tdSql.error("select spread(round(c5)) from db.t1") "apercentile(round(int_col), 20)",
tdSql.error("select spread(round(c7)) from db.t1") "apercentile(round(bigint_col), 20)",
tdSql.error("select spread(round(c8)) from db.t1") "apercentile(round(float_col), 20)",
"apercentile(round(double_col), 20)",
tdSql.error("select round(spread(c2)) from db.t1") "apercentile(round(smallint_col), 20)",
tdSql.error("select round(spread(c3)) from db.t1") "apercentile(round(tinyint_col), 20)",
tdSql.error("select round(spread(c4)) from db.t1") "apercentile(round(uint_col), 20)",
tdSql.error("select round(spread(c5)) from db.t1") "apercentile(round(ubigint_col), 20)",
tdSql.error("select round(spread(c7)) from db.t1") "apercentile(round(usmallint_col), 20)",
tdSql.error("select round(spread(c8)) from db.t1") "apercentile(round(utinyint_col), 20)",
"last_row(round(int_col))",
tdSql.error("select round(c2 + 1) from db.t1") "last_row(round(bigint_col))",
tdSql.error("select round(c3 + 1) from db.t1") "last_row(round(float_col))",
tdSql.error("select round(c4 + 1) from db.t1") "last_row(round(double_col))",
tdSql.error("select round(c5 + 1) from db.t1") "last_row(round(smallint_col))",
tdSql.error("select round(c7 + 1) from db.t1") "last_row(round(tinyint_col))",
tdSql.error("select round(c8 + 1) from db.t1") "last_row(round(uint_col))",
"last_row(round(ubigint_col))",
tdSql.error("select bottom(round(c2), 2) from db.t1") "last_row(round(usmallint_col))",
tdSql.error("select bottom(round(c3), 2) from db.t1") "last_row(round(utinyint_col))",
tdSql.error("select bottom(round(c4), 2) from db.t1") "interp(round(int_col))",
tdSql.error("select bottom(round(c5), 2) from db.t1") "interp(round(bigint_col))",
tdSql.error("select bottom(round(c7), 2) from db.t1") "interp(round(float_col))",
tdSql.error("select bottom(round(c8), 2) from db.t1") "interp(round(double_col))",
"interp(round(smallint_col))",
tdSql.error("select round(bottom(c2, 2)) from db.t1") "interp(round(tinyint_col))",
tdSql.error("select round(bottom(c3, 2)) from db.t1") "interp(round(uint_col))",
tdSql.error("select round(bottom(c4, 2)) from db.t1") "interp(round(ubigint_col))",
tdSql.error("select round(bottom(c5, 2)) from db.t1") "interp(round(usmallint_col))",
tdSql.error("select round(bottom(c7, 2)) from db.t1") "interp(round(utinyint_col))",
tdSql.error("select round(bottom(c8, 2)) from db.t1") "diff(round(int_col))",
"diff(round(bigint_col))",
tdSql.error("select round(c2) + round(c3) from db.t1") "diff(round(float_col))",
tdSql.error("select round(c3) + round(c4) from db.t1") "diff(round(double_col))",
tdSql.error("select round(c4) + round(c5) from db.t1") "diff(round(smallint_col))",
tdSql.error("select round(c5) + round(c7) from db.t1") "diff(round(tinyint_col))",
tdSql.error("select round(c7) + round(c8) from db.t1") "diff(round(uint_col))",
tdSql.error("select round(c8) + round(c2) from db.t1") "diff(round(ubigint_col))",
"diff(round(usmallint_col))",
tdSql.error("select round(c2 + c3) from db.t1") "diff(round(utinyint_col))",
tdSql.error("select round(c3 + c4) from db.t1") "spread(round(int_col))",
tdSql.error("select round(c4 + c5) from db.t1") "spread(round(bigint_col))",
tdSql.error("select round(c5 + c7) from db.t1") "spread(round(float_col))",
tdSql.error("select round(c7 + c8) from db.t1") "spread(round(double_col))",
tdSql.error("select round(c8 + c2) from db.t1") "spread(round(smallint_col))",
"spread(round(tinyint_col))",
"spread(round(uint_col))",
"spread(round(ubigint_col))",
"spread(round(usmallint_col))",
"spread(round(utinyint_col))",
"derivative(round(int_col), 1s, 0)",
"derivative(round(bigint_col), 1s, 0)",
"derivative(round(float_col), 1s, 0)",
"derivative(round(double_col), 1s, 0)",
"derivative(round(smallint_col), 1s, 0)",
"derivative(round(tinyint_col), 1s, 0)",
"derivative(round(uint_col), 1s, 0)",
"derivative(round(ubigint_col), 1s, 0)",
"derivative(round(usmallint_col), 1s, 0)",
"derivative(round(utinyint_col), 1s, 0)",
"round(int_col) - round(int_col)",
"round(bigint_col) - round(bigint_col)",
"round(float_col) - round(float_col)",
"round(double_col) - round(double_col)",
"round(smallint_col) - round(smallint_col)",
"round(tinyint_col) - round(tinyint_col)",
"round(uint_col) - round(uint_col)",
"round(ubigint_col) - round(ubigint_col)",
"round(usmallint_col) - round(usmallint_col)",
"round(utinyint_col) - round(utinyint_col)",
"round(int_col) / round(int_col)",
"round(bigint_col) / round(bigint_col)",
"round(float_col) / round(float_col)",
"round(double_col) / round(double_col)",
"round(smallint_col) / round(smallint_col)",
"round(tinyint_col) / round(tinyint_col)",
"round(uint_col) / round(uint_col)",
"round(ubigint_col) / round(ubigint_col)",
"round(usmallint_col) / round(usmallint_col)",
"round(utinyint_col) / round(utinyint_col)",
"round(int_col) * round(int_col)",
"round(bigint_col) * round(bigint_col)",
"round(float_col) * round(float_col)",
"round(double_col) * round(double_col)",
"round(smallint_col) * round(smallint_col)",
"round(tinyint_col) * round(tinyint_col)",
"round(uint_col) * round(uint_col)",
"round(ubigint_col) * round(ubigint_col)",
"round(usmallint_col) * round(usmallint_col)",
"round(utinyint_col) * round(utinyint_col)",
"round(count(ts))",
"round(count(timestamp_col))",
"round(count(int_col))",
"round(count(bigint_col))",
"round(count(float_col))",
"round(count(double_col))",
"round(count(binary_col))",
"round(count(smallint_col))",
"round(count(tinyint_col))",
"round(count(bool_col))",
"round(count(nchar_col))",
"round(count(uint_col))",
"round(count(ubigint_col))",
"round(count(usmallint_col))",
"round(count(utinyint_col))",
"round(count(timestamp_tag))",
"round(count(int_tag))",
"round(count(bigint_tag))",
"round(count(float_tag))",
"round(count(double_tag))",
"round(count(binary_tag))",
"round(count(smallint_tag))",
"round(count(tinyint_tag))",
"round(count(bool_tag))",
"round(count(nchar_tag))",
"round(count(uint_tag))",
"round(count(ubigint_tag))",
"round(count(usmallint_tag))",
"round(count(utinyint_tag))",
"round(avg(ts))",
"round(avg(timestamp_col))",
"round(avg(int_col))",
"round(avg(bigint_col))",
"round(avg(float_col))",
"round(avg(double_col))",
"round(avg(binary_col))",
"round(avg(smallint_col))",
"round(avg(tinyint_col))",
"round(avg(bool_col))",
"round(avg(nchar_col))",
"round(avg(uint_col))",
"round(avg(ubigint_col))",
"round(avg(usmallint_col))",
"round(avg(utinyint_col))",
"round(avg(timestamp_tag))",
"round(avg(int_tag))",
"round(avg(bigint_tag))",
"round(avg(float_tag))",
"round(avg(double_tag))",
"round(avg(binary_tag))",
"round(avg(smallint_tag))",
"round(avg(tinyint_tag))",
"round(avg(bool_tag))",
"round(avg(nchar_tag))",
"round(avg(uint_tag))",
"round(avg(ubigint_tag))",
"round(avg(usmallint_tag))",
"round(avg(utinyint_tag))",
"round(twa(ts))",
"round(twa(timestamp_col))",
"round(twa(int_col))",
"round(twa(bigint_col))",
"round(twa(float_col))",
"round(twa(double_col))",
"round(twa(binary_col))",
"round(twa(smallint_col))",
"round(twa(tinyint_col))",
"round(twa(bool_col))",
"round(twa(nchar_col))",
"round(twa(uint_col))",
"round(twa(ubigint_col))",
"round(twa(usmallint_col))",
"round(twa(utinyint_col))",
"round(twa(timestamp_tag))",
"round(twa(int_tag))",
"round(twa(bigint_tag))",
"round(twa(float_tag))",
"round(twa(double_tag))",
"round(twa(binary_tag))",
"round(twa(smallint_tag))",
"round(twa(tinyint_tag))",
"round(twa(bool_tag))",
"round(twa(nchar_tag))",
"round(twa(uint_tag))",
"round(twa(ubigint_tag))",
"round(twa(usmallint_tag))",
"round(twa(utinyint_tag))",
"round(sum(ts))",
"round(sum(timestamp_col))",
"round(sum(int_col))",
"round(sum(bigint_col))",
"round(sum(float_col))",
"round(sum(double_col))",
"round(sum(binary_col))",
"round(sum(smallint_col))",
"round(sum(tinyint_col))",
"round(sum(bool_col))",
"round(sum(nchar_col))",
"round(sum(uint_col))",
"round(sum(ubigint_col))",
"round(sum(usmallint_col))",
"round(sum(utinyint_col))",
"round(sum(timestamp_tag))",
"round(sum(int_tag))",
"round(sum(bigint_tag))",
"round(sum(float_tag))",
"round(sum(double_tag))",
"round(sum(binary_tag))",
"round(sum(smallint_tag))",
"round(sum(tinyint_tag))",
"round(sum(bool_tag))",
"round(sum(nchar_tag))",
"round(sum(uint_tag))",
"round(sum(ubigint_tag))",
"round(sum(usmallint_tag))",
"round(sum(utinyint_tag))",
"round(stddev(ts))",
"round(stddev(timestamp_col))",
"round(stddev(int_col))",
"round(stddev(bigint_col))",
"round(stddev(float_col))",
"round(stddev(double_col))",
"round(stddev(binary_col))",
"round(stddev(smallint_col))",
"round(stddev(tinyint_col))",
"round(stddev(bool_col))",
"round(stddev(nchar_col))",
"round(stddev(uint_col))",
"round(stddev(ubigint_col))",
"round(stddev(usmallint_col))",
"round(stddev(utinyint_col))",
"round(stddev(timestamp_tag))",
"round(stddev(int_tag))",
"round(stddev(bigint_tag))",
"round(stddev(float_tag))",
"round(stddev(double_tag))",
"round(stddev(binary_tag))",
"round(stddev(smallint_tag))",
"round(stddev(tinyint_tag))",
"round(stddev(bool_tag))",
"round(stddev(nchar_tag))",
"round(stddev(uint_tag))",
"round(stddev(ubigint_tag))",
"round(stddev(usmallint_tag))",
"round(stddev(utinyint_tag))",
"round(leastsquares(ts, 1, 1))",
"round(leastsquares(timestamp_col, 1, 1))",
"round(leastsquares(int_col, 1, 1))",
"round(leastsquares(bigint_col, 1, 1))",
"round(leastsquares(float_col, 1, 1))",
"round(leastsquares(double_col, 1, 1))",
"round(leastsquares(binary_col, 1, 1))",
"round(leastsquares(smallint_col, 1, 1))",
"round(leastsquares(tinyint_col, 1, 1))",
"round(leastsquares(bool_col, 1, 1))",
"round(leastsquares(nchar_col, 1, 1))",
"round(leastsquares(uint_col, 1, 1))",
"round(leastsquares(ubigint_col, 1, 1))",
"round(leastsquares(usmallint_col, 1, 1))",
"round(leastsquares(utinyint_col, 1, 1))",
"round(leastsquares(timestamp_tag, 1, 1))",
"round(leastsquares(int_tag, 1, 1))",
"round(leastsquares(bigint_tag, 1, 1))",
"round(leastsquares(float_tag, 1, 1))",
"round(leastsquares(double_tag, 1, 1))",
"round(leastsquares(binary_tag, 1, 1))",
"round(leastsquares(smallint_tag, 1, 1))",
"round(leastsquares(tinyint_tag, 1, 1))",
"round(leastsquares(bool_tag, 1, 1))",
"round(leastsquares(nchar_tag, 1, 1))",
"round(leastsquares(uint_tag, 1, 1))",
"round(leastsquares(ubigint_tag, 1, 1))",
"round(leastsquares(usmallint_tag, 1, 1))",
"round(leastsquares(utinyint_tag, 1, 1))",
"round(irate(ts))",
"round(irate(timestamp_col))",
"round(irate(int_col))",
"round(irate(bigint_col))",
"round(irate(float_col))",
"round(irate(double_col))",
"round(irate(binary_col))",
"round(irate(smallint_col))",
"round(irate(tinyint_col))",
"round(irate(bool_col))",
"round(irate(nchar_col))",
"round(irate(uint_col))",
"round(irate(ubigint_col))",
"round(irate(usmallint_col))",
"round(irate(utinyint_col))",
"round(irate(timestamp_tag))",
"round(irate(int_tag))",
"round(irate(bigint_tag))",
"round(irate(float_tag))",
"round(irate(double_tag))",
"round(irate(binary_tag))",
"round(irate(smallint_tag))",
"round(irate(tinyint_tag))",
"round(irate(bool_tag))",
"round(irate(nchar_tag))",
"round(irate(uint_tag))",
"round(irate(ubigint_tag))",
"round(irate(usmallint_tag))",
"round(irate(utinyint_tag))",
"round(min(ts))",
"round(min(timestamp_col))",
"round(min(int_col))",
"round(min(bigint_col))",
"round(min(float_col))",
"round(min(double_col))",
"round(min(binary_col))",
"round(min(smallint_col))",
"round(min(tinyint_col))",
"round(min(bool_col))",
"round(min(nchar_col))",
"round(min(uint_col))",
"round(min(ubigint_col))",
"round(min(usmallint_col))",
"round(min(utinyint_col))",
"round(min(timestamp_tag))",
"round(min(int_tag))",
"round(min(bigint_tag))",
"round(min(float_tag))",
"round(min(double_tag))",
"round(min(binary_tag))",
"round(min(smallint_tag))",
"round(min(tinyint_tag))",
"round(min(bool_tag))",
"round(min(nchar_tag))",
"round(min(uint_tag))",
"round(min(ubigint_tag))",
"round(min(usmallint_tag))",
"round(min(utinyint_tag))",
"round(max(ts))",
"round(max(timestamp_col))",
"round(max(int_col))",
"round(max(bigint_col))",
"round(max(float_col))",
"round(max(double_col))",
"round(max(binary_col))",
"round(max(smallint_col))",
"round(max(tinyint_col))",
"round(max(bool_col))",
"round(max(nchar_col))",
"round(max(uint_col))",
"round(max(ubigint_col))",
"round(max(usmallint_col))",
"round(max(utinyint_col))",
"round(max(timestamp_tag))",
"round(max(int_tag))",
"round(max(bigint_tag))",
"round(max(float_tag))",
"round(max(double_tag))",
"round(max(binary_tag))",
"round(max(smallint_tag))",
"round(max(tinyint_tag))",
"round(max(bool_tag))",
"round(max(nchar_tag))",
"round(max(uint_tag))",
"round(max(ubigint_tag))",
"round(max(usmallint_tag))",
"round(max(utinyint_tag))",
"round(first(ts))",
"round(first(timestamp_col))",
"round(first(int_col))",
"round(first(bigint_col))",
"round(first(float_col))",
"round(first(double_col))",
"round(first(binary_col))",
"round(first(smallint_col))",
"round(first(tinyint_col))",
"round(first(bool_col))",
"round(first(nchar_col))",
"round(first(uint_col))",
"round(first(ubigint_col))",
"round(first(usmallint_col))",
"round(first(utinyint_col))",
"round(first(timestamp_tag))",
"round(first(int_tag))",
"round(first(bigint_tag))",
"round(first(float_tag))",
"round(first(double_tag))",
"round(first(binary_tag))",
"round(first(smallint_tag))",
"round(first(tinyint_tag))",
"round(first(bool_tag))",
"round(first(nchar_tag))",
"round(first(uint_tag))",
"round(first(ubigint_tag))",
"round(first(usmallint_tag))",
"round(first(utinyint_tag))",
"round(last(ts))",
"round(last(timestamp_col))",
"round(last(int_col))",
"round(last(bigint_col))",
"round(last(float_col))",
"round(last(double_col))",
"round(last(binary_col))",
"round(last(smallint_col))",
"round(last(tinyint_col))",
"round(last(bool_col))",
"round(last(nchar_col))",
"round(last(uint_col))",
"round(last(ubigint_col))",
"round(last(usmallint_col))",
"round(last(utinyint_col))",
"round(last(timestamp_tag))",
"round(last(int_tag))",
"round(last(bigint_tag))",
"round(last(float_tag))",
"round(last(double_tag))",
"round(last(binary_tag))",
"round(last(smallint_tag))",
"round(last(tinyint_tag))",
"round(last(bool_tag))",
"round(last(nchar_tag))",
"round(last(uint_tag))",
"round(last(ubigint_tag))",
"round(last(usmallint_tag))",
"round(last(utinyint_tag))",
"round(top(ts, 1))",
"round(top(timestamp_col, 1))",
"round(top(int_col, 1))",
"round(top(bigint_col, 1))",
"round(top(float_col, 1))",
"round(top(double_col, 1))",
"round(top(binary_col, 1))",
"round(top(smallint_col, 1))",
"round(top(tinyint_col, 1))",
"round(top(bool_col, 1))",
"round(top(nchar_col, 1))",
"round(top(uint_col, 1))",
"round(top(ubigint_col, 1))",
"round(top(usmallint_col, 1))",
"round(top(utinyint_col, 1))",
"round(top(timestamp_tag, 1))",
"round(top(int_tag, 1))",
"round(top(bigint_tag, 1))",
"round(top(float_tag, 1))",
"round(top(double_tag, 1))",
"round(top(binary_tag, 1))",
"round(top(smallint_tag, 1))",
"round(top(tinyint_tag, 1))",
"round(top(bool_tag, 1))",
"round(top(nchar_tag, 1))",
"round(top(uint_tag, 1))",
"round(top(ubigint_tag, 1))",
"round(top(usmallint_tag, 1))",
"round(top(utinyint_tag, 1))",
"round(bottom(ts, 1))",
"round(bottom(timestamp_col, 1))",
"round(bottom(int_col, 1))",
"round(bottom(bigint_col, 1))",
"round(bottom(float_col, 1))",
"round(bottom(double_col, 1))",
"round(bottom(binary_col, 1))",
"round(bottom(smallint_col, 1))",
"round(bottom(tinyint_col, 1))",
"round(bottom(bool_col, 1))",
"round(bottom(nchar_col, 1))",
"round(bottom(uint_col, 1))",
"round(bottom(ubigint_col, 1))",
"round(bottom(usmallint_col, 1))",
"round(bottom(utinyint_col, 1))",
"round(bottom(timestamp_tag, 1))",
"round(bottom(int_tag, 1))",
"round(bottom(bigint_tag, 1))",
"round(bottom(float_tag, 1))",
"round(bottom(double_tag, 1))",
"round(bottom(binary_tag, 1))",
"round(bottom(smallint_tag, 1))",
"round(bottom(tinyint_tag, 1))",
"round(bottom(bool_tag, 1))",
"round(bottom(nchar_tag, 1))",
"round(bottom(uint_tag, 1))",
"round(bottom(ubigint_tag, 1))",
"round(bottom(usmallint_tag, 1))",
"round(bottom(utinyint_tag, 1))",
"round(percentile(ts, 1))",
"round(percentile(timestamp_col, 1))",
"round(percentile(int_col, 1))",
"round(percentile(bigint_col, 1))",
"round(percentile(float_col, 1))",
"round(percentile(double_col, 1))",
"round(percentile(binary_col, 1))",
"round(percentile(smallint_col, 1))",
"round(percentile(tinyint_col, 1))",
"round(percentile(bool_col, 1))",
"round(percentile(nchar_col, 1))",
"round(percentile(uint_col, 1))",
"round(percentile(ubigint_col, 1))",
"round(percentile(usmallint_col, 1))",
"round(percentile(utinyint_col, 1))",
"round(percentile(timestamp_tag, 1))",
"round(percentile(int_tag, 1))",
"round(percentile(bigint_tag, 1))",
"round(percentile(float_tag, 1))",
"round(percentile(double_tag, 1))",
"round(percentile(binary_tag, 1))",
"round(percentile(smallint_tag, 1))",
"round(percentile(tinyint_tag, 1))",
"round(percentile(bool_tag, 1))",
"round(percentile(nchar_tag, 1))",
"round(percentile(uint_tag, 1))",
"round(percentile(ubigint_tag, 1))",
"round(percentile(usmallint_tag, 1))",
"round(percentile(utinyint_tag, 1))",
"round(apercentile(ts, 1))",
"round(apercentile(timestamp_col, 1))",
"round(apercentile(int_col, 1))",
"round(apercentile(bigint_col, 1))",
"round(apercentile(float_col, 1))",
"round(apercentile(double_col, 1))",
"round(apercentile(binary_col, 1))",
"round(apercentile(smallint_col, 1))",
"round(apercentile(tinyint_col, 1))",
"round(apercentile(bool_col, 1))",
"round(apercentile(nchar_col, 1))",
"round(apercentile(uint_col, 1))",
"round(apercentile(ubigint_col, 1))",
"round(apercentile(usmallint_col, 1))",
"round(apercentile(utinyint_col, 1))",
"round(apercentile(timestamp_tag, 1))",
"round(apercentile(int_tag, 1))",
"round(apercentile(bigint_tag, 1))",
"round(apercentile(float_tag, 1))",
"round(apercentile(double_tag, 1))",
"round(apercentile(binary_tag, 1))",
"round(apercentile(smallint_tag, 1))",
"round(apercentile(tinyint_tag, 1))",
"round(apercentile(bool_tag, 1))",
"round(apercentile(nchar_tag, 1))",
"round(apercentile(uint_tag, 1))",
"round(apercentile(ubigint_tag, 1))",
"round(apercentile(usmallint_tag, 1))",
"round(apercentile(utinyint_tag, 1))",
"round(last_row(ts))",
"round(last_row(timestamp_col))",
"round(last_row(int_col))",
"round(last_row(bigint_col))",
"round(last_row(float_col))",
"round(last_row(double_col))",
"round(last_row(binary_col))",
"round(last_row(smallint_col))",
"round(last_row(tinyint_col))",
"round(last_row(bool_col))",
"round(last_row(nchar_col))",
"round(last_row(uint_col))",
"round(last_row(ubigint_col))",
"round(last_row(usmallint_col))",
"round(last_row(utinyint_col))",
"round(last_row(timestamp_tag))",
"round(last_row(int_tag))",
"round(last_row(bigint_tag))",
"round(last_row(float_tag))",
"round(last_row(double_tag))",
"round(last_row(binary_tag))",
"round(last_row(smallint_tag))",
"round(last_row(tinyint_tag))",
"round(last_row(bool_tag))",
"round(last_row(nchar_tag))",
"round(last_row(uint_tag))",
"round(last_row(ubigint_tag))",
"round(last_row(usmallint_tag))",
"round(last_row(utinyint_tag))",
"round(interp(ts))",
"round(interp(timestamp_col))",
"round(interp(int_col))",
"round(interp(bigint_col))",
"round(interp(float_col))",
"round(interp(double_col))",
"round(interp(binary_col))",
"round(interp(smallint_col))",
"round(interp(tinyint_col))",
"round(interp(bool_col))",
"round(interp(nchar_col))",
"round(interp(uint_col))",
"round(interp(ubigint_col))",
"round(interp(usmallint_col))",
"round(interp(utinyint_col))",
"round(interp(timestamp_tag))",
"round(interp(int_tag))",
"round(interp(bigint_tag))",
"round(interp(float_tag))",
"round(interp(double_tag))",
"round(interp(binary_tag))",
"round(interp(smallint_tag))",
"round(interp(tinyint_tag))",
"round(interp(bool_tag))",
"round(interp(nchar_tag))",
"round(interp(uint_tag))",
"round(interp(ubigint_tag))",
"round(interp(usmallint_tag))",
"round(interp(utinyint_tag))",
"round(diff(ts))",
"round(diff(timestamp_col))",
"round(diff(int_col))",
"round(diff(bigint_col))",
"round(diff(float_col))",
"round(diff(double_col))",
"round(diff(binary_col))",
"round(diff(smallint_col))",
"round(diff(tinyint_col))",
"round(diff(bool_col))",
"round(diff(nchar_col))",
"round(diff(uint_col))",
"round(diff(ubigint_col))",
"round(diff(usmallint_col))",
"round(diff(utinyint_col))",
"round(diff(timestamp_tag))",
"round(diff(int_tag))",
"round(diff(bigint_tag))",
"round(diff(float_tag))",
"round(diff(double_tag))",
"round(diff(binary_tag))",
"round(diff(smallint_tag))",
"round(diff(tinyint_tag))",
"round(diff(bool_tag))",
"round(diff(nchar_tag))",
"round(diff(uint_tag))",
"round(diff(ubigint_tag))",
"round(diff(usmallint_tag))",
"round(diff(utinyint_tag))",
"round(spread(ts))",
"round(spread(timestamp_col))",
"round(spread(int_col))",
"round(spread(bigint_col))",
"round(spread(float_col))",
"round(spread(double_col))",
"round(spread(binary_col))",
"round(spread(smallint_col))",
"round(spread(tinyint_col))",
"round(spread(bool_col))",
"round(spread(nchar_col))",
"round(spread(uint_col))",
"round(spread(ubigint_col))",
"round(spread(usmallint_col))",
"round(spread(utinyint_col))",
"round(spread(timestamp_tag))",
"round(spread(int_tag))",
"round(spread(bigint_tag))",
"round(spread(float_tag))",
"round(spread(double_tag))",
"round(spread(binary_tag))",
"round(spread(smallint_tag))",
"round(spread(tinyint_tag))",
"round(spread(bool_tag))",
"round(spread(nchar_tag))",
"round(spread(uint_tag))",
"round(spread(ubigint_tag))",
"round(spread(usmallint_tag))",
"round(spread(utinyint_tag))",
"round(derivative(ts, 1s, 0))",
"round(derivative(timestamp_col, 1s, 0))",
"round(derivative(int_col, 1s, 0))",
"round(derivative(bigint_col, 1s, 0))",
"round(derivative(float_col, 1s, 0))",
"round(derivative(double_col, 1s, 0))",
"round(derivative(binary_col, 1s, 0))",
"round(derivative(smallint_col, 1s, 0))",
"round(derivative(tinyint_col, 1s, 0))",
"round(derivative(bool_col, 1s, 0))",
"round(derivative(nchar_col, 1s, 0))",
"round(derivative(uint_col, 1s, 0))",
"round(derivative(ubigint_col, 1s, 0))",
"round(derivative(usmallint_col, 1s, 0))",
"round(derivative(utinyint_col, 1s, 0))",
"round(derivative(timestamp_tag, 1s, 0))",
"round(derivative(int_tag, 1s, 0))",
"round(derivative(bigint_tag, 1s, 0))",
"round(derivative(float_tag, 1s, 0))",
"round(derivative(double_tag, 1s, 0))",
"round(derivative(binary_tag, 1s, 0))",
"round(derivative(smallint_tag, 1s, 0))",
"round(derivative(tinyint_tag, 1s, 0))",
"round(derivative(bool_tag, 1s, 0))",
"round(derivative(nchar_tag, 1s, 0))",
"round(derivative(uint_tag, 1s, 0))",
"round(derivative(ubigint_tag, 1s, 0))",
"round(derivative(usmallint_tag, 1s, 0))",
"round(derivative(utinyint_tag, 1s, 0))",
"round(ts + ts)",
"round(timestamp_col + timestamp_col)",
"round(int_col + int_col)",
"round(bigint_col + bigint_col)",
"round(float_col + float_col)",
"round(double_col + double_col)",
"round(binary_col + binary_col)",
"round(smallint_col + smallint_col)",
"round(tinyint_col + tinyint_col)",
"round(bool_col + bool_col)",
"round(nchar_col + nchar_col)",
"round(uint_col + uint_col)",
"round(ubigint_col + ubigint_col)",
"round(usmallint_col + usmallint_col)",
"round(utinyint_col + utinyint_col)",
"round(timestamp_tag + timestamp_tag)",
"round(int_tag + int_tag)",
"round(bigint_tag + bigint_tag)",
"round(float_tag + float_tag)",
"round(double_tag + double_tag)",
"round(binary_tag + binary_tag)",
"round(smallint_tag + smallint_tag)",
"round(tinyint_tag + tinyint_tag)",
"round(bool_tag + bool_tag)",
"round(nchar_tag + nchar_tag)",
"round(uint_tag + uint_tag)",
"round(ubigint_tag + ubigint_tag)",
"round(usmallint_tag + usmallint_tag)",
"round(utinyint_tag + utinyint_tag)",
"round(ts - ts)",
"round(timestamp_col - timestamp_col)",
"round(int_col - int_col)",
"round(bigint_col - bigint_col)",
"round(float_col - float_col)",
"round(double_col - double_col)",
"round(binary_col - binary_col)",
"round(smallint_col - smallint_col)",
"round(tinyint_col - tinyint_col)",
"round(bool_col - bool_col)",
"round(nchar_col - nchar_col)",
"round(uint_col - uint_col)",
"round(ubigint_col - ubigint_col)",
"round(usmallint_col - usmallint_col)",
"round(utinyint_col - utinyint_col)",
"round(timestamp_tag - timestamp_tag)",
"round(int_tag - int_tag)",
"round(bigint_tag - bigint_tag)",
"round(float_tag - float_tag)",
"round(double_tag - double_tag)",
"round(binary_tag - binary_tag)",
"round(smallint_tag - smallint_tag)",
"round(tinyint_tag - tinyint_tag)",
"round(bool_tag - bool_tag)",
"round(nchar_tag - nchar_tag)",
"round(uint_tag - uint_tag)",
"round(ubigint_tag - ubigint_tag)",
"round(usmallint_tag - usmallint_tag)",
"round(utinyint_tag - utinyint_tag)",
"round(ts * ts)",
"round(timestamp_col * timestamp_col)",
"round(int_col * int_col)",
"round(bigint_col * bigint_col)",
"round(float_col * float_col)",
"round(double_col * double_col)",
"round(binary_col * binary_col)",
"round(smallint_col * smallint_col)",
"round(tinyint_col * tinyint_col)",
"round(bool_col * bool_col)",
"round(nchar_col * nchar_col)",
"round(uint_col * uint_col)",
"round(ubigint_col * ubigint_col)",
"round(usmallint_col * usmallint_col)",
"round(utinyint_col * utinyint_col)",
"round(timestamp_tag * timestamp_tag)",
"round(int_tag * int_tag)",
"round(bigint_tag * bigint_tag)",
"round(float_tag * float_tag)",
"round(double_tag * double_tag)",
"round(binary_tag * binary_tag)",
"round(smallint_tag * smallint_tag)",
"round(tinyint_tag * tinyint_tag)",
"round(bool_tag * bool_tag)",
"round(nchar_tag * nchar_tag)",
"round(uint_tag * uint_tag)",
"round(ubigint_tag * ubigint_tag)",
"round(usmallint_tag * usmallint_tag)",
"round(utinyint_tag * utinyint_tag)",
"round(ts / ts)",
"round(timestamp_col / timestamp_col)",
"round(int_col / int_col)",
"round(bigint_col / bigint_col)",
"round(float_col / float_col)",
"round(double_col / double_col)",
"round(binary_col / binary_col)",
"round(smallint_col / smallint_col)",
"round(tinyint_col / tinyint_col)",
"round(bool_col / bool_col)",
"round(nchar_col / nchar_col)",
"round(uint_col / uint_col)",
"round(ubigint_col / ubigint_col)",
"round(usmallint_col / usmallint_col)",
"round(utinyint_col / utinyint_col)",
"round(timestamp_tag / timestamp_tag)",
"round(int_tag / int_tag)",
"round(bigint_tag / bigint_tag)",
"round(float_tag / float_tag)",
"round(double_tag / double_tag)",
"round(binary_tag / binary_tag)",
"round(smallint_tag / smallint_tag)",
"round(tinyint_tag / tinyint_tag)",
"round(bool_tag / bool_tag)",
"round(nchar_tag / nchar_tag)",
"round(uint_tag / uint_tag)",
"round(ubigint_tag / ubigint_tag)",
"round(usmallint_tag / usmallint_tag)",
"round(utinyint_tag / utinyint_tag)",
"int_col, round(int_col), int_col",
"bigint_col, round(bigint_col), bigint_col",
"float_col, round(float_col), float_col",
"double_col, round(double_col), double_col",
"smallint_col, round(smallint_col), smallint_col",
"tinyint_col, round(tinyint_col), tinyint_col",
"uint_col, round(uint_col), uint_col",
"ubigint_col, round(ubigint_col), ubigint_col",
"usmallint_col, round(usmallint_col), usmallint_col",
"utinyint_col, round(utinyint_col), utinyint_col",
"count(int_col), round(int_col), count(int_col)",
"count(bigint_col), round(bigint_col), count(bigint_col)",
"count(float_col), round(float_col), count(float_col)",
"count(double_col), round(double_col), count(double_col)",
"count(smallint_col), round(smallint_col), count(smallint_col)",
"count(tinyint_col), round(tinyint_col), count(tinyint_col)",
"count(uint_col), round(uint_col), count(uint_col)",
"count(ubigint_col), round(ubigint_col), count(ubigint_col)",
"count(usmallint_col), round(usmallint_col), count(usmallint_col)",
"count(utinyint_col), round(utinyint_col), count(utinyint_col)",
"avg(int_col), round(int_col), avg(int_col)",
"avg(bigint_col), round(bigint_col), avg(bigint_col)",
"avg(float_col), round(float_col), avg(float_col)",
"avg(double_col), round(double_col), avg(double_col)",
"avg(smallint_col), round(smallint_col), avg(smallint_col)",
"avg(tinyint_col), round(tinyint_col), avg(tinyint_col)",
"avg(uint_col), round(uint_col), avg(uint_col)",
"avg(ubigint_col), round(ubigint_col), avg(ubigint_col)",
"avg(usmallint_col), round(usmallint_col), avg(usmallint_col)",
"avg(utinyint_col), round(utinyint_col), avg(utinyint_col)",
"twa(int_col), round(int_col), twa(int_col)",
"twa(bigint_col), round(bigint_col), twa(bigint_col)",
"twa(float_col), round(float_col), twa(float_col)",
"twa(double_col), round(double_col), twa(double_col)",
"twa(smallint_col), round(smallint_col), twa(smallint_col)",
"twa(tinyint_col), round(tinyint_col), twa(tinyint_col)",
"twa(uint_col), round(uint_col), twa(uint_col)",
"twa(ubigint_col), round(ubigint_col), twa(ubigint_col)",
"twa(usmallint_col), round(usmallint_col), twa(usmallint_col)",
"twa(utinyint_col), round(utinyint_col), twa(utinyint_col)",
"sum(int_col), round(int_col), sum(int_col)",
"sum(bigint_col), round(bigint_col), sum(bigint_col)",
"sum(float_col), round(float_col), sum(float_col)",
"sum(double_col), round(double_col), sum(double_col)",
"sum(smallint_col), round(smallint_col), sum(smallint_col)",
"sum(tinyint_col), round(tinyint_col), sum(tinyint_col)",
"sum(uint_col), round(uint_col), sum(uint_col)",
"sum(ubigint_col), round(ubigint_col), sum(ubigint_col)",
"sum(usmallint_col), round(usmallint_col), sum(usmallint_col)",
"sum(utinyint_col), round(utinyint_col), sum(utinyint_col)",
"stddev(int_col), round(int_col), stddev(int_col)",
"stddev(bigint_col), round(bigint_col), stddev(bigint_col)",
"stddev(float_col), round(float_col), stddev(float_col)",
"stddev(double_col), round(double_col), stddev(double_col)",
"stddev(smallint_col), round(smallint_col), stddev(smallint_col)",
"stddev(tinyint_col), round(tinyint_col), stddev(tinyint_col)",
"stddev(uint_col), round(uint_col), stddev(uint_col)",
"stddev(ubigint_col), round(ubigint_col), stddev(ubigint_col)",
"stddev(usmallint_col), round(usmallint_col), stddev(usmallint_col)",
"stddev(utinyint_col), round(utinyint_col), stddev(utinyint_col)",
"irate(int_col), round(int_col), irate(int_col)",
"irate(bigint_col), round(bigint_col), irate(bigint_col)",
"irate(float_col), round(float_col), irate(float_col)",
"irate(double_col), round(double_col), irate(double_col)",
"irate(smallint_col), round(smallint_col), irate(smallint_col)",
"irate(tinyint_col), round(tinyint_col), irate(tinyint_col)",
"irate(uint_col), round(uint_col), irate(uint_col)",
"irate(ubigint_col), round(ubigint_col), irate(ubigint_col)",
"irate(usmallint_col), round(usmallint_col), irate(usmallint_col)",
"irate(utinyint_col), round(utinyint_col), irate(utinyint_col)",
"min(int_col), round(int_col), min(int_col)",
"min(bigint_col), round(bigint_col), min(bigint_col)",
"min(float_col), round(float_col), min(float_col)",
"min(double_col), round(double_col), min(double_col)",
"min(smallint_col), round(smallint_col), min(smallint_col)",
"min(tinyint_col), round(tinyint_col), min(tinyint_col)",
"min(uint_col), round(uint_col), min(uint_col)",
"min(ubigint_col), round(ubigint_col), min(ubigint_col)",
"min(usmallint_col), round(usmallint_col), min(usmallint_col)",
"min(utinyint_col), round(utinyint_col), min(utinyint_col)",
"max(int_col), round(int_col), max(int_col)",
"max(bigint_col), round(bigint_col), max(bigint_col)",
"max(float_col), round(float_col), max(float_col)",
"max(double_col), round(double_col), max(double_col)",
"max(smallint_col), round(smallint_col), max(smallint_col)",
"max(tinyint_col), round(tinyint_col), max(tinyint_col)",
"max(uint_col), round(uint_col), max(uint_col)",
"max(ubigint_col), round(ubigint_col), max(ubigint_col)",
"max(usmallint_col), round(usmallint_col), max(usmallint_col)",
"max(utinyint_col), round(utinyint_col), max(utinyint_col)",
"first(int_col), round(int_col), first(int_col)",
"first(bigint_col), round(bigint_col), first(bigint_col)",
"first(float_col), round(float_col), first(float_col)",
"first(double_col), round(double_col), first(double_col)",
"first(smallint_col), round(smallint_col), first(smallint_col)",
"first(tinyint_col), round(tinyint_col), first(tinyint_col)",
"first(uint_col), round(uint_col), first(uint_col)",
"first(ubigint_col), round(ubigint_col), first(ubigint_col)",
"first(usmallint_col), round(usmallint_col), first(usmallint_col)",
"first(utinyint_col), round(utinyint_col), first(utinyint_col)",
"last(int_col), round(int_col), last(int_col)",
"last(bigint_col), round(bigint_col), last(bigint_col)",
"last(float_col), round(float_col), last(float_col)",
"last(double_col), round(double_col), last(double_col)",
"last(smallint_col), round(smallint_col), last(smallint_col)",
"last(tinyint_col), round(tinyint_col), last(tinyint_col)",
"last(uint_col), round(uint_col), last(uint_col)",
"last(ubigint_col), round(ubigint_col), last(ubigint_col)",
"last(usmallint_col), round(usmallint_col), last(usmallint_col)",
"last(utinyint_col), round(utinyint_col), last(utinyint_col)",
"last_row(int_col), round(int_col), last_row(int_col)",
"last_row(bigint_col), round(bigint_col), last_row(bigint_col)",
"last_row(float_col), round(float_col), last_row(float_col)",
"last_row(double_col), round(double_col), last_row(double_col)",
"last_row(smallint_col), round(smallint_col), last_row(smallint_col)",
"last_row(tinyint_col), round(tinyint_col), last_row(tinyint_col)",
"last_row(uint_col), round(uint_col), last_row(uint_col)",
"last_row(ubigint_col), round(ubigint_col), last_row(ubigint_col)",
"last_row(usmallint_col), round(usmallint_col), last_row(usmallint_col)",
"last_row(utinyint_col), round(utinyint_col), last_row(utinyint_col)",
"interp(int_col), round(int_col), interp(int_col)",
"interp(bigint_col), round(bigint_col), interp(bigint_col)",
"interp(float_col), round(float_col), interp(float_col)",
"interp(double_col), round(double_col), interp(double_col)",
"interp(smallint_col), round(smallint_col), interp(smallint_col)",
"interp(tinyint_col), round(tinyint_col), interp(tinyint_col)",
"interp(uint_col), round(uint_col), interp(uint_col)",
"interp(ubigint_col), round(ubigint_col), interp(ubigint_col)",
"interp(usmallint_col), round(usmallint_col), interp(usmallint_col)",
"interp(utinyint_col), round(utinyint_col), interp(utinyint_col)",
"diff(int_col), round(int_col), diff(int_col)",
"diff(bigint_col), round(bigint_col), diff(bigint_col)",
"diff(float_col), round(float_col), diff(float_col)",
"diff(double_col), round(double_col), diff(double_col)",
"diff(smallint_col), round(smallint_col), diff(smallint_col)",
"diff(tinyint_col), round(tinyint_col), diff(tinyint_col)",
"diff(uint_col), round(uint_col), diff(uint_col)",
"diff(ubigint_col), round(ubigint_col), diff(ubigint_col)",
"diff(usmallint_col), round(usmallint_col), diff(usmallint_col)",
"diff(utinyint_col), round(utinyint_col), diff(utinyint_col)",
"spread(int_col), round(int_col), spread(int_col)",
"spread(bigint_col), round(bigint_col), spread(bigint_col)",
"spread(float_col), round(float_col), spread(float_col)",
"spread(double_col), round(double_col), spread(double_col)",
"spread(smallint_col), round(smallint_col), spread(smallint_col)",
"spread(tinyint_col), round(tinyint_col), spread(tinyint_col)",
"spread(uint_col), round(uint_col), spread(uint_col)",
"spread(ubigint_col), round(ubigint_col), spread(ubigint_col)",
"spread(usmallint_col), round(usmallint_col), spread(usmallint_col)",
"spread(utinyint_col), round(utinyint_col), spread(utinyint_col)",
"leastsquares(int_col, 1, 1), round(int_col), leastsquares(int_col, 1, 1)",
"leastsquares(bigint_col, 1, 1), round(bigint_col), leastsquares(bigint_col, 1, 1)",
"leastsquares(float_col, 1, 1), round(float_col), leastsquares(float_col, 1, 1)",
"leastsquares(double_col, 1, 1), round(double_col), leastsquares(double_col, 1, 1)",
"leastsquares(smallint_col, 1, 1), round(smallint_col), leastsquares(smallint_col, 1, 1)",
"leastsquares(tinyint_col, 1, 1), round(tinyint_col), leastsquares(tinyint_col, 1, 1)",
"leastsquares(uint_col, 1, 1), round(uint_col), leastsquares(uint_col, 1, 1)",
"leastsquares(ubigint_col, 1, 1), round(ubigint_col), leastsquares(ubigint_col, 1, 1)",
"leastsquares(usmallint_col, 1, 1), round(usmallint_col), leastsquares(usmallint_col, 1, 1)",
"leastsquares(utinyint_col, 1, 1), round(utinyint_col), leastsquares(utinyint_col, 1, 1)",
"top(int_col, 1), round(int_col), top(int_col, 1)",
"top(bigint_col, 1), round(bigint_col), top(bigint_col, 1)",
"top(float_col, 1), round(float_col), top(float_col, 1)",
"top(double_col, 1), round(double_col), top(double_col, 1)",
"top(smallint_col, 1), round(smallint_col), top(smallint_col, 1)",
"top(tinyint_col, 1), round(tinyint_col), top(tinyint_col, 1)",
"top(uint_col, 1), round(uint_col), top(uint_col, 1)",
"top(ubigint_col, 1), round(ubigint_col), top(ubigint_col, 1)",
"top(usmallint_col, 1), round(usmallint_col), top(usmallint_col, 1)",
"top(utinyint_col, 1), round(utinyint_col), top(utinyint_col, 1)",
"bottom(int_col, 1), round(int_col), bottom(int_col, 1)",
"bottom(bigint_col, 1), round(bigint_col), bottom(bigint_col, 1)",
"bottom(float_col, 1), round(float_col), bottom(float_col, 1)",
"bottom(double_col, 1), round(double_col), bottom(double_col, 1)",
"bottom(smallint_col, 1), round(smallint_col), bottom(smallint_col, 1)",
"bottom(tinyint_col, 1), round(tinyint_col), bottom(tinyint_col, 1)",
"bottom(uint_col, 1), round(uint_col), bottom(uint_col, 1)",
"bottom(ubigint_col, 1), round(ubigint_col), bottom(ubigint_col, 1)",
"bottom(usmallint_col, 1), round(usmallint_col), bottom(usmallint_col, 1)",
"bottom(utinyint_col, 1), round(utinyint_col), bottom(utinyint_col, 1)",
"percentile(int_col, 1), round(int_col), percentile(int_col, 1)",
"percentile(bigint_col, 1), round(bigint_col), percentile(bigint_col, 1)",
"percentile(float_col, 1), round(float_col), percentile(float_col, 1)",
"percentile(double_col, 1), round(double_col), percentile(double_col, 1)",
"percentile(smallint_col, 1), round(smallint_col), percentile(smallint_col, 1)",
"percentile(tinyint_col, 1), round(tinyint_col), percentile(tinyint_col, 1)",
"percentile(uint_col, 1), round(uint_col), percentile(uint_col, 1)",
"percentile(ubigint_col, 1), round(ubigint_col), percentile(ubigint_col, 1)",
"percentile(usmallint_col, 1), round(usmallint_col), percentile(usmallint_col, 1)",
"percentile(utinyint_col, 1), round(utinyint_col), percentile(utinyint_col, 1)",
"apercentile(int_col, 1), round(int_col), apercentile(int_col, 1)",
"apercentile(bigint_col, 1), round(bigint_col), apercentile(bigint_col, 1)",
"apercentile(float_col, 1), round(float_col), apercentile(float_col, 1)",
"apercentile(double_col, 1), round(double_col), apercentile(double_col, 1)",
"apercentile(smallint_col, 1), round(smallint_col), apercentile(smallint_col, 1)",
"apercentile(tinyint_col, 1), round(tinyint_col), apercentile(tinyint_col, 1)",
"apercentile(uint_col, 1), round(uint_col), apercentile(uint_col, 1)",
"apercentile(ubigint_col, 1), round(ubigint_col), apercentile(ubigint_col, 1)",
"apercentile(usmallint_col, 1), round(usmallint_col), apercentile(usmallint_col, 1)",
"apercentile(utinyint_col, 1), round(utinyint_col), apercentile(utinyint_col, 1)",
"derivative(int_col, 1s, 0), round(int_col), derivative(int_col, 1s, 0)",
"derivative(bigint_col, 1s, 0), round(bigint_col), derivative(bigint_col, 1s, 0)",
"derivative(float_col, 1s, 0), round(float_col), derivative(float_col, 1s, 0)",
"derivative(double_col, 1s, 0), round(double_col), derivative(double_col, 1s, 0)",
"derivative(smallint_col, 1s, 0), round(smallint_col), derivative(smallint_col, 1s, 0)",
"derivative(tinyint_col, 1s, 0), round(tinyint_col), derivative(tinyint_col, 1s, 0)",
"derivative(uint_col, 1s, 0), round(uint_col), derivative(uint_col, 1s, 0)",
"derivative(ubigint_col, 1s, 0), round(ubigint_col), derivative(ubigint_col, 1s, 0)",
"derivative(usmallint_col, 1s, 0), round(usmallint_col), derivative(usmallint_col, 1s, 0)",
"derivative(utinyint_col, 1s, 0), round(utinyint_col), derivative(utinyint_col, 1s, 0)",
"1, round(int_col), 1",
"1, round(bigint_col), 1",
"1, round(float_col), 1",
"1, round(double_col), 1",
"1, round(smallint_col), 1",
"1, round(tinyint_col), 1",
"1, round(uint_col), 1",
"1, round(ubigint_col), 1",
"1, round(usmallint_col), 1",
"1, round(utinyint_col), 1",
"round(int_col) as anyName",
"round(bigint_col) as anyName",
"round(float_col) as anyName",
"round(double_col) as anyName",
"round(smallint_col) as anyName",
"round(tinyint_col) as anyName",
"round(uint_col) as anyName",
"round(ubigint_col) as anyName",
"round(usmallint_col) as anyName",
"round(utinyint_col) as anyName",
"distinct round(int_col)",
"distinct round(bigint_col)",
"distinct round(float_col)",
"distinct round(double_col)",
"distinct round(smallint_col)",
"distinct round(tinyint_col)",
"distinct round(uint_col)",
"distinct round(ubigint_col)",
"distinct round(usmallint_col)",
"distinct round(utinyint_col)",
]
simple_select_command = [
"round(super.int_col)",
"round(super.bigint_col)",
"round(super.float_col)",
"round(super.double_col)",
"round(super.smallint_col)",
"round(super.tinyint_col)",
"round(super.uint_col)",
"round(super.ubigint_col)",
"round(super.usmallint_col)",
"round(super.utinyint_col)",
"round(t1.int_col)",
"round(t1.bigint_col)",
"round(t1.float_col)",
"round(t1.double_col)",
"round(t1.smallint_col)",
"round(t1.tinyint_col)",
"round(t1.uint_col)",
"round(t1.ubigint_col)",
"round(t1.usmallint_col)",
"round(t1.utinyint_col)",
]
from_command = [" from super", " from t1"]
advance_from_command = [
" from super", " from t1",
" from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"
]
filter_command = [
"", " session(ts, 1s)", " state_window(int_col)", " interval (1s)",
" interval (1s) sliding (1s)", " group by (ts)"
]
fill_command = [
"", " fill(prev)", " fill(next)", " fill(null)", " fill(1)",
" fill(linear)"
]
tdSql.prepare()
tdSql.execute(
"create stable super (ts timestamp, timestamp_col timestamp, int_col int, bigint_col bigint, float_col float,\
double_col double, binary_col binary(8), smallint_col smallint, tinyint_col tinyint, bool_col bool, nchar_col nchar(8), \
uint_col int unsigned, ubigint_col bigint unsigned, usmallint_col smallint unsigned, utinyint_col tinyint unsigned) tags (int_tag int, bigint_tag bigint, \
float_tag float, double_tag double, binary_tag binary(8), smallint_tag smallint, tinyint_tag tinyint, bool_tag bool, nchar_tag nchar(8),\
uint_tag int unsigned, ubigint_tag bigint unsigned, usmallint_tag smallint unsigned, utinyint_tag tinyint unsigned)"
)
tdSql.execute(
"create stable superb (ts timestamp, timestamp_col timestamp, int_col int, bigint_col bigint, float_col float,\
double_col double, binary_col binary(8), smallint_col smallint, tinyint_col tinyint, bool_col bool, nchar_col nchar(8), \
uint_col int unsigned, ubigint_col bigint unsigned, usmallint_col smallint unsigned, utinyint_col tinyint unsigned) tags (int_tag int, bigint_tag bigint, \
float_tag float, double_tag double, binary_tag binary(8), smallint_tag smallint, tinyint_tag tinyint, bool_tag bool, nchar_tag nchar(8),\
uint_tag int unsigned, ubigint_tag bigint unsigned, usmallint_tag smallint unsigned, utinyint_tag tinyint unsigned)"
)
tdSql.execute(
"create table t1 using super tags (1, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomBigint(), self.randomDouble(), self.randomDouble(),
self.randomNchar(), self.randomSmallint(), self.randomTinyint(),
self.randomNchar(), self.randomUInt(), self.randomUBigint(),
self.randomUSmallint(), self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215891, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215892, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215893, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t1 values (1629796215894, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"create table t2 using superb tags (1, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomBigint(), self.randomDouble(), self.randomDouble(),
self.randomNchar(), self.randomSmallint(), self.randomTinyint(),
self.randomNchar(), self.randomUInt(), self.randomUBigint(),
self.randomUSmallint(), self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215891, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215892, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215893, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 1, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
tdSql.execute(
"insert into t2 values (1629796215894, 1629796215891, %d, %d, %f, %f, '%s', %d, %d, 0, '%s', %d, %d, %d, %d)"
% (self.randomInt(), self.randomBigint(), self.randomDouble(),
self.randomDouble(), self.randomNchar(), self.randomSmallint(),
self.randomTinyint(), self.randomNchar(), self.randomUInt(),
self.randomUBigint(), self.randomUSmallint(),
self.randomUTinyint()))
for s in range(len(select_command)):
for f in range(len(from_command)):
sql = "select " + select_command[s] + from_command[f]
if (select_command[s] == "round(int_col)"\
or select_command[s] == "round(bigint_col)"\
or select_command[s] == "round(smallint_col)" \
or select_command[s] == "round(float_col)"\
or select_command[s] == "round(double_col)"\
or select_command[s] == "round(tinyint_col)"\
or select_command[s] == "round(uint_col)"\
or select_command[s] == "round(ubigint_col)"\
or select_command[s] == "round(usmallint_col)"\
or select_command[s] == "round(utinyint_col)"\
or select_command[s] == "1, round(int_col), 1"\
or select_command[s] == "1, round(bigint_col), 1"\
or select_command[s] == "1, round(float_col), 1"\
or select_command[s] == "1, round(double_col), 1"\
or select_command[s] == "1, round(smallint_col), 1"\
or select_command[s] == "1, round(tinyint_col), 1"\
or select_command[s] == "1, round(uint_col), 1"\
or select_command[s] == "1, round(ubigint_col), 1"\
or select_command[s] == "1, round(usmallint_col), 1"\
or select_command[s] == "1, round(utinyint_col), 1"\
or select_command[s] == "int_col, round(int_col), int_col"\
or select_command[s] == "bigint_col, round(bigint_col), bigint_col"\
or select_command[s] == "float_col, round(float_col), float_col"\
or select_command[s] == "double_col, round(double_col), double_col"\
or select_command[s] == "smallint_col, round(smallint_col), smallint_col"\
or select_command[s] == "tinyint_col, round(tinyint_col), tinyint_col"\
or select_command[s] == "uint_col, round(uint_col), uint_col"\
or select_command[s] == "ubigint_col, round(ubigint_col), ubigint_col"\
or select_command[s] == "usmallint_col, round(usmallint_col), usmallint_col"\
or select_command[s] == "utinyint_col, round(utinyint_col), utinyint_col"\
or select_command[s] == "round(int_col) as anyName"\
or select_command[s] == "round(bigint_col) as anyName"\
or select_command[s] == "round(float_col) as anyName"\
or select_command[s] == "round(double_col) as anyName"\
or select_command[s] == "round(smallint_col) as anyName"\
or select_command[s] == "round(tinyint_col) as anyName"\
or select_command[s] == "round(uint_col) as anyName"\
or select_command[s] == "round(ubigint_col) as anyName"\
or select_command[s] == "round(usmallint_col) as anyName"\
or select_command[s] == "round(utinyint_col) as anyName"\
or select_command[s] == "round(int_col) + round(int_col)"\
or select_command[s] == "round(bigint_col) + round(bigint_col)"\
or select_command[s] == "round(float_col) + round(float_col)"\
or select_command[s] == "round(double_col) + round(double_col)"\
or select_command[s] == "round(smallint_col) + round(smallint_col)"\
or select_command[s] == "round(tinyint_col) + round(tinyint_col)"\
or select_command[s] == "round(uint_col) + round(uint_col)"\
or select_command[s] == "round(ubigint_col) + round(ubigint_col)"\
or select_command[s] == "round(usmallint_col) + round(usmallint_col)"\
or select_command[s] == "round(utinyint_col) + round(utinyint_col)"\
or select_command[s] == "round(int_col) + round(int_col)"\
or select_command[s] == "round(bigint_col) + round(bigint_col)"\
or select_command[s] == "round(float_col) + round(float_col)"\
or select_command[s] == "round(double_col) + round(double_col)"\
or select_command[s] == "round(smallint_col) + round(smallint_col)"\
or select_command[s] == "round(tinyint_col) + round(tinyint_col)"\
or select_command[s] == "round(uint_col) + round(uint_col)"\
or select_command[s] == "round(ubigint_col) + round(ubigint_col)"\
or select_command[s] == "round(usmallint_col) + round(usmallint_col)"\
or select_command[s] == "round(utinyint_col) + cei(utinyint_col)"\
or select_command[s] == "round(int_col) - round(int_col)"\
or select_command[s] == "round(bigint_col) - round(bigint_col)"\
or select_command[s] == "round(float_col) - round(float_col)"\
or select_command[s] == "round(double_col) - round(double_col)"\
or select_command[s] == "round(smallint_col) - round(smallint_col)"\
or select_command[s] == "round(tinyint_col) - round(tinyint_col)"\
or select_command[s] == "round(uint_col) - round(uint_col)"\
or select_command[s] == "round(ubigint_col) - round(ubigint_col)"\
or select_command[s] == "round(usmallint_col) - round(usmallint_col)"\
or select_command[s] == "round(utinyint_col) - round(utinyint_col)"\
or select_command[s] == "round(int_col) * round(int_col)"\
or select_command[s] == "round(bigint_col) * round(bigint_col)"\
or select_command[s] == "round(float_col) * round(float_col)"\
or select_command[s] == "round(double_col) * round(double_col)"\
or select_command[s] == "round(smallint_col) * round(smallint_col)"\
or select_command[s] == "round(tinyint_col) * round(tinyint_col)"\
or select_command[s] == "round(uint_col) * round(uint_col)"\
or select_command[s] == "round(ubigint_col) * round(ubigint_col)"\
or select_command[s] == "round(usmallint_col) * round(usmallint_col)"\
or select_command[s] == "round(utinyint_col) * round(utinyint_col)"\
or select_command[s] == "round(int_col) / round(int_col)"\
or select_command[s] == "round(bigint_col) / round(bigint_col)"\
or select_command[s] == "round(float_col) / round(float_col)"\
or select_command[s] == "round(double_col) / round(double_col)"\
or select_command[s] == "round(smallint_col) / round(smallint_col)"\
or select_command[s] == "round(tinyint_col) / round(tinyint_col)"\
or select_command[s] == "round(uint_col) / round(uint_col)"\
or select_command[s] == "round(ubigint_col) / round(ubigint_col)"\
or select_command[s] == "round(usmallint_col) / round(usmallint_col)"\
or select_command[s] == "round(utinyint_col) / round(utinyint_col)"):
tdSql.query(sql)
else:
tdSql.error(sql)
for sim in range(len(simple_select_command)):
for fr in range(len(advance_from_command)):
for filter in range(len(filter_command)):
for fill in range(len(fill_command)):
sql = "select " + simple_select_command[
sim] + advance_from_command[fr] + filter_command[
filter] + fill_command[fill]
if sql == "select round(t1.int_col) from t1"\
or sql == "select round(super.int_col) from super"\
or sql == "select round(t1.bigint_col) from t1"\
or sql == "select round(super.bigint_col) from super"\
or sql == "select round(t1.smallint_col) from t1"\
or sql == "select round(super.smallint_col) from super"\
or sql == "select round(t1.tinyint_col) from t1"\
or sql == "select round(super.tinyint_col) from super"\
or sql == "select round(t1.float_col) from t1"\
or sql == "select round(super.float_col) from super"\
or sql == "select round(t1.double_col) from t1"\
or sql == "select round(super.double_col) from super"\
or sql == "select round(t1.uint_col) from t1"\
or sql == "select round(super.uint_col) from super"\
or sql == "select round(t1.ubigint_col) from t1"\
or sql == "select round(super.ubigint_col) from super"\
or sql == "select round(t1.usmallint_col) from t1"\
or sql == "select round(super.usmallint_col) from super"\
or sql == "select round(t1.utinyint_col) from t1"\
or sql == "select round(super.utinyint_col) from super"\
or sql == "select round(super.int_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.bigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.smallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.tinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.float_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.double_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.uint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.ubigint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.usmallint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag"\
or sql == "select round(super.utinyint_col) from super, superb where super.ts = superb.ts and super.int_tag = superb.int_tag":
tdSql.query(sql)
else:
tdSql.error(sql)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)
tdCases.addWindows(__file__, TDTestCase()) tdCases.addWindows(__file__, TDTestCase())
tdCases.addLinux(__file__, TDTestCase()) tdCases.addLinux(__file__, TDTestCase())
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册