diff --git a/tests/pytest/functions/function_ceil.py b/tests/pytest/functions/function_ceil.py index 7d1ad4c0af9e25176c25cf132497c4fbb84738ae..cb3408c3774c09c41b637c0ddff2600e56d8aea9 100644 --- a/tests/pytest/functions/function_ceil.py +++ b/tests/pytest/functions/function_ceil.py @@ -1401,517 +1401,527 @@ class TDTestCase: self.randomUTinyint())) shouldPass = ['select ceil(int_col) from super', - 'select ceil(int_col) from t1', - 'select ceil(bigint_col) from super', - 'select ceil(bigint_col) from t1', - 'select ceil(float_col) from super', - 'select ceil(float_col) from t1', - 'select ceil(double_col) from super', - 'select ceil(double_col) from t1', - 'select ceil(smallint_col) from super', - 'select ceil(smallint_col) from t1', - 'select ceil(tinyint_col) from super', - 'select ceil(tinyint_col) from t1', - 'select ceil(uint_col) from super', - 'select ceil(uint_col) from t1', - 'select ceil(ubigint_col) from super', - 'select ceil(ubigint_col) from t1', - 'select ceil(usmallint_col) from super', - 'select ceil(usmallint_col) from t1', - 'select ceil(utinyint_col) from super', - 'select ceil(utinyint_col) from t1', - 'select ceil(int_col) - ceil(int_col) from super', - 'select ceil(int_col) - ceil(int_col) from t1', - 'select ceil(bigint_col) - ceil(bigint_col) from super', - 'select ceil(bigint_col) - ceil(bigint_col) from t1', - 'select ceil(float_col) - ceil(float_col) from super', - 'select ceil(float_col) - ceil(float_col) from t1', - 'select ceil(double_col) - ceil(double_col) from super', - 'select ceil(double_col) - ceil(double_col) from t1', - 'select ceil(smallint_col) - ceil(smallint_col) from super', - 'select ceil(smallint_col) - ceil(smallint_col) from t1', - 'select ceil(tinyint_col) - ceil(tinyint_col) from super', - 'select ceil(tinyint_col) - ceil(tinyint_col) from t1', - 'select ceil(uint_col) - ceil(uint_col) from super', - 'select ceil(uint_col) - ceil(uint_col) from t1', - 'select ceil(ubigint_col) - ceil(ubigint_col) from super', - 'select ceil(ubigint_col) - ceil(ubigint_col) from t1', - 'select ceil(usmallint_col) - ceil(usmallint_col) from super', - 'select ceil(usmallint_col) - ceil(usmallint_col) from t1', - 'select ceil(utinyint_col) - ceil(utinyint_col) from super', - 'select ceil(utinyint_col) - ceil(utinyint_col) from t1', - 'select ceil(int_col) / ceil(int_col) from super', - 'select ceil(int_col) / ceil(int_col) from t1', - 'select ceil(bigint_col) / ceil(bigint_col) from super', - 'select ceil(bigint_col) / ceil(bigint_col) from t1', - 'select ceil(float_col) / ceil(float_col) from super', - 'select ceil(float_col) / ceil(float_col) from t1', - 'select ceil(double_col) / ceil(double_col) from super', - 'select ceil(double_col) / ceil(double_col) from t1', - 'select ceil(smallint_col) / ceil(smallint_col) from super', - 'select ceil(smallint_col) / ceil(smallint_col) from t1', - 'select ceil(tinyint_col) / ceil(tinyint_col) from super', - 'select ceil(tinyint_col) / ceil(tinyint_col) from t1', - 'select ceil(uint_col) / ceil(uint_col) from super', - 'select ceil(uint_col) / ceil(uint_col) from t1', - 'select ceil(ubigint_col) / ceil(ubigint_col) from super', - 'select ceil(ubigint_col) / ceil(ubigint_col) from t1', - 'select ceil(usmallint_col) / ceil(usmallint_col) from super', - 'select ceil(usmallint_col) / ceil(usmallint_col) from t1', - 'select ceil(utinyint_col) / ceil(utinyint_col) from super', - 'select ceil(utinyint_col) / ceil(utinyint_col) from t1', - 'select ceil(int_col) * ceil(int_col) from super', - 'select ceil(int_col) * ceil(int_col) from t1', - 'select ceil(bigint_col) * ceil(bigint_col) from super', - 'select ceil(bigint_col) * ceil(bigint_col) from t1', - 'select ceil(float_col) * ceil(float_col) from super', - 'select ceil(float_col) * ceil(float_col) from t1', - 'select ceil(double_col) * ceil(double_col) from super', - 'select ceil(double_col) * ceil(double_col) from t1', - 'select ceil(smallint_col) * ceil(smallint_col) from super', - 'select ceil(smallint_col) * ceil(smallint_col) from t1', - 'select ceil(tinyint_col) * ceil(tinyint_col) from super', - 'select ceil(tinyint_col) * ceil(tinyint_col) from t1', - 'select ceil(uint_col) * ceil(uint_col) from super', - 'select ceil(uint_col) * ceil(uint_col) from t1', - 'select ceil(ubigint_col) * ceil(ubigint_col) from super', - 'select ceil(ubigint_col) * ceil(ubigint_col) from t1', - 'select ceil(usmallint_col) * ceil(usmallint_col) from super', - 'select ceil(usmallint_col) * ceil(usmallint_col) from t1', - 'select ceil(utinyint_col) * ceil(utinyint_col) from super', - 'select ceil(utinyint_col) * ceil(utinyint_col) from t1', - 'select ceil(count(ts)) from super', - 'select ceil(count(ts)) from t1', - 'select ceil(count(timestamp_col)) from super', - 'select ceil(count(timestamp_col)) from t1', - 'select ceil(count(int_col)) from super', - 'select ceil(count(int_col)) from t1', - 'select ceil(count(bigint_col)) from super', - 'select ceil(count(bigint_col)) from t1', - 'select ceil(count(float_col)) from super', - 'select ceil(count(float_col)) from t1', - 'select ceil(count(double_col)) from super', - 'select ceil(count(double_col)) from t1', - 'select ceil(count(binary_col)) from super', - 'select ceil(count(binary_col)) from t1', - 'select ceil(count(smallint_col)) from super', - 'select ceil(count(smallint_col)) from t1', - 'select ceil(count(tinyint_col)) from super', - 'select ceil(count(tinyint_col)) from t1', - 'select ceil(count(bool_col)) from super', - 'select ceil(count(bool_col)) from t1', - 'select ceil(count(nchar_col)) from super', - 'select ceil(count(nchar_col)) from t1', - 'select ceil(count(uint_col)) from super', - 'select ceil(count(uint_col)) from t1', - 'select ceil(count(ubigint_col)) from super', - 'select ceil(count(ubigint_col)) from t1', - 'select ceil(count(usmallint_col)) from super', - 'select ceil(count(usmallint_col)) from t1', - 'select ceil(count(utinyint_col)) from super', - 'select ceil(count(utinyint_col)) from t1', - 'select ceil(count(timestamp_tag)) from super', - 'select ceil(count(timestamp_tag)) from t1', - 'select ceil(count(int_tag)) from super', - 'select ceil(count(int_tag)) from t1', - 'select ceil(count(bigint_tag)) from super', - 'select ceil(count(bigint_tag)) from t1', - 'select ceil(count(float_tag)) from super', - 'select ceil(count(float_tag)) from t1', - 'select ceil(count(double_tag)) from super', - 'select ceil(count(double_tag)) from t1', - 'select ceil(count(binary_tag)) from super', - 'select ceil(count(binary_tag)) from t1', - 'select ceil(count(smallint_tag)) from super', - 'select ceil(count(smallint_tag)) from t1', - 'select ceil(count(tinyint_tag)) from super', - 'select ceil(count(tinyint_tag)) from t1', - 'select ceil(count(bool_tag)) from super', - 'select ceil(count(bool_tag)) from t1', - 'select ceil(count(nchar_tag)) from super', - 'select ceil(count(nchar_tag)) from t1', - 'select ceil(count(uint_tag)) from super', - 'select ceil(count(uint_tag)) from t1', - 'select ceil(count(ubigint_tag)) from super', - 'select ceil(count(ubigint_tag)) from t1', - 'select ceil(count(usmallint_tag)) from super', - 'select ceil(count(usmallint_tag)) from t1', - 'select ceil(count(utinyint_tag)) from super', - 'select ceil(count(utinyint_tag)) from t1', - 'select ceil(avg(int_col)) from super', - 'select ceil(avg(int_col)) from t1', - 'select ceil(avg(bigint_col)) from super', - 'select ceil(avg(bigint_col)) from t1', - 'select ceil(avg(float_col)) from super', - 'select ceil(avg(float_col)) from t1', - 'select ceil(avg(double_col)) from super', - 'select ceil(avg(double_col)) from t1', - 'select ceil(avg(smallint_col)) from super', - 'select ceil(avg(smallint_col)) from t1', - 'select ceil(avg(tinyint_col)) from super', - 'select ceil(avg(tinyint_col)) from t1', - 'select ceil(avg(uint_col)) from super', - 'select ceil(avg(uint_col)) from t1', - 'select ceil(avg(ubigint_col)) from super', - 'select ceil(avg(ubigint_col)) from t1', - 'select ceil(avg(usmallint_col)) from super', - 'select ceil(avg(usmallint_col)) from t1', - 'select ceil(avg(utinyint_col)) from super', - 'select ceil(avg(utinyint_col)) from t1', - 'select ceil(twa(int_col)) from t1', - 'select ceil(twa(bigint_col)) from t1', - 'select ceil(twa(float_col)) from t1', - 'select ceil(twa(double_col)) from t1', - 'select ceil(twa(smallint_col)) from t1', - 'select ceil(twa(tinyint_col)) from t1', - 'select ceil(twa(uint_col)) from t1', - 'select ceil(twa(ubigint_col)) from t1', - 'select ceil(twa(usmallint_col)) from t1', - 'select ceil(twa(utinyint_col)) from t1', - 'select ceil(sum(int_col)) from super', - 'select ceil(sum(int_col)) from t1', - 'select ceil(sum(bigint_col)) from super', - 'select ceil(sum(bigint_col)) from t1', - 'select ceil(sum(float_col)) from super', - 'select ceil(sum(float_col)) from t1', - 'select ceil(sum(double_col)) from super', - 'select ceil(sum(double_col)) from t1', - 'select ceil(sum(smallint_col)) from super', - 'select ceil(sum(smallint_col)) from t1', - 'select ceil(sum(tinyint_col)) from super', - 'select ceil(sum(tinyint_col)) from t1', - 'select ceil(sum(uint_col)) from super', - 'select ceil(sum(uint_col)) from t1', - 'select ceil(sum(ubigint_col)) from super', - 'select ceil(sum(ubigint_col)) from t1', - 'select ceil(sum(usmallint_col)) from super', - 'select ceil(sum(usmallint_col)) from t1', - 'select ceil(sum(utinyint_col)) from super', - 'select ceil(sum(utinyint_col)) from t1', - 'select ceil(stddev(int_col)) from super', - 'select ceil(stddev(int_col)) from t1', - 'select ceil(stddev(bigint_col)) from super', - 'select ceil(stddev(bigint_col)) from t1', - 'select ceil(stddev(float_col)) from super', - 'select ceil(stddev(float_col)) from t1', - 'select ceil(stddev(double_col)) from super', - 'select ceil(stddev(double_col)) from t1', - 'select ceil(stddev(smallint_col)) from super', - 'select ceil(stddev(smallint_col)) from t1', - 'select ceil(stddev(tinyint_col)) from super', - 'select ceil(stddev(tinyint_col)) from t1', - 'select ceil(stddev(uint_col)) from super', - 'select ceil(stddev(uint_col)) from t1', - 'select ceil(stddev(ubigint_col)) from super', - 'select ceil(stddev(ubigint_col)) from t1', - 'select ceil(stddev(usmallint_col)) from super', - 'select ceil(stddev(usmallint_col)) from t1', - 'select ceil(stddev(utinyint_col)) from super', - 'select ceil(stddev(utinyint_col)) from t1', - 'select ceil(irate(int_col)) from t1', - 'select ceil(irate(bigint_col)) from t1', - 'select ceil(irate(float_col)) from t1', - 'select ceil(irate(double_col)) from t1', - 'select ceil(irate(smallint_col)) from t1', - 'select ceil(irate(tinyint_col)) from t1', - 'select ceil(irate(uint_col)) from t1', - 'select ceil(irate(ubigint_col)) from t1', - 'select ceil(irate(usmallint_col)) from t1', - 'select ceil(irate(utinyint_col)) from t1', - 'select ceil(min(int_col)) from super', - 'select ceil(min(int_col)) from t1', - 'select ceil(min(bigint_col)) from super', - 'select ceil(min(bigint_col)) from t1', - 'select ceil(min(float_col)) from super', - 'select ceil(min(float_col)) from t1', - 'select ceil(min(double_col)) from super', - 'select ceil(min(double_col)) from t1', - 'select ceil(min(smallint_col)) from super', - 'select ceil(min(smallint_col)) from t1', - 'select ceil(min(tinyint_col)) from super', - 'select ceil(min(tinyint_col)) from t1', - 'select ceil(min(uint_col)) from super', - 'select ceil(min(uint_col)) from t1', - 'select ceil(min(ubigint_col)) from super', - 'select ceil(min(ubigint_col)) from t1', - 'select ceil(min(usmallint_col)) from super', - 'select ceil(min(usmallint_col)) from t1', - 'select ceil(min(utinyint_col)) from super', - 'select ceil(min(utinyint_col)) from t1', - 'select ceil(max(int_col)) from super', - 'select ceil(max(int_col)) from t1', - 'select ceil(max(bigint_col)) from super', - 'select ceil(max(bigint_col)) from t1', - 'select ceil(max(float_col)) from super', - 'select ceil(max(float_col)) from t1', - 'select ceil(max(double_col)) from super', - 'select ceil(max(double_col)) from t1', - 'select ceil(max(smallint_col)) from super', - 'select ceil(max(smallint_col)) from t1', - 'select ceil(max(tinyint_col)) from super', - 'select ceil(max(tinyint_col)) from t1', - 'select ceil(max(uint_col)) from super', - 'select ceil(max(uint_col)) from t1', - 'select ceil(max(ubigint_col)) from super', - 'select ceil(max(ubigint_col)) from t1', - 'select ceil(max(usmallint_col)) from super', - 'select ceil(max(usmallint_col)) from t1', - 'select ceil(max(utinyint_col)) from super', - 'select ceil(max(utinyint_col)) from t1', - 'select ceil(first(int_col)) from super', - 'select ceil(first(int_col)) from t1', - 'select ceil(first(bigint_col)) from super', - 'select ceil(first(bigint_col)) from t1', - 'select ceil(first(float_col)) from super', - 'select ceil(first(float_col)) from t1', - 'select ceil(first(double_col)) from super', - 'select ceil(first(double_col)) from t1', - 'select ceil(first(smallint_col)) from super', - 'select ceil(first(smallint_col)) from t1', - 'select ceil(first(tinyint_col)) from super', - 'select ceil(first(tinyint_col)) from t1', - 'select ceil(first(uint_col)) from super', - 'select ceil(first(uint_col)) from t1', - 'select ceil(first(ubigint_col)) from super', - 'select ceil(first(ubigint_col)) from t1', - 'select ceil(first(usmallint_col)) from super', - 'select ceil(first(usmallint_col)) from t1', - 'select ceil(first(utinyint_col)) from super', - 'select ceil(first(utinyint_col)) from t1', - 'select ceil(last(int_col)) from super', - 'select ceil(last(int_col)) from t1', - 'select ceil(last(bigint_col)) from super', - 'select ceil(last(bigint_col)) from t1', - 'select ceil(last(float_col)) from super', - 'select ceil(last(float_col)) from t1', - 'select ceil(last(double_col)) from super', - 'select ceil(last(double_col)) from t1', - 'select ceil(last(smallint_col)) from super', - 'select ceil(last(smallint_col)) from t1', - 'select ceil(last(tinyint_col)) from super', - 'select ceil(last(tinyint_col)) from t1', - 'select ceil(last(uint_col)) from super', - 'select ceil(last(uint_col)) from t1', - 'select ceil(last(ubigint_col)) from super', - 'select ceil(last(ubigint_col)) from t1', - 'select ceil(last(usmallint_col)) from super', - 'select ceil(last(usmallint_col)) from t1', - 'select ceil(last(utinyint_col)) from super', - 'select ceil(last(utinyint_col)) from t1', - 'select ceil(percentile(int_col, 1)) from t1', - 'select ceil(percentile(bigint_col, 1)) from t1', - 'select ceil(percentile(float_col, 1)) from t1', - 'select ceil(percentile(double_col, 1)) from t1', - 'select ceil(percentile(smallint_col, 1)) from t1', - 'select ceil(percentile(tinyint_col, 1)) from t1', - 'select ceil(percentile(uint_col, 1)) from t1', - 'select ceil(percentile(ubigint_col, 1)) from t1', - 'select ceil(percentile(usmallint_col, 1)) from t1', - 'select ceil(percentile(utinyint_col, 1)) from t1', - 'select ceil(apercentile(int_col, 1)) from super', - 'select ceil(apercentile(int_col, 1)) from t1', - 'select ceil(apercentile(bigint_col, 1)) from super', - 'select ceil(apercentile(bigint_col, 1)) from t1', - 'select ceil(apercentile(float_col, 1)) from super', - 'select ceil(apercentile(float_col, 1)) from t1', - 'select ceil(apercentile(double_col, 1)) from super', - 'select ceil(apercentile(double_col, 1)) from t1', - 'select ceil(apercentile(smallint_col, 1)) from super', - 'select ceil(apercentile(smallint_col, 1)) from t1', - 'select ceil(apercentile(tinyint_col, 1)) from super', - 'select ceil(apercentile(tinyint_col, 1)) from t1', - 'select ceil(apercentile(uint_col, 1)) from super', - 'select ceil(apercentile(uint_col, 1)) from t1', - 'select ceil(apercentile(ubigint_col, 1)) from super', - 'select ceil(apercentile(ubigint_col, 1)) from t1', - 'select ceil(apercentile(usmallint_col, 1)) from super', - 'select ceil(apercentile(usmallint_col, 1)) from t1', - 'select ceil(apercentile(utinyint_col, 1)) from super', - 'select ceil(apercentile(utinyint_col, 1)) from t1', - 'select ceil(last_row(int_col)) from super', - 'select ceil(last_row(int_col)) from t1', - 'select ceil(last_row(bigint_col)) from super', - 'select ceil(last_row(bigint_col)) from t1', - 'select ceil(last_row(float_col)) from super', - 'select ceil(last_row(float_col)) from t1', - 'select ceil(last_row(double_col)) from super', - 'select ceil(last_row(double_col)) from t1', - 'select ceil(last_row(smallint_col)) from super', - 'select ceil(last_row(smallint_col)) from t1', - 'select ceil(last_row(tinyint_col)) from super', - 'select ceil(last_row(tinyint_col)) from t1', - 'select ceil(last_row(uint_col)) from super', - 'select ceil(last_row(uint_col)) from t1', - 'select ceil(last_row(ubigint_col)) from super', - 'select ceil(last_row(ubigint_col)) from t1', - 'select ceil(last_row(usmallint_col)) from super', - 'select ceil(last_row(usmallint_col)) from t1', - 'select ceil(last_row(utinyint_col)) from super', - 'select ceil(last_row(utinyint_col)) from t1', - 'select ceil(spread(ts)) from super', - 'select ceil(spread(ts)) from t1', - 'select ceil(spread(timestamp_col)) from super', - 'select ceil(spread(timestamp_col)) from t1', - 'select ceil(spread(int_col)) from super', - 'select ceil(spread(int_col)) from t1', - 'select ceil(spread(bigint_col)) from super', - 'select ceil(spread(bigint_col)) from t1', - 'select ceil(spread(float_col)) from super', - 'select ceil(spread(float_col)) from t1', - 'select ceil(spread(double_col)) from super', - 'select ceil(spread(double_col)) from t1', - 'select ceil(spread(smallint_col)) from super', - 'select ceil(spread(smallint_col)) from t1', - 'select ceil(spread(tinyint_col)) from super', - 'select ceil(spread(tinyint_col)) from t1', - 'select ceil(spread(uint_col)) from super', - 'select ceil(spread(uint_col)) from t1', - 'select ceil(spread(ubigint_col)) from super', - 'select ceil(spread(ubigint_col)) from t1', - 'select ceil(spread(usmallint_col)) from super', - 'select ceil(spread(usmallint_col)) from t1', - 'select ceil(spread(utinyint_col)) from super', - 'select ceil(spread(utinyint_col)) from t1', - 'select ceil(int_col + int_col) from super', - 'select ceil(int_col + int_col) from t1', - 'select ceil(bigint_col + bigint_col) from super', - 'select ceil(bigint_col + bigint_col) from t1', - 'select ceil(float_col + float_col) from super', - 'select ceil(float_col + float_col) from t1', - 'select ceil(double_col + double_col) from super', - 'select ceil(double_col + double_col) from t1', - 'select ceil(smallint_col + smallint_col) from super', - 'select ceil(smallint_col + smallint_col) from t1', - 'select ceil(tinyint_col + tinyint_col) from super', - 'select ceil(tinyint_col + tinyint_col) from t1', - 'select ceil(uint_col + uint_col) from super', - 'select ceil(uint_col + uint_col) from t1', - 'select ceil(ubigint_col + ubigint_col) from super', - 'select ceil(ubigint_col + ubigint_col) from t1', - 'select ceil(usmallint_col + usmallint_col) from super', - 'select ceil(usmallint_col + usmallint_col) from t1', - 'select ceil(utinyint_col + utinyint_col) from super', - 'select ceil(utinyint_col + utinyint_col) from t1', - 'select ceil(int_col - int_col) from super', - 'select ceil(int_col - int_col) from t1', - 'select ceil(bigint_col - bigint_col) from super', - 'select ceil(bigint_col - bigint_col) from t1', - 'select ceil(float_col - float_col) from super', - 'select ceil(float_col - float_col) from t1', - 'select ceil(double_col - double_col) from super', - 'select ceil(double_col - double_col) from t1', - 'select ceil(smallint_col - smallint_col) from super', - 'select ceil(smallint_col - smallint_col) from t1', - 'select ceil(tinyint_col - tinyint_col) from super', - 'select ceil(tinyint_col - tinyint_col) from t1', - 'select ceil(uint_col - uint_col) from super', - 'select ceil(uint_col - uint_col) from t1', - 'select ceil(ubigint_col - ubigint_col) from super', - 'select ceil(ubigint_col - ubigint_col) from t1', - 'select ceil(usmallint_col - usmallint_col) from super', - 'select ceil(usmallint_col - usmallint_col) from t1', - 'select ceil(utinyint_col - utinyint_col) from super', - 'select ceil(utinyint_col - utinyint_col) from t1', - 'select ceil(int_col * int_col) from super', - 'select ceil(int_col * int_col) from t1', - 'select ceil(bigint_col * bigint_col) from super', - 'select ceil(bigint_col * bigint_col) from t1', - 'select ceil(float_col * float_col) from super', - 'select ceil(float_col * float_col) from t1', - 'select ceil(double_col * double_col) from super', - 'select ceil(double_col * double_col) from t1', - 'select ceil(smallint_col * smallint_col) from super', - 'select ceil(smallint_col * smallint_col) from t1', - 'select ceil(tinyint_col * tinyint_col) from super', - 'select ceil(tinyint_col * tinyint_col) from t1', - 'select ceil(uint_col * uint_col) from super', - 'select ceil(uint_col * uint_col) from t1', - 'select ceil(ubigint_col * ubigint_col) from super', - 'select ceil(ubigint_col * ubigint_col) from t1', - 'select ceil(usmallint_col * usmallint_col) from super', - 'select ceil(usmallint_col * usmallint_col) from t1', - 'select ceil(utinyint_col * utinyint_col) from super', - 'select ceil(utinyint_col * utinyint_col) from t1', - 'select ceil(int_col / int_col) from super', - 'select ceil(int_col / int_col) from t1', - 'select ceil(bigint_col / bigint_col) from super', - 'select ceil(bigint_col / bigint_col) from t1', - 'select ceil(float_col / float_col) from super', - 'select ceil(float_col / float_col) from t1', - 'select ceil(double_col / double_col) from super', - 'select ceil(double_col / double_col) from t1', - 'select ceil(smallint_col / smallint_col) from super', - 'select ceil(smallint_col / smallint_col) from t1', - 'select ceil(tinyint_col / tinyint_col) from super', - 'select ceil(tinyint_col / tinyint_col) from t1', - 'select ceil(uint_col / uint_col) from super', - 'select ceil(uint_col / uint_col) from t1', - 'select ceil(ubigint_col / ubigint_col) from super', - 'select ceil(ubigint_col / ubigint_col) from t1', - 'select ceil(usmallint_col / usmallint_col) from super', - 'select ceil(usmallint_col / usmallint_col) from t1', - 'select ceil(utinyint_col / utinyint_col) from super', - 'select ceil(utinyint_col / utinyint_col) from t1', - 'select int_col, ceil(int_col), int_col from super', - 'select int_col, ceil(int_col), int_col from t1', - 'select bigint_col, ceil(bigint_col), bigint_col from super', - 'select bigint_col, ceil(bigint_col), bigint_col from t1', - 'select float_col, ceil(float_col), float_col from super', - 'select float_col, ceil(float_col), float_col from t1', - 'select double_col, ceil(double_col), double_col from super', - 'select double_col, ceil(double_col), double_col from t1', - 'select smallint_col, ceil(smallint_col), smallint_col from super', - 'select smallint_col, ceil(smallint_col), smallint_col from t1', - 'select tinyint_col, ceil(tinyint_col), tinyint_col from super', - 'select tinyint_col, ceil(tinyint_col), tinyint_col from t1', - 'select uint_col, ceil(uint_col), uint_col from super', - 'select uint_col, ceil(uint_col), uint_col from t1', - 'select ubigint_col, ceil(ubigint_col), ubigint_col from super', - 'select ubigint_col, ceil(ubigint_col), ubigint_col from t1', - 'select usmallint_col, ceil(usmallint_col), usmallint_col from super', - 'select usmallint_col, ceil(usmallint_col), usmallint_col from t1', - 'select utinyint_col, ceil(utinyint_col), utinyint_col from super', - 'select utinyint_col, ceil(utinyint_col), utinyint_col from t1', - 'select 1, ceil(int_col), 1 from super', - 'select 1, ceil(int_col), 1 from t1', - 'select 1, ceil(bigint_col), 1 from super', - 'select 1, ceil(bigint_col), 1 from t1', - 'select 1, ceil(float_col), 1 from super', - 'select 1, ceil(float_col), 1 from t1', - 'select 1, ceil(double_col), 1 from super', - 'select 1, ceil(double_col), 1 from t1', - 'select 1, ceil(smallint_col), 1 from super', - 'select 1, ceil(smallint_col), 1 from t1', - 'select 1, ceil(tinyint_col), 1 from super', - 'select 1, ceil(tinyint_col), 1 from t1', - 'select 1, ceil(uint_col), 1 from super', - 'select 1, ceil(uint_col), 1 from t1', - 'select 1, ceil(ubigint_col), 1 from super', - 'select 1, ceil(ubigint_col), 1 from t1', - 'select 1, ceil(usmallint_col), 1 from super', - 'select 1, ceil(usmallint_col), 1 from t1', - 'select 1, ceil(utinyint_col), 1 from super', - 'select 1, ceil(utinyint_col), 1 from t1', - 'select ceil(int_col) as anyName from super', - 'select ceil(int_col) as anyName from t1', - 'select ceil(bigint_col) as anyName from super', - 'select ceil(bigint_col) as anyName from t1', - 'select ceil(float_col) as anyName from super', - 'select ceil(float_col) as anyName from t1', - 'select ceil(double_col) as anyName from super', - 'select ceil(double_col) as anyName from t1', - 'select ceil(smallint_col) as anyName from super', - 'select ceil(smallint_col) as anyName from t1', - 'select ceil(tinyint_col) as anyName from super', - 'select ceil(tinyint_col) as anyName from t1', - 'select ceil(uint_col) as anyName from super', - 'select ceil(uint_col) as anyName from t1', - 'select ceil(ubigint_col) as anyName from super', - 'select ceil(ubigint_col) as anyName from t1', - 'select ceil(usmallint_col) as anyName from super', - 'select ceil(usmallint_col) as anyName from t1', - 'select ceil(utinyint_col) as anyName from super', - 'select ceil(utinyint_col) as anyName from t1'] + 'select ceil(int_col) from t1', + 'select ceil(bigint_col) from super', + 'select ceil(bigint_col) from t1', + 'select ceil(float_col) from super', + 'select ceil(float_col) from t1', + 'select ceil(double_col) from super', + 'select ceil(double_col) from t1', + 'select ceil(smallint_col) from super', + 'select ceil(smallint_col) from t1', + 'select ceil(tinyint_col) from super', + 'select ceil(tinyint_col) from t1', + 'select ceil(uint_col) from super', + 'select ceil(uint_col) from t1', + 'select ceil(ubigint_col) from super', + 'select ceil(ubigint_col) from t1', + 'select ceil(usmallint_col) from super', + 'select ceil(usmallint_col) from t1', + 'select ceil(utinyint_col) from super', + 'select ceil(utinyint_col) from t1', + 'select ceil(int_col) - ceil(int_col) from super', + 'select ceil(int_col) - ceil(int_col) from t1', + 'select ceil(bigint_col) - ceil(bigint_col) from super', + 'select ceil(bigint_col) - ceil(bigint_col) from t1', + 'select ceil(float_col) - ceil(float_col) from super', + 'select ceil(float_col) - ceil(float_col) from t1', + 'select ceil(double_col) - ceil(double_col) from super', + 'select ceil(double_col) - ceil(double_col) from t1', + 'select ceil(smallint_col) - ceil(smallint_col) from super', + 'select ceil(smallint_col) - ceil(smallint_col) from t1', + 'select ceil(tinyint_col) - ceil(tinyint_col) from super', + 'select ceil(tinyint_col) - ceil(tinyint_col) from t1', + 'select ceil(uint_col) - ceil(uint_col) from super', + 'select ceil(uint_col) - ceil(uint_col) from t1', + 'select ceil(ubigint_col) - ceil(ubigint_col) from super', + 'select ceil(ubigint_col) - ceil(ubigint_col) from t1', + 'select ceil(usmallint_col) - ceil(usmallint_col) from super', + 'select ceil(usmallint_col) - ceil(usmallint_col) from t1', + 'select ceil(utinyint_col) - ceil(utinyint_col) from super', + 'select ceil(utinyint_col) - ceil(utinyint_col) from t1', + 'select ceil(int_col) / ceil(int_col) from super', + 'select ceil(int_col) / ceil(int_col) from t1', + 'select ceil(bigint_col) / ceil(bigint_col) from super', + 'select ceil(bigint_col) / ceil(bigint_col) from t1', + 'select ceil(float_col) / ceil(float_col) from super', + 'select ceil(float_col) / ceil(float_col) from t1', + 'select ceil(double_col) / ceil(double_col) from super', + 'select ceil(double_col) / ceil(double_col) from t1', + 'select ceil(smallint_col) / ceil(smallint_col) from super', + 'select ceil(smallint_col) / ceil(smallint_col) from t1', + 'select ceil(tinyint_col) / ceil(tinyint_col) from super', + 'select ceil(tinyint_col) / ceil(tinyint_col) from t1', + 'select ceil(uint_col) / ceil(uint_col) from super', + 'select ceil(uint_col) / ceil(uint_col) from t1', + 'select ceil(ubigint_col) / ceil(ubigint_col) from super', + 'select ceil(ubigint_col) / ceil(ubigint_col) from t1', + 'select ceil(usmallint_col) / ceil(usmallint_col) from super', + 'select ceil(usmallint_col) / ceil(usmallint_col) from t1', + 'select ceil(utinyint_col) / ceil(utinyint_col) from super', + 'select ceil(utinyint_col) / ceil(utinyint_col) from t1', + 'select ceil(int_col) * ceil(int_col) from super', + 'select ceil(int_col) * ceil(int_col) from t1', + 'select ceil(bigint_col) * ceil(bigint_col) from super', + 'select ceil(bigint_col) * ceil(bigint_col) from t1', + 'select ceil(float_col) * ceil(float_col) from super', + 'select ceil(float_col) * ceil(float_col) from t1', + 'select ceil(double_col) * ceil(double_col) from super', + 'select ceil(double_col) * ceil(double_col) from t1', + 'select ceil(smallint_col) * ceil(smallint_col) from super', + 'select ceil(smallint_col) * ceil(smallint_col) from t1', + 'select ceil(tinyint_col) * ceil(tinyint_col) from super', + 'select ceil(tinyint_col) * ceil(tinyint_col) from t1', + 'select ceil(uint_col) * ceil(uint_col) from super', + 'select ceil(uint_col) * ceil(uint_col) from t1', + 'select ceil(ubigint_col) * ceil(ubigint_col) from super', + 'select ceil(ubigint_col) * ceil(ubigint_col) from t1', + 'select ceil(usmallint_col) * ceil(usmallint_col) from super', + 'select ceil(usmallint_col) * ceil(usmallint_col) from t1', + 'select ceil(utinyint_col) * ceil(utinyint_col) from super', + 'select ceil(utinyint_col) * ceil(utinyint_col) from t1', + 'select ceil(count(ts)) from super', + 'select ceil(count(ts)) from t1', + 'select ceil(count(timestamp_col)) from super', + 'select ceil(count(timestamp_col)) from t1', + 'select ceil(count(int_col)) from super', + 'select ceil(count(int_col)) from t1', + 'select ceil(count(bigint_col)) from super', + 'select ceil(count(bigint_col)) from t1', + 'select ceil(count(float_col)) from super', + 'select ceil(count(float_col)) from t1', + 'select ceil(count(double_col)) from super', + 'select ceil(count(double_col)) from t1', + 'select ceil(count(binary_col)) from super', + 'select ceil(count(binary_col)) from t1', + 'select ceil(count(smallint_col)) from super', + 'select ceil(count(smallint_col)) from t1', + 'select ceil(count(tinyint_col)) from super', + 'select ceil(count(tinyint_col)) from t1', + 'select ceil(count(bool_col)) from super', + 'select ceil(count(bool_col)) from t1', + 'select ceil(count(nchar_col)) from super', + 'select ceil(count(nchar_col)) from t1', + 'select ceil(count(uint_col)) from super', + 'select ceil(count(uint_col)) from t1', + 'select ceil(count(ubigint_col)) from super', + 'select ceil(count(ubigint_col)) from t1', + 'select ceil(count(usmallint_col)) from super', + 'select ceil(count(usmallint_col)) from t1', + 'select ceil(count(utinyint_col)) from super', + 'select ceil(count(utinyint_col)) from t1', + 'select ceil(count(timestamp_tag)) from super', + 'select ceil(count(timestamp_tag)) from t1', + 'select ceil(count(int_tag)) from super', + 'select ceil(count(int_tag)) from t1', + 'select ceil(count(bigint_tag)) from super', + 'select ceil(count(bigint_tag)) from t1', + 'select ceil(count(float_tag)) from super', + 'select ceil(count(float_tag)) from t1', + 'select ceil(count(double_tag)) from super', + 'select ceil(count(double_tag)) from t1', + 'select ceil(count(binary_tag)) from super', + 'select ceil(count(binary_tag)) from t1', + 'select ceil(count(smallint_tag)) from super', + 'select ceil(count(smallint_tag)) from t1', + 'select ceil(count(tinyint_tag)) from super', + 'select ceil(count(tinyint_tag)) from t1', + 'select ceil(count(bool_tag)) from super', + 'select ceil(count(bool_tag)) from t1', + 'select ceil(count(nchar_tag)) from super', + 'select ceil(count(nchar_tag)) from t1', + 'select ceil(count(uint_tag)) from super', + 'select ceil(count(uint_tag)) from t1', + 'select ceil(count(ubigint_tag)) from super', + 'select ceil(count(ubigint_tag)) from t1', + 'select ceil(count(usmallint_tag)) from super', + 'select ceil(count(usmallint_tag)) from t1', + 'select ceil(count(utinyint_tag)) from super', + 'select ceil(count(utinyint_tag)) from t1', + 'select ceil(avg(int_col)) from super', + 'select ceil(avg(int_col)) from t1', + 'select ceil(avg(bigint_col)) from super', + 'select ceil(avg(bigint_col)) from t1', + 'select ceil(avg(float_col)) from super', + 'select ceil(avg(float_col)) from t1', + 'select ceil(avg(double_col)) from super', + 'select ceil(avg(double_col)) from t1', + 'select ceil(avg(smallint_col)) from super', + 'select ceil(avg(smallint_col)) from t1', + 'select ceil(avg(tinyint_col)) from super', + 'select ceil(avg(tinyint_col)) from t1', + 'select ceil(avg(uint_col)) from super', + 'select ceil(avg(uint_col)) from t1', + 'select ceil(avg(ubigint_col)) from super', + 'select ceil(avg(ubigint_col)) from t1', + 'select ceil(avg(usmallint_col)) from super', + 'select ceil(avg(usmallint_col)) from t1', + 'select ceil(avg(utinyint_col)) from super', + 'select ceil(avg(utinyint_col)) from t1', + 'select ceil(twa(int_col)) from t1', + 'select ceil(twa(bigint_col)) from t1', + 'select ceil(twa(float_col)) from t1', + 'select ceil(twa(double_col)) from t1', + 'select ceil(twa(smallint_col)) from t1', + 'select ceil(twa(tinyint_col)) from t1', + 'select ceil(twa(uint_col)) from t1', + 'select ceil(twa(ubigint_col)) from t1', + 'select ceil(twa(usmallint_col)) from t1', + 'select ceil(twa(utinyint_col)) from t1', + 'select ceil(sum(int_col)) from super', + 'select ceil(sum(int_col)) from t1', + 'select ceil(sum(bigint_col)) from super', + 'select ceil(sum(bigint_col)) from t1', + 'select ceil(sum(float_col)) from super', + 'select ceil(sum(float_col)) from t1', + 'select ceil(sum(double_col)) from super', + 'select ceil(sum(double_col)) from t1', + 'select ceil(sum(smallint_col)) from super', + 'select ceil(sum(smallint_col)) from t1', + 'select ceil(sum(tinyint_col)) from super', + 'select ceil(sum(tinyint_col)) from t1', + 'select ceil(sum(uint_col)) from super', + 'select ceil(sum(uint_col)) from t1', + 'select ceil(sum(ubigint_col)) from super', + 'select ceil(sum(ubigint_col)) from t1', + 'select ceil(sum(usmallint_col)) from super', + 'select ceil(sum(usmallint_col)) from t1', + 'select ceil(sum(utinyint_col)) from super', + 'select ceil(sum(utinyint_col)) from t1', + 'select ceil(stddev(int_col)) from super', + 'select ceil(stddev(int_col)) from t1', + 'select ceil(stddev(bigint_col)) from super', + 'select ceil(stddev(bigint_col)) from t1', + 'select ceil(stddev(float_col)) from super', + 'select ceil(stddev(float_col)) from t1', + 'select ceil(stddev(double_col)) from super', + 'select ceil(stddev(double_col)) from t1', + 'select ceil(stddev(smallint_col)) from super', + 'select ceil(stddev(smallint_col)) from t1', + 'select ceil(stddev(tinyint_col)) from super', + 'select ceil(stddev(tinyint_col)) from t1', + 'select ceil(stddev(uint_col)) from super', + 'select ceil(stddev(uint_col)) from t1', + 'select ceil(stddev(ubigint_col)) from super', + 'select ceil(stddev(ubigint_col)) from t1', + 'select ceil(stddev(usmallint_col)) from super', + 'select ceil(stddev(usmallint_col)) from t1', + 'select ceil(stddev(utinyint_col)) from super', + 'select ceil(stddev(utinyint_col)) from t1', + 'select ceil(irate(int_col)) from t1', + 'select ceil(irate(bigint_col)) from t1', + 'select ceil(irate(float_col)) from t1', + 'select ceil(irate(double_col)) from t1', + 'select ceil(irate(smallint_col)) from t1', + 'select ceil(irate(tinyint_col)) from t1', + 'select ceil(irate(uint_col)) from t1', + 'select ceil(irate(ubigint_col)) from t1', + 'select ceil(irate(usmallint_col)) from t1', + 'select ceil(irate(utinyint_col)) from t1', + 'select ceil(min(int_col)) from super', + 'select ceil(min(int_col)) from t1', + 'select ceil(min(bigint_col)) from super', + 'select ceil(min(bigint_col)) from t1', + 'select ceil(min(float_col)) from super', + 'select ceil(min(float_col)) from t1', + 'select ceil(min(double_col)) from super', + 'select ceil(min(double_col)) from t1', + 'select ceil(min(smallint_col)) from super', + 'select ceil(min(smallint_col)) from t1', + 'select ceil(min(tinyint_col)) from super', + 'select ceil(min(tinyint_col)) from t1', + 'select ceil(min(uint_col)) from super', + 'select ceil(min(uint_col)) from t1', + 'select ceil(min(ubigint_col)) from super', + 'select ceil(min(ubigint_col)) from t1', + 'select ceil(min(usmallint_col)) from super', + 'select ceil(min(usmallint_col)) from t1', + 'select ceil(min(utinyint_col)) from super', + 'select ceil(min(utinyint_col)) from t1', + 'select ceil(max(int_col)) from super', + 'select ceil(max(int_col)) from t1', + 'select ceil(max(bigint_col)) from super', + 'select ceil(max(bigint_col)) from t1', + 'select ceil(max(float_col)) from super', + 'select ceil(max(float_col)) from t1', + 'select ceil(max(double_col)) from super', + 'select ceil(max(double_col)) from t1', + 'select ceil(max(smallint_col)) from super', + 'select ceil(max(smallint_col)) from t1', + 'select ceil(max(tinyint_col)) from super', + 'select ceil(max(tinyint_col)) from t1', + 'select ceil(max(uint_col)) from super', + 'select ceil(max(uint_col)) from t1', + 'select ceil(max(ubigint_col)) from super', + 'select ceil(max(ubigint_col)) from t1', + 'select ceil(max(usmallint_col)) from super', + 'select ceil(max(usmallint_col)) from t1', + 'select ceil(max(utinyint_col)) from super', + 'select ceil(max(utinyint_col)) from t1', + 'select ceil(first(int_col)) from super', + 'select ceil(first(int_col)) from t1', + 'select ceil(first(bigint_col)) from super', + 'select ceil(first(bigint_col)) from t1', + 'select ceil(first(float_col)) from super', + 'select ceil(first(float_col)) from t1', + 'select ceil(first(double_col)) from super', + 'select ceil(first(double_col)) from t1', + 'select ceil(first(smallint_col)) from super', + 'select ceil(first(smallint_col)) from t1', + 'select ceil(first(tinyint_col)) from super', + 'select ceil(first(tinyint_col)) from t1', + 'select ceil(first(uint_col)) from super', + 'select ceil(first(uint_col)) from t1', + 'select ceil(first(ubigint_col)) from super', + 'select ceil(first(ubigint_col)) from t1', + 'select ceil(first(usmallint_col)) from super', + 'select ceil(first(usmallint_col)) from t1', + 'select ceil(first(utinyint_col)) from super', + 'select ceil(first(utinyint_col)) from t1', + 'select ceil(last(int_col)) from super', + 'select ceil(last(int_col)) from t1', + 'select ceil(last(bigint_col)) from super', + 'select ceil(last(bigint_col)) from t1', + 'select ceil(last(float_col)) from super', + 'select ceil(last(float_col)) from t1', + 'select ceil(last(double_col)) from super', + 'select ceil(last(double_col)) from t1', + 'select ceil(last(smallint_col)) from super', + 'select ceil(last(smallint_col)) from t1', + 'select ceil(last(tinyint_col)) from super', + 'select ceil(last(tinyint_col)) from t1', + 'select ceil(last(uint_col)) from super', + 'select ceil(last(uint_col)) from t1', + 'select ceil(last(ubigint_col)) from super', + 'select ceil(last(ubigint_col)) from t1', + 'select ceil(last(usmallint_col)) from super', + 'select ceil(last(usmallint_col)) from t1', + 'select ceil(last(utinyint_col)) from super', + 'select ceil(last(utinyint_col)) from t1', + 'select ceil(percentile(int_col, 1)) from t1', + 'select ceil(percentile(bigint_col, 1)) from t1', + 'select ceil(percentile(float_col, 1)) from t1', + 'select ceil(percentile(double_col, 1)) from t1', + 'select ceil(percentile(smallint_col, 1)) from t1', + 'select ceil(percentile(tinyint_col, 1)) from t1', + 'select ceil(percentile(uint_col, 1)) from t1', + 'select ceil(percentile(ubigint_col, 1)) from t1', + 'select ceil(percentile(usmallint_col, 1)) from t1', + 'select ceil(percentile(utinyint_col, 1)) from t1', + 'select ceil(apercentile(int_col, 1)) from super', + 'select ceil(apercentile(int_col, 1)) from t1', + 'select ceil(apercentile(bigint_col, 1)) from super', + 'select ceil(apercentile(bigint_col, 1)) from t1', + 'select ceil(apercentile(float_col, 1)) from super', + 'select ceil(apercentile(float_col, 1)) from t1', + 'select ceil(apercentile(double_col, 1)) from super', + 'select ceil(apercentile(double_col, 1)) from t1', + 'select ceil(apercentile(smallint_col, 1)) from super', + 'select ceil(apercentile(smallint_col, 1)) from t1', + 'select ceil(apercentile(tinyint_col, 1)) from super', + 'select ceil(apercentile(tinyint_col, 1)) from t1', + 'select ceil(apercentile(uint_col, 1)) from super', + 'select ceil(apercentile(uint_col, 1)) from t1', + 'select ceil(apercentile(ubigint_col, 1)) from super', + 'select ceil(apercentile(ubigint_col, 1)) from t1', + 'select ceil(apercentile(usmallint_col, 1)) from super', + 'select ceil(apercentile(usmallint_col, 1)) from t1', + 'select ceil(apercentile(utinyint_col, 1)) from super', + 'select ceil(apercentile(utinyint_col, 1)) from t1', + 'select ceil(last_row(int_col)) from super', + 'select ceil(last_row(int_col)) from t1', + 'select ceil(last_row(bigint_col)) from super', + 'select ceil(last_row(bigint_col)) from t1', + 'select ceil(last_row(float_col)) from super', + 'select ceil(last_row(float_col)) from t1', + 'select ceil(last_row(double_col)) from super', + 'select ceil(last_row(double_col)) from t1', + 'select ceil(last_row(smallint_col)) from super', + 'select ceil(last_row(smallint_col)) from t1', + 'select ceil(last_row(tinyint_col)) from super', + 'select ceil(last_row(tinyint_col)) from t1', + 'select ceil(last_row(uint_col)) from super', + 'select ceil(last_row(uint_col)) from t1', + 'select ceil(last_row(ubigint_col)) from super', + 'select ceil(last_row(ubigint_col)) from t1', + 'select ceil(last_row(usmallint_col)) from super', + 'select ceil(last_row(usmallint_col)) from t1', + 'select ceil(last_row(utinyint_col)) from super', + 'select ceil(last_row(utinyint_col)) from t1', + 'select ceil(interp(int_col)) from t1', + 'select ceil(interp(bigint_col)) from t1', + 'select ceil(interp(float_col)) from t1', + 'select ceil(interp(double_col)) from t1', + 'select ceil(interp(smallint_col)) from t1', + 'select ceil(interp(tinyint_col)) from t1', + 'select ceil(interp(uint_col)) from t1', + 'select ceil(interp(ubigint_col)) from t1', + 'select ceil(interp(usmallint_col)) from t1', + 'select ceil(interp(utinyint_col)) from t1', + 'select ceil(spread(ts)) from super', + 'select ceil(spread(ts)) from t1', + 'select ceil(spread(timestamp_col)) from super', + 'select ceil(spread(timestamp_col)) from t1', + 'select ceil(spread(int_col)) from super', + 'select ceil(spread(int_col)) from t1', + 'select ceil(spread(bigint_col)) from super', + 'select ceil(spread(bigint_col)) from t1', + 'select ceil(spread(float_col)) from super', + 'select ceil(spread(float_col)) from t1', + 'select ceil(spread(double_col)) from super', + 'select ceil(spread(double_col)) from t1', + 'select ceil(spread(smallint_col)) from super', + 'select ceil(spread(smallint_col)) from t1', + 'select ceil(spread(tinyint_col)) from super', + 'select ceil(spread(tinyint_col)) from t1', + 'select ceil(spread(uint_col)) from super', + 'select ceil(spread(uint_col)) from t1', + 'select ceil(spread(ubigint_col)) from super', + 'select ceil(spread(ubigint_col)) from t1', + 'select ceil(spread(usmallint_col)) from super', + 'select ceil(spread(usmallint_col)) from t1', + 'select ceil(spread(utinyint_col)) from super', + 'select ceil(spread(utinyint_col)) from t1', + 'select ceil(int_col + int_col) from super', + 'select ceil(int_col + int_col) from t1', + 'select ceil(bigint_col + bigint_col) from super', + 'select ceil(bigint_col + bigint_col) from t1', + 'select ceil(float_col + float_col) from super', + 'select ceil(float_col + float_col) from t1', + 'select ceil(double_col + double_col) from super', + 'select ceil(double_col + double_col) from t1', + 'select ceil(smallint_col + smallint_col) from super', + 'select ceil(smallint_col + smallint_col) from t1', + 'select ceil(tinyint_col + tinyint_col) from super', + 'select ceil(tinyint_col + tinyint_col) from t1', + 'select ceil(uint_col + uint_col) from super', + 'select ceil(uint_col + uint_col) from t1', + 'select ceil(ubigint_col + ubigint_col) from super', + 'select ceil(ubigint_col + ubigint_col) from t1', + 'select ceil(usmallint_col + usmallint_col) from super', + 'select ceil(usmallint_col + usmallint_col) from t1', + 'select ceil(utinyint_col + utinyint_col) from super', + 'select ceil(utinyint_col + utinyint_col) from t1', + 'select ceil(int_col - int_col) from super', + 'select ceil(int_col - int_col) from t1', + 'select ceil(bigint_col - bigint_col) from super', + 'select ceil(bigint_col - bigint_col) from t1', + 'select ceil(float_col - float_col) from super', + 'select ceil(float_col - float_col) from t1', + 'select ceil(double_col - double_col) from super', + 'select ceil(double_col - double_col) from t1', + 'select ceil(smallint_col - smallint_col) from super', + 'select ceil(smallint_col - smallint_col) from t1', + 'select ceil(tinyint_col - tinyint_col) from super', + 'select ceil(tinyint_col - tinyint_col) from t1', + 'select ceil(uint_col - uint_col) from super', + 'select ceil(uint_col - uint_col) from t1', + 'select ceil(ubigint_col - ubigint_col) from super', + 'select ceil(ubigint_col - ubigint_col) from t1', + 'select ceil(usmallint_col - usmallint_col) from super', + 'select ceil(usmallint_col - usmallint_col) from t1', + 'select ceil(utinyint_col - utinyint_col) from super', + 'select ceil(utinyint_col - utinyint_col) from t1', + 'select ceil(int_col * int_col) from super', + 'select ceil(int_col * int_col) from t1', + 'select ceil(bigint_col * bigint_col) from super', + 'select ceil(bigint_col * bigint_col) from t1', + 'select ceil(float_col * float_col) from super', + 'select ceil(float_col * float_col) from t1', + 'select ceil(double_col * double_col) from super', + 'select ceil(double_col * double_col) from t1', + 'select ceil(smallint_col * smallint_col) from super', + 'select ceil(smallint_col * smallint_col) from t1', + 'select ceil(tinyint_col * tinyint_col) from super', + 'select ceil(tinyint_col * tinyint_col) from t1', + 'select ceil(uint_col * uint_col) from super', + 'select ceil(uint_col * uint_col) from t1', + 'select ceil(ubigint_col * ubigint_col) from super', + 'select ceil(ubigint_col * ubigint_col) from t1', + 'select ceil(usmallint_col * usmallint_col) from super', + 'select ceil(usmallint_col * usmallint_col) from t1', + 'select ceil(utinyint_col * utinyint_col) from super', + 'select ceil(utinyint_col * utinyint_col) from t1', + 'select ceil(int_col / int_col) from super', + 'select ceil(int_col / int_col) from t1', + 'select ceil(bigint_col / bigint_col) from super', + 'select ceil(bigint_col / bigint_col) from t1', + 'select ceil(float_col / float_col) from super', + 'select ceil(float_col / float_col) from t1', + 'select ceil(double_col / double_col) from super', + 'select ceil(double_col / double_col) from t1', + 'select ceil(smallint_col / smallint_col) from super', + 'select ceil(smallint_col / smallint_col) from t1', + 'select ceil(tinyint_col / tinyint_col) from super', + 'select ceil(tinyint_col / tinyint_col) from t1', + 'select ceil(uint_col / uint_col) from super', + 'select ceil(uint_col / uint_col) from t1', + 'select ceil(ubigint_col / ubigint_col) from super', + 'select ceil(ubigint_col / ubigint_col) from t1', + 'select ceil(usmallint_col / usmallint_col) from super', + 'select ceil(usmallint_col / usmallint_col) from t1', + 'select ceil(utinyint_col / utinyint_col) from super', + 'select ceil(utinyint_col / utinyint_col) from t1', + 'select int_col, ceil(int_col), int_col from super', + 'select int_col, ceil(int_col), int_col from t1', + 'select bigint_col, ceil(bigint_col), bigint_col from super', + 'select bigint_col, ceil(bigint_col), bigint_col from t1', + 'select float_col, ceil(float_col), float_col from super', + 'select float_col, ceil(float_col), float_col from t1', + 'select double_col, ceil(double_col), double_col from super', + 'select double_col, ceil(double_col), double_col from t1', + 'select smallint_col, ceil(smallint_col), smallint_col from super', + 'select smallint_col, ceil(smallint_col), smallint_col from t1', + 'select tinyint_col, ceil(tinyint_col), tinyint_col from super', + 'select tinyint_col, ceil(tinyint_col), tinyint_col from t1', + 'select uint_col, ceil(uint_col), uint_col from super', + 'select uint_col, ceil(uint_col), uint_col from t1', + 'select ubigint_col, ceil(ubigint_col), ubigint_col from super', + 'select ubigint_col, ceil(ubigint_col), ubigint_col from t1', + 'select usmallint_col, ceil(usmallint_col), usmallint_col from super', + 'select usmallint_col, ceil(usmallint_col), usmallint_col from t1', + 'select utinyint_col, ceil(utinyint_col), utinyint_col from super', + 'select utinyint_col, ceil(utinyint_col), utinyint_col from t1', + 'select 1, ceil(int_col), 1 from super', + 'select 1, ceil(int_col), 1 from t1', + 'select 1, ceil(bigint_col), 1 from super', + 'select 1, ceil(bigint_col), 1 from t1', + 'select 1, ceil(float_col), 1 from super', + 'select 1, ceil(float_col), 1 from t1', + 'select 1, ceil(double_col), 1 from super', + 'select 1, ceil(double_col), 1 from t1', + 'select 1, ceil(smallint_col), 1 from super', + 'select 1, ceil(smallint_col), 1 from t1', + 'select 1, ceil(tinyint_col), 1 from super', + 'select 1, ceil(tinyint_col), 1 from t1', + 'select 1, ceil(uint_col), 1 from super', + 'select 1, ceil(uint_col), 1 from t1', + 'select 1, ceil(ubigint_col), 1 from super', + 'select 1, ceil(ubigint_col), 1 from t1', + 'select 1, ceil(usmallint_col), 1 from super', + 'select 1, ceil(usmallint_col), 1 from t1', + 'select 1, ceil(utinyint_col), 1 from super', + 'select 1, ceil(utinyint_col), 1 from t1', + 'select ceil(int_col) as anyName from super', + 'select ceil(int_col) as anyName from t1', + 'select ceil(bigint_col) as anyName from super', + 'select ceil(bigint_col) as anyName from t1', + 'select ceil(float_col) as anyName from super', + 'select ceil(float_col) as anyName from t1', + 'select ceil(double_col) as anyName from super', + 'select ceil(double_col) as anyName from t1', + 'select ceil(smallint_col) as anyName from super', + 'select ceil(smallint_col) as anyName from t1', + 'select ceil(tinyint_col) as anyName from super', + 'select ceil(tinyint_col) as anyName from t1', + 'select ceil(uint_col) as anyName from super', + 'select ceil(uint_col) as anyName from t1', + 'select ceil(ubigint_col) as anyName from super', + 'select ceil(ubigint_col) as anyName from t1', + 'select ceil(usmallint_col) as anyName from super', + 'select ceil(usmallint_col) as anyName from t1', + 'select ceil(utinyint_col) as anyName from super', + 'select ceil(utinyint_col) as anyName from t1'] for s in range(len(select_command)): for f in range(len(from_command)): sql = "select " + select_command[s] + from_command[f] diff --git a/tests/script/general/parser/scalar_expression.sim b/tests/script/general/parser/scalar_expression.sim index 11549a474b49ad3281dcfce282fc0eb4204effe0..a30b4ffbb006dda4a75f629009d6e0b4e62c3ec2 100644 --- a/tests/script/general/parser/scalar_expression.sim +++ b/tests/script/general/parser/scalar_expression.sim @@ -89,6 +89,14 @@ endi if $data00 != 2457.000000000 then return -1 endi +print execute sql select sin(log(avg(c1),sum(c2))+3)%4 from $stb +sql select sin(log(avg(c1),sum(c2))+3)%4 from $stb +if $rows != 1 then + return -1 +endi +if $data00 != -0.265074286 then + return -1 +endi print execute sql select select log(pow(length(concat('3','4')),2),c2) from $stb sql select log(pow(length(concat('3','4')),2),c2) from $stb @@ -156,6 +164,42 @@ endi if $data90 != 3.000000000 then return -1 endi +$tb0 = $tbPrefix . 0 +$tb1 = $tbPrefix . 1 +print execute sql select sin(pow(c1,log(c2,2))+pow(c2,2)) as val from $tb0 union all select pow(c4,2)+tan(sin(c5)/cos(c6)) as val from $tb1 +sql select sin(pow(c1,log(c2,2))+pow(c2,2)) as val from $tb0 union all select pow(c4,2)+tan(sin(c5)/cos(c6)) as val from $tb1 +print [ $data00 , $data10 , $data20 , $data30 , $data40 , $data50 , $data60 , $data70 , $data80 , $data90 ] +if $data00 != @-nan@ then + return -1 +endi +if $data10 != 0.909297427 then + return -1 +endi +if $data20 != -0.279415498 then + return -1 +endi +if $data30 != 0.843325058 then + return -1 +endi +if $data40 != 0.551426681 then + return -1 +endi +if $data50 != -0.840606612 then + return -1 +endi +if $data60 != 0.436161076 then + return -1 +endi +if $data70 != 0.897498185 then + return -1 +endi +if $data80 != -0.885952778 then + return -1 +endi +if $data90 != 0.429470715 then + return -1 +endi + print ============== invalid expressions sql_error select agg(c1)+c2 from $stb sql_error select agg(c1+2) from $stb