Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
41eb895d
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
41eb895d
编写于
9月 16, 2021
作者:
D
dapan1121
提交者:
GitHub
9月 16, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7342 from taosdata/feature/TD-2573
[TD-2573]<feature>: ceil, floor and round functions are supported
上级
5893332a
93b2a931
变更
13
显示空白变更内容
内联
并排
Showing
13 changed file
with
5760 addition
and
21 deletion
+5760
-21
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+25
-4
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+10
-2
src/query/inc/qAggMain.h
src/query/inc/qAggMain.h
+9
-8
src/query/src/qAggMain.c
src/query/src/qAggMain.c
+268
-5
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+21
-2
src/query/src/qPlan.c
src/query/src/qPlan.c
+6
-0
tests/pytest/fulltest.sh
tests/pytest/fulltest.sh
+3
-0
tests/pytest/functions/function_ceil.py
tests/pytest/functions/function_ceil.py
+1518
-0
tests/pytest/functions/function_floor.py
tests/pytest/functions/function_floor.py
+1518
-0
tests/pytest/functions/function_round.py
tests/pytest/functions/function_round.py
+1518
-0
tests/script/general/compute/ceil.sim
tests/script/general/compute/ceil.sim
+288
-0
tests/script/general/compute/floor.sim
tests/script/general/compute/floor.sim
+288
-0
tests/script/general/compute/round.sim
tests/script/general/compute/round.sim
+288
-0
未找到文件。
src/client/src/tscSQLParser.c
浏览文件 @
41eb895d
...
...
@@ -2551,6 +2551,9 @@ int32_t addExprAndResultField(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32_t col
case
TSDB_FUNC_MAX
:
case
TSDB_FUNC_DIFF
:
case
TSDB_FUNC_DERIVATIVE
:
case
TSDB_FUNC_CEIL
:
case
TSDB_FUNC_FLOOR
:
case
TSDB_FUNC_ROUND
:
case
TSDB_FUNC_STDDEV
:
case
TSDB_FUNC_LEASTSQR
:
{
// 1. valid the number of parameters
...
...
@@ -2741,6 +2744,10 @@ int32_t addExprAndResultField(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32_t col
pTableMetaInfo
=
tscGetMetaInfo
(
pQueryInfo
,
index
.
tableIndex
);
if
(
pParamElem
->
pNode
->
columnName
.
z
==
NULL
)
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
}
// functions can not be applied to tags
if
((
index
.
columnIndex
>=
tscGetNumOfColumns
(
pTableMetaInfo
->
pTableMeta
))
||
(
index
.
columnIndex
<
0
))
{
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg6
);
...
...
@@ -3474,6 +3481,7 @@ static bool functionCompatibleCheck(SQueryInfo* pQueryInfo, bool joinQuery, bool
int32_t
scalarUdf
=
0
;
int32_t
prjNum
=
0
;
int32_t
aggNum
=
0
;
int32_t
scalNum
=
0
;
size_t
numOfExpr
=
tscNumOfExprs
(
pQueryInfo
);
assert
(
numOfExpr
>
0
);
...
...
@@ -3505,6 +3513,10 @@ static bool functionCompatibleCheck(SQueryInfo* pQueryInfo, bool joinQuery, bool
++
prjNum
;
}
if
(
functionId
==
TSDB_FUNC_CEIL
||
functionId
==
TSDB_FUNC_FLOOR
||
functionId
==
TSDB_FUNC_ROUND
)
{
++
scalNum
;
}
if
(
functionId
==
TSDB_FUNC_PRJ
&&
(
pExpr1
->
base
.
colInfo
.
colId
==
PRIMARYKEY_TIMESTAMP_COL_INDEX
||
TSDB_COL_IS_UD_COL
(
pExpr1
->
base
.
colInfo
.
flag
)))
{
continue
;
}
...
...
@@ -3526,15 +3538,19 @@ static bool functionCompatibleCheck(SQueryInfo* pQueryInfo, bool joinQuery, bool
}
}
aggNum
=
(
int32_t
)
size
-
prjNum
-
aggUdf
-
scalarUdf
;
aggNum
=
(
int32_t
)
size
-
prjNum
-
scalNum
-
aggUdf
-
scalarUdf
;
assert
(
aggNum
>=
0
);
if
(
aggUdf
>
0
&&
(
prjNum
>
0
||
aggNum
>
0
||
scalarUdf
>
0
))
{
if
(
aggUdf
>
0
&&
(
prjNum
>
0
||
aggNum
>
0
||
scalNum
>
0
||
scalarUdf
>
0
))
{
return
false
;
}
if
(
scalarUdf
>
0
&&
(
aggNum
>
0
||
scalNum
>
0
))
{
return
false
;
}
if
(
scalarUdf
>
0
&&
agg
Num
>
0
)
{
if
(
aggNum
>
0
&&
scal
Num
>
0
)
{
return
false
;
}
...
...
@@ -6536,7 +6552,9 @@ int32_t validateFunctionsInIntervalOrGroupbyQuery(SSqlCmd* pCmd, SQueryInfo* pQu
}
int32_t
f
=
pExpr
->
base
.
functionId
;
if
((
f
==
TSDB_FUNC_PRJ
&&
pExpr
->
base
.
numOfParams
==
0
)
||
f
==
TSDB_FUNC_DIFF
||
f
==
TSDB_FUNC_ARITHM
||
f
==
TSDB_FUNC_DERIVATIVE
)
{
if
((
f
==
TSDB_FUNC_PRJ
&&
pExpr
->
base
.
numOfParams
==
0
)
||
f
==
TSDB_FUNC_DIFF
||
f
==
TSDB_FUNC_ARITHM
||
f
==
TSDB_FUNC_DERIVATIVE
||
f
==
TSDB_FUNC_CEIL
||
f
==
TSDB_FUNC_FLOOR
||
f
==
TSDB_FUNC_ROUND
)
{
isProjectionFunction
=
true
;
break
;
}
...
...
@@ -7138,6 +7156,7 @@ static int32_t checkUpdateTagPrjFunctions(SQueryInfo* pQueryInfo, char* msg) {
const
char
*
msg2
=
"aggregation function should not be mixed up with projection"
;
bool
tagTsColExists
=
false
;
int16_t
numOfScalar
=
0
;
int16_t
numOfSelectivity
=
0
;
int16_t
numOfAggregation
=
0
;
...
...
@@ -7171,6 +7190,8 @@ static int32_t checkUpdateTagPrjFunctions(SQueryInfo* pQueryInfo, char* msg) {
if
((
aAggs
[
functionId
].
status
&
TSDB_FUNCSTATE_SELECTIVITY
)
!=
0
)
{
numOfSelectivity
++
;
}
else
if
((
aAggs
[
functionId
].
status
&
TSDB_FUNCSTATE_SCALAR
)
!=
0
)
{
numOfScalar
++
;
}
else
{
numOfAggregation
++
;
}
...
...
src/client/src/tscUtil.c
浏览文件 @
41eb895d
...
...
@@ -269,7 +269,10 @@ bool tscIsProjectionQueryOnSTable(SQueryInfo* pQueryInfo, int32_t tableIndex) {
functionId
!=
TSDB_FUNC_DIFF
&&
functionId
!=
TSDB_FUNC_DERIVATIVE
&&
functionId
!=
TSDB_FUNC_TS_DUMMY
&&
functionId
!=
TSDB_FUNC_TID_TAG
)
{
functionId
!=
TSDB_FUNC_TID_TAG
&&
functionId
!=
TSDB_FUNC_CEIL
&&
functionId
!=
TSDB_FUNC_FLOOR
&&
functionId
!=
TSDB_FUNC_ROUND
)
{
return
false
;
}
}
...
...
@@ -1465,7 +1468,12 @@ void tscFreeSubobj(SSqlObj* pSql) {
tscDebug
(
"0x%"
PRIx64
" start to free sub SqlObj, numOfSub:%d"
,
pSql
->
self
,
pSql
->
subState
.
numOfSub
);
for
(
int32_t
i
=
0
;
i
<
pSql
->
subState
.
numOfSub
;
++
i
)
{
if
(
pSql
->
pSubs
[
i
]
!=
NULL
)
{
tscDebug
(
"0x%"
PRIx64
" free sub SqlObj:0x%"
PRIx64
", index:%d"
,
pSql
->
self
,
pSql
->
pSubs
[
i
]
->
self
,
i
);
}
else
{
/* just for python error test case */
tscDebug
(
"0x%"
PRIx64
" free sub SqlObj:0x0, index:%d"
,
pSql
->
self
,
i
);
}
taos_free_result
(
pSql
->
pSubs
[
i
]);
pSql
->
pSubs
[
i
]
=
NULL
;
}
...
...
src/query/inc/qAggMain.h
浏览文件 @
41eb895d
...
...
@@ -70,14 +70,14 @@ extern "C" {
#define TSDB_FUNC_DERIVATIVE 32
#define TSDB_FUNC_BLKINFO 33
#define TSDB_FUNC_
HISTOGRAM 34
#define TSDB_FUNC_
HLL 35
#define TSDB_FUNC_MODE 36
#define TSDB_FUNC_
SAMPLE
37
#define TSDB_FUNC_
CEIL
38
#define TSDB_FUNC_
FLOOR
39
#define TSDB_FUNC_
ROUND
40
#define TSDB_FUNC_CEIL 34
#define TSDB_FUNC_
FLOOR 35
#define TSDB_FUNC_
ROUND 36
#define TSDB_FUNC_
HISTOGRAM
37
#define TSDB_FUNC_
HLL
38
#define TSDB_FUNC_
MODE
39
#define TSDB_FUNC_
SAMPLE
40
#define TSDB_FUNC_MAVG 41
#define TSDB_FUNC_CSUM 42
...
...
@@ -88,6 +88,7 @@ extern "C" {
#define TSDB_FUNCSTATE_OF 0x10u // outer forward
#define TSDB_FUNCSTATE_NEED_TS 0x20u // timestamp is required during query processing
#define TSDB_FUNCSTATE_SELECTIVITY 0x40u // selectivity functions, can exists along with tag columns
#define TSDB_FUNCSTATE_SCALAR 0x80u
#define TSDB_BASE_FUNC_SO TSDB_FUNCSTATE_SO | TSDB_FUNCSTATE_STREAM | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_OF
#define TSDB_BASE_FUNC_MO TSDB_FUNCSTATE_MO | TSDB_FUNCSTATE_STREAM | TSDB_FUNCSTATE_STABLE | TSDB_FUNCSTATE_OF
...
...
src/query/src/qAggMain.c
浏览文件 @
41eb895d
...
...
@@ -179,7 +179,9 @@ int32_t getResultDataInfo(int32_t dataType, int32_t dataBytes, int32_t functionI
if
(
functionId
==
TSDB_FUNC_TS
||
functionId
==
TSDB_FUNC_TS_DUMMY
||
functionId
==
TSDB_FUNC_TAG_DUMMY
||
functionId
==
TSDB_FUNC_DIFF
||
functionId
==
TSDB_FUNC_PRJ
||
functionId
==
TSDB_FUNC_TAGPRJ
||
functionId
==
TSDB_FUNC_TAG
||
functionId
==
TSDB_FUNC_INTERP
)
{
functionId
==
TSDB_FUNC_TAG
||
functionId
==
TSDB_FUNC_INTERP
||
functionId
==
TSDB_FUNC_CEIL
||
functionId
==
TSDB_FUNC_FLOOR
||
functionId
==
TSDB_FUNC_ROUND
)
{
*
type
=
(
int16_t
)
dataType
;
*
bytes
=
(
int16_t
)
dataBytes
;
...
...
@@ -405,7 +407,7 @@ int32_t getResultDataInfo(int32_t dataType, int32_t dataBytes, int32_t functionI
// TODO use hash table
int32_t
isValidFunction
(
const
char
*
name
,
int32_t
len
)
{
for
(
int32_t
i
=
0
;
i
<=
TSDB_FUNC_
BLKINFO
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<=
TSDB_FUNC_
ROUND
;
++
i
)
{
int32_t
nameLen
=
(
int32_t
)
strlen
(
aAggs
[
i
].
name
);
if
(
len
!=
nameLen
)
{
continue
;
...
...
@@ -4256,6 +4258,231 @@ void blockinfo_func_finalizer(SQLFunctionCtx* pCtx) {
doFinalizer
(
pCtx
);
}
#define CFR_SET_VAL(type, data, pCtx, func, i, step, notNullElems) \
do { \
type *pData = (type *) data; \
type *pOutput = (type *) pCtx->pOutput; \
\
for (; i < pCtx->size && i >= 0; i += step) { \
if (pCtx->hasNull && isNull((const char*) &pData[i], pCtx->inputType)) { \
continue; \
} \
\
*pOutput++ = (type) func((double) pData[i]); \
\
notNullElems++; \
} \
} while (0)
#define CFR_SET_VAL_DOUBLE(data, pCtx, func, i, step, notNullElems) \
do { \
double *pData = (double *) data; \
double *pOutput = (double *) pCtx->pOutput; \
\
for (; i < pCtx->size && i >= 0; i += step) { \
if (pCtx->hasNull && isNull((const char*) &pData[i], pCtx->inputType)) { \
continue; \
} \
\
SET_DOUBLE_VAL(pOutput, func(pData[i])); \
pOutput++; \
\
notNullElems++; \
} \
} while (0)
static
void
ceil_function
(
SQLFunctionCtx
*
pCtx
)
{
void
*
data
=
GET_INPUT_DATA_LIST
(
pCtx
);
int32_t
notNullElems
=
0
;
int32_t
step
=
GET_FORWARD_DIRECTION_FACTOR
(
pCtx
->
order
);
int32_t
i
=
(
pCtx
->
order
==
TSDB_ORDER_ASC
)
?
0
:
pCtx
->
size
-
1
;
switch
(
pCtx
->
inputType
)
{
case
TSDB_DATA_TYPE_INT
:
{
CFR_SET_VAL
(
int32_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_UINT
:
{
CFR_SET_VAL
(
uint32_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_BIGINT
:
{
CFR_SET_VAL
(
int64_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UBIGINT
:
{
CFR_SET_VAL
(
uint64_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_DOUBLE
:
{
CFR_SET_VAL_DOUBLE
(
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_FLOAT
:
{
CFR_SET_VAL
(
float
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_SMALLINT
:
{
CFR_SET_VAL
(
int16_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_USMALLINT
:
{
CFR_SET_VAL
(
uint16_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_TINYINT
:
{
CFR_SET_VAL
(
int8_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UTINYINT
:
{
CFR_SET_VAL
(
uint8_t
,
data
,
pCtx
,
ceil
,
i
,
step
,
notNullElems
);
break
;
}
default:
qError
(
"error input type"
);
}
if
(
notNullElems
<=
0
)
{
/*
* current block may be null value
*/
assert
(
pCtx
->
hasNull
);
}
else
{
GET_RES_INFO
(
pCtx
)
->
numOfRes
+=
notNullElems
;
}
}
static
void
floor_function
(
SQLFunctionCtx
*
pCtx
)
{
void
*
data
=
GET_INPUT_DATA_LIST
(
pCtx
);
int32_t
notNullElems
=
0
;
int32_t
step
=
GET_FORWARD_DIRECTION_FACTOR
(
pCtx
->
order
);
int32_t
i
=
(
pCtx
->
order
==
TSDB_ORDER_ASC
)
?
0
:
pCtx
->
size
-
1
;
switch
(
pCtx
->
inputType
)
{
case
TSDB_DATA_TYPE_INT
:
{
CFR_SET_VAL
(
int32_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_UINT
:
{
CFR_SET_VAL
(
uint32_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_BIGINT
:
{
CFR_SET_VAL
(
int64_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UBIGINT
:
{
CFR_SET_VAL
(
uint64_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_DOUBLE
:
{
CFR_SET_VAL_DOUBLE
(
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_FLOAT
:
{
CFR_SET_VAL
(
float
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_SMALLINT
:
{
CFR_SET_VAL
(
int16_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_USMALLINT
:
{
CFR_SET_VAL
(
uint16_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_TINYINT
:
{
CFR_SET_VAL
(
int8_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UTINYINT
:
{
CFR_SET_VAL
(
uint8_t
,
data
,
pCtx
,
floor
,
i
,
step
,
notNullElems
);
break
;
}
default:
qError
(
"error input type"
);
}
if
(
notNullElems
<=
0
)
{
/*
* current block may be null value
*/
assert
(
pCtx
->
hasNull
);
}
else
{
GET_RES_INFO
(
pCtx
)
->
numOfRes
+=
notNullElems
;
}
}
static
void
round_function
(
SQLFunctionCtx
*
pCtx
)
{
void
*
data
=
GET_INPUT_DATA_LIST
(
pCtx
);
int32_t
notNullElems
=
0
;
int32_t
step
=
GET_FORWARD_DIRECTION_FACTOR
(
pCtx
->
order
);
int32_t
i
=
(
pCtx
->
order
==
TSDB_ORDER_ASC
)
?
0
:
pCtx
->
size
-
1
;
switch
(
pCtx
->
inputType
)
{
case
TSDB_DATA_TYPE_INT
:
{
CFR_SET_VAL
(
int32_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_UINT
:
{
CFR_SET_VAL
(
uint32_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
};
case
TSDB_DATA_TYPE_BIGINT
:
{
CFR_SET_VAL
(
int64_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UBIGINT
:
{
CFR_SET_VAL
(
uint64_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_DOUBLE
:
{
CFR_SET_VAL_DOUBLE
(
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_FLOAT
:
{
CFR_SET_VAL
(
float
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_SMALLINT
:
{
CFR_SET_VAL
(
int16_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_USMALLINT
:
{
CFR_SET_VAL
(
uint16_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_TINYINT
:
{
CFR_SET_VAL
(
int8_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
case
TSDB_DATA_TYPE_UTINYINT
:
{
CFR_SET_VAL
(
uint8_t
,
data
,
pCtx
,
round
,
i
,
step
,
notNullElems
);
break
;
}
default:
qError
(
"error input type"
);
}
if
(
notNullElems
<=
0
)
{
/*
* current block may be null value
*/
assert
(
pCtx
->
hasNull
);
}
else
{
GET_RES_INFO
(
pCtx
)
->
numOfRes
+=
notNullElems
;
}
}
#undef CFR_SET_VAL
#undef CFR_SET_VAL_DOUBLE
/////////////////////////////////////////////////////////////////////////////////////////////
/*
* function compatible list.
...
...
@@ -4274,8 +4501,8 @@ int32_t functionCompatList[] = {
4
,
-
1
,
-
1
,
1
,
1
,
1
,
1
,
1
,
1
,
-
1
,
// tag, colprj, tagprj, arithmetic, diff, first_dist, last_dist, stddev_dst, interp rate irate
1
,
1
,
1
,
1
,
-
1
,
1
,
1
,
1
,
5
,
1
,
1
,
// tid_tag, derivative, blk_info
6
,
8
,
7
,
// tid_tag, derivative, blk_info
,ceil, floor, round
6
,
8
,
7
,
1
,
1
,
1
};
SAggFunctionInfo
aAggs
[]
=
{{
...
...
@@ -4688,4 +4915,40 @@ SAggFunctionInfo aAggs[] = {{
blockinfo_func_finalizer
,
block_func_merge
,
dataBlockRequired
,
},
{
// 34
"ceil"
,
TSDB_FUNC_CEIL
,
TSDB_FUNC_CEIL
,
TSDB_FUNCSTATE_MO
|
TSDB_FUNCSTATE_STABLE
|
TSDB_FUNCSTATE_NEED_TS
|
TSDB_FUNCSTATE_SCALAR
,
function_setup
,
ceil_function
,
doFinalizer
,
noop1
,
dataBlockRequired
},
{
// 35
"floor"
,
TSDB_FUNC_FLOOR
,
TSDB_FUNC_FLOOR
,
TSDB_FUNCSTATE_MO
|
TSDB_FUNCSTATE_STABLE
|
TSDB_FUNCSTATE_NEED_TS
|
TSDB_FUNCSTATE_SCALAR
,
function_setup
,
floor_function
,
doFinalizer
,
noop1
,
dataBlockRequired
},
{
// 36
"round"
,
TSDB_FUNC_ROUND
,
TSDB_FUNC_ROUND
,
TSDB_FUNCSTATE_MO
|
TSDB_FUNCSTATE_STABLE
|
TSDB_FUNCSTATE_NEED_TS
|
TSDB_FUNCSTATE_SCALAR
,
function_setup
,
round_function
,
doFinalizer
,
noop1
,
dataBlockRequired
}};
src/query/src/qExecutor.c
浏览文件 @
41eb895d
...
...
@@ -405,6 +405,25 @@ static bool isSelectivityWithTagsQuery(SQLFunctionCtx *pCtx, int32_t numOfOutput
return
(
numOfSelectivity
>
0
&&
hasTags
);
}
static
bool
isScalarWithTagsQuery
(
SQLFunctionCtx
*
pCtx
,
int32_t
numOfOutput
)
{
bool
hasTags
=
false
;
int32_t
numOfScalar
=
0
;
for
(
int32_t
i
=
0
;
i
<
numOfOutput
;
++
i
)
{
int32_t
functId
=
pCtx
[
i
].
functionId
;
if
(
functId
==
TSDB_FUNC_TAG_DUMMY
||
functId
==
TSDB_FUNC_TS_DUMMY
)
{
hasTags
=
true
;
continue
;
}
if
((
aAggs
[
functId
].
status
&
TSDB_FUNCSTATE_SCALAR
)
!=
0
)
{
numOfScalar
++
;
}
}
return
(
numOfScalar
>
0
&&
hasTags
);
}
static
bool
isProjQuery
(
SQueryAttr
*
pQueryAttr
)
{
for
(
int32_t
i
=
0
;
i
<
pQueryAttr
->
numOfOutput
;
++
i
)
{
int32_t
functId
=
pQueryAttr
->
pExpr1
[
i
].
base
.
functionId
;
...
...
@@ -1939,7 +1958,7 @@ void setBlockStatisInfo(SQLFunctionCtx *pCtx, SSDataBlock* pSDataBlock, SColInde
// set the output buffer for the selectivity + tag query
static
int32_t
setCtxTagColumnInfo
(
SQLFunctionCtx
*
pCtx
,
int32_t
numOfOutput
)
{
if
(
!
isSelectivityWithTagsQuery
(
pCtx
,
numOfOutput
))
{
if
(
!
isSelectivityWithTagsQuery
(
pCtx
,
numOfOutput
)
&&
!
isScalarWithTagsQuery
(
pCtx
,
numOfOutput
)
)
{
return
TSDB_CODE_SUCCESS
;
}
...
...
@@ -1958,7 +1977,7 @@ static int32_t setCtxTagColumnInfo(SQLFunctionCtx *pCtx, int32_t numOfOutput) {
if
(
functionId
==
TSDB_FUNC_TAG_DUMMY
||
functionId
==
TSDB_FUNC_TS_DUMMY
)
{
tagLen
+=
pCtx
[
i
].
outputBytes
;
pTagCtx
[
num
++
]
=
&
pCtx
[
i
];
}
else
if
((
aAggs
[
functionId
].
status
&
TSDB_FUNCSTATE_SELECTIVITY
)
!=
0
)
{
}
else
if
((
aAggs
[
functionId
].
status
&
TSDB_FUNCSTATE_SELECTIVITY
)
!=
0
||
(
aAggs
[
functionId
].
status
&
TSDB_FUNCSTATE_SCALAR
)
!=
0
)
{
p
=
&
pCtx
[
i
];
}
else
if
(
functionId
==
TSDB_FUNC_TS
||
functionId
==
TSDB_FUNC_TAG
)
{
// tag function may be the group by tag column
...
...
src/query/src/qPlan.c
浏览文件 @
41eb895d
...
...
@@ -645,6 +645,12 @@ SArray* createExecOperatorPlan(SQueryAttr* pQueryAttr) {
}
else
{
op
=
OP_Project
;
taosArrayPush
(
plan
,
&
op
);
if
(
pQueryAttr
->
pExpr2
!=
NULL
)
{
op
=
OP_Project
;
taosArrayPush
(
plan
,
&
op
);
}
if
(
pQueryAttr
->
distinct
)
{
op
=
OP_Distinct
;
taosArrayPush
(
plan
,
&
op
);
...
...
tests/pytest/fulltest.sh
浏览文件 @
41eb895d
...
...
@@ -359,6 +359,9 @@ python3 ./test.py -f functions/queryTestCases.py
python3 ./test.py
-f
functions/function_stateWindow.py
python3 ./test.py
-f
functions/function_derivative.py
python3 ./test.py
-f
functions/function_irate.py
python3 ./test.py
-f
functions/function_ceil.py
python3 ./test.py
-f
functions/function_floor.py
python3 ./test.py
-f
functions/function_round.py
python3 ./test.py
-f
insert/unsignedInt.py
python3 ./test.py
-f
insert/unsignedBigint.py
...
...
tests/pytest/functions/function_ceil.py
0 → 100644
浏览文件 @
41eb895d
###################################################################
# Copyright (c) 2016 by TAOS Technologies, Inc.
# All rights reserved.
#
# This file is proprietary and confidential to TAOS Technologies.
# No part of this file may be reproduced, stored, transmitted,
# disclosed or used in any form or by any means other than as
# expressly provided by the written permission from Jianhui Tao
#
###################################################################
# -*- coding: utf-8 -*-
import
sys
import
taos
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
import
numpy
as
np
import
random
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
def
randomInt
(
self
):
return
random
.
randint
(
-
2147483647
,
2147483647
)
def
randomUInt
(
self
):
return
random
.
randint
(
0
,
4294967294
)
def
randomBigint
(
self
):
return
random
.
randint
(
-
2
**
63
+
1
,
2
**
63
-
1
)
def
randomUBigint
(
self
):
return
random
.
randint
(
0
,
18446744073709551614
)
def
randomDouble
(
self
):
return
random
.
random
()
def
randomNchar
(
self
):
return
random
.
choice
(
'abcdefghijklmnopqrstuvwxyz'
)
def
randomSmallint
(
self
):
return
random
.
randint
(
-
32767
,
32767
)
def
randomUSmallint
(
self
):
return
random
.
randint
(
0
,
65534
)
def
randomTinyint
(
self
):
return
random
.
randint
(
-
127
,
127
)
def
randomUTinyint
(
self
):
return
random
.
randint
(
0
,
254
)
def
run
(
self
):
select_command
=
[
"ceil(ts)"
,
"ceil(timestamp_col)"
,
"ceil(int_col)"
,
"ceil(bigint_col)"
,
"ceil(float_col)"
,
"ceil(double_col)"
,
"ceil(binary_col)"
,
"ceil(smallint_col)"
,
"ceil(tinyint_col)"
,
"ceil(bool_col)"
,
"ceil(nchar_col)"
,
"ceil(uint_col)"
,
"ceil(ubigint_col)"
,
"ceil(usmallint_col)"
,
"ceil(utinyint_col)"
,
"ceil(timestamp_tag)"
,
"ceil(int_tag)"
,
"ceil(bigint_tag)"
,
"ceil(float_tag)"
,
"ceil(double_tag)"
,
"ceil(binary_tag)"
,
"ceil(smallint_tag)"
,
"ceil(tinyint_tag)"
,
"ceil(bool_tag)"
,
"ceil(nchar_tag)"
,
"ceil(uint_tag)"
,
"ceil(ubigint_tag)"
,
"ceil(usmallint_tag)"
,
"ceil(utinyint_tag)"
,
"count(ceil(int_col))"
,
"count(ceil(bigint_col))"
,
"count(ceil(float_col))"
,
"count(ceil(double_col))"
,
"count(ceil(smallint_col))"
,
"count(ceil(tinyint_col))"
,
"count(ceil(uint_col))"
,
"count(ceil(ubigint_col))"
,
"count(ceil(usmallint_col))"
,
"count(ceil(utinyint_col))"
,
"avg(ceil(int_col))"
,
"avg(ceil(bigint_col))"
,
"avg(ceil(float_col))"
,
"avg(ceil(double_col))"
,
"avg(ceil(smallint_col))"
,
"avg(ceil(tinyint_col))"
,
"avg(ceil(uint_col))"
,
"avg(ceil(ubigint_col))"
,
"avg(ceil(usmallint_col))"
,
"avg(ceil(utinyint_col))"
,
"twa(ceil(int_col))"
,
"twa(ceil(bigint_col))"
,
"twa(ceil(float_col))"
,
"twa(ceil(double_col))"
,
"twa(ceil(smallint_col))"
,
"twa(ceil(tinyint_col))"
,
"twa(ceil(uint_col))"
,
"twa(ceil(ubigint_col))"
,
"twa(ceil(usmallint_col))"
,
"twa(ceil(utinyint_col))"
,
"sum(ceil(int_col))"
,
"sum(ceil(bigint_col))"
,
"sum(ceil(float_col))"
,
"sum(ceil(double_col))"
,
"sum(ceil(smallint_col))"
,
"sum(ceil(tinyint_col))"
,
"sum(ceil(uint_col))"
,
"sum(ceil(ubigint_col))"
,
"sum(ceil(usmallint_col))"
,
"sum(ceil(utinyint_col))"
,
"stddev(ceil(int_col))"
,
"stddev(ceil(bigint_col))"
,
"stddev(ceil(float_col))"
,
"stddev(ceil(double_col))"
,
"stddev(ceil(smallint_col))"
,
"stddev(ceil(tinyint_col))"
,
"stddev(ceil(uint_col))"
,
"stddev(ceil(ubigint_col))"
,
"stddev(ceil(usmallint_col))"
,
"stddev(ceil(utinyint_col))"
,
"irate(ceil(int_col))"
,
"irate(ceil(bigint_col))"
,
"irate(ceil(float_col))"
,
"irate(ceil(double_col))"
,
"irate(ceil(smallint_col))"
,
"irate(ceil(tinyint_col))"
,
"irate(ceil(uint_col))"
,
"irate(ceil(ubigint_col))"
,
"irate(ceil(usmallint_col))"
,
"irate(ceil(utinyint_col))"
,
"leastsquares(ceil(int_col), 1, 1)"
,
"leastsquares(ceil(bigint_col), 1, 1)"
,
"leastsquares(ceil(float_col), 1, 1)"
,
"leastsquares(ceil(double_col), 1, 1)"
,
"leastsquares(ceil(smallint_col), 1, 1)"
,
"leastsquares(ceil(tinyint_col), 1, 1)"
,
"leastsquares(ceil(uint_col), 1, 1)"
,
"leastsquares(ceil(ubigint_col), 1, 1)"
,
"leastsquares(ceil(usmallint_col), 1, 1)"
,
"leastsquares(ceil(utinyint_col), 1, 1)"
,
"min(ceil(int_col))"
,
"min(ceil(bigint_col))"
,
"min(ceil(float_col))"
,
"min(ceil(double_col))"
,
"min(ceil(smallint_col))"
,
"min(ceil(tinyint_col))"
,
"min(ceil(uint_col))"
,
"min(ceil(ubigint_col))"
,
"min(ceil(usmallint_col))"
,
"min(ceil(utinyint_col))"
,
"max(ceil(int_col))"
,
"max(ceil(bigint_col))"
,
"max(ceil(float_col))"
,
"max(ceil(double_col))"
,
"max(ceil(smallint_col))"
,
"max(ceil(tinyint_col))"
,
"max(ceil(uint_col))"
,
"max(ceil(ubigint_col))"
,
"max(ceil(usmallint_col))"
,
"max(ceil(utinyint_col))"
,
"first(ceil(int_col))"
,
"first(ceil(bigint_col))"
,
"first(ceil(float_col))"
,
"first(ceil(double_col))"
,
"first(ceil(smallint_col))"
,
"first(ceil(tinyint_col))"
,
"first(ceil(uint_col))"
,
"first(ceil(ubigint_col))"
,
"first(ceil(usmallint_col))"
,
"first(ceil(utinyint_col))"
,
"last(ceil(int_col))"
,
"last(ceil(bigint_col))"
,
"last(ceil(float_col))"
,
"last(ceil(double_col))"
,
"last(ceil(smallint_col))"
,
"last(ceil(tinyint_col))"
,
"last(ceil(uint_col))"
,
"last(ceil(ubigint_col))"
,
"last(ceil(usmallint_col))"
,
"last(ceil(utinyint_col))"
,
"top(ceil(int_col), 1)"
,
"top(ceil(bigint_col), 1)"
,
"top(ceil(float_col), 1)"
,
"top(ceil(double_col), 1)"
,
"top(ceil(smallint_col), 1)"
,
"top(ceil(tinyint_col), 1)"
,
"top(ceil(uint_col), 1)"
,
"top(ceil(ubigint_col), 1)"
,
"top(ceil(usmallint_col), 1)"
,
"top(ceil(utinyint_col), 1)"
,
"bottom(ceil(int_col), 1)"
,
"bottom(ceil(bigint_col), 1)"
,
"bottom(ceil(float_col), 1)"
,
"bottom(ceil(double_col), 1)"
,
"bottom(ceil(smallint_col), 1)"
,
"bottom(ceil(tinyint_col), 1)"
,
"bottom(ceil(uint_col), 1)"
,
"bottom(ceil(ubigint_col), 1)"
,
"bottom(ceil(usmallint_col), 1)"
,
"bottom(ceil(utinyint_col), 1)"
,
"percentile(ceil(int_col), 20)"
,
"percentile(ceil(bigint_col), 20)"
,
"percentile(ceil(float_col), 20)"
,
"percentile(ceil(double_col), 20)"
,
"percentile(ceil(smallint_col), 20)"
,
"percentile(ceil(tinyint_col), 20)"
,
"percentile(ceil(uint_col), 20)"
,
"percentile(ceil(ubigint_col), 20)"
,
"percentile(ceil(usmallint_col), 20)"
,
"percentile(ceil(utinyint_col), 20)"
,
"apercentile(ceil(int_col), 20)"
,
"apercentile(ceil(bigint_col), 20)"
,
"apercentile(ceil(float_col), 20)"
,
"apercentile(ceil(double_col), 20)"
,
"apercentile(ceil(smallint_col), 20)"
,
"apercentile(ceil(tinyint_col), 20)"
,
"apercentile(ceil(uint_col), 20)"
,
"apercentile(ceil(ubigint_col), 20)"
,
"apercentile(ceil(usmallint_col), 20)"
,
"apercentile(ceil(utinyint_col), 20)"
,
"last_row(ceil(int_col))"
,
"last_row(ceil(bigint_col))"
,
"last_row(ceil(float_col))"
,
"last_row(ceil(double_col))"
,
"last_row(ceil(smallint_col))"
,
"last_row(ceil(tinyint_col))"
,
"last_row(ceil(uint_col))"
,
"last_row(ceil(ubigint_col))"
,
"last_row(ceil(usmallint_col))"
,
"last_row(ceil(utinyint_col))"
,
"interp(ceil(int_col))"
,
"interp(ceil(bigint_col))"
,
"interp(ceil(float_col))"
,
"interp(ceil(double_col))"
,
"interp(ceil(smallint_col))"
,
"interp(ceil(tinyint_col))"
,
"interp(ceil(uint_col))"
,
"interp(ceil(ubigint_col))"
,
"interp(ceil(usmallint_col))"
,
"interp(ceil(utinyint_col))"
,
"diff(ceil(int_col))"
,
"diff(ceil(bigint_col))"
,
"diff(ceil(float_col))"
,
"diff(ceil(double_col))"
,
"diff(ceil(smallint_col))"
,
"diff(ceil(tinyint_col))"
,
"diff(ceil(uint_col))"
,
"diff(ceil(ubigint_col))"
,
"diff(ceil(usmallint_col))"
,
"diff(ceil(utinyint_col))"
,
"spread(ceil(int_col))"
,
"spread(ceil(bigint_col))"
,
"spread(ceil(float_col))"
,
"spread(ceil(double_col))"
,
"spread(ceil(smallint_col))"
,
"spread(ceil(tinyint_col))"
,
"spread(ceil(uint_col))"
,
"spread(ceil(ubigint_col))"
,
"spread(ceil(usmallint_col))"
,
"spread(ceil(utinyint_col))"
,
"derivative(ceil(int_col), 1s, 0)"
,
"derivative(ceil(bigint_col), 1s, 0)"
,
"derivative(ceil(float_col), 1s, 0)"
,
"derivative(ceil(double_col), 1s, 0)"
,
"derivative(ceil(smallint_col), 1s, 0)"
,
"derivative(ceil(tinyint_col), 1s, 0)"
,
"derivative(ceil(uint_col), 1s, 0)"
,
"derivative(ceil(ubigint_col), 1s, 0)"
,
"derivative(ceil(usmallint_col), 1s, 0)"
,
"derivative(ceil(utinyint_col), 1s, 0)"
,
"ceil(int_col) - ceil(int_col)"
,
"ceil(bigint_col) - ceil(bigint_col)"
,
"ceil(float_col) - ceil(float_col)"
,
"ceil(double_col) - ceil(double_col)"
,
"ceil(smallint_col) - ceil(smallint_col)"
,
"ceil(tinyint_col) - ceil(tinyint_col)"
,
"ceil(uint_col) - ceil(uint_col)"
,
"ceil(ubigint_col) - ceil(ubigint_col)"
,
"ceil(usmallint_col) - ceil(usmallint_col)"
,
"ceil(utinyint_col) - ceil(utinyint_col)"
,
"ceil(int_col) / ceil(int_col)"
,
"ceil(bigint_col) / ceil(bigint_col)"
,
"ceil(float_col) / ceil(float_col)"
,
"ceil(double_col) / ceil(double_col)"
,
"ceil(smallint_col) / ceil(smallint_col)"
,
"ceil(tinyint_col) / ceil(tinyint_col)"
,
"ceil(uint_col) / ceil(uint_col)"
,
"ceil(ubigint_col) / ceil(ubigint_col)"
,
"ceil(usmallint_col) / ceil(usmallint_col)"
,
"ceil(utinyint_col) / ceil(utinyint_col)"
,
"ceil(int_col) * ceil(int_col)"
,
"ceil(bigint_col) * ceil(bigint_col)"
,
"ceil(float_col) * ceil(float_col)"
,
"ceil(double_col) * ceil(double_col)"
,
"ceil(smallint_col) * ceil(smallint_col)"
,
"ceil(tinyint_col) * ceil(tinyint_col)"
,
"ceil(uint_col) * ceil(uint_col)"
,
"ceil(ubigint_col) * ceil(ubigint_col)"
,
"ceil(usmallint_col) * ceil(usmallint_col)"
,
"ceil(utinyint_col) * ceil(utinyint_col)"
,
"ceil(count(ts))"
,
"ceil(count(timestamp_col))"
,
"ceil(count(int_col))"
,
"ceil(count(bigint_col))"
,
"ceil(count(float_col))"
,
"ceil(count(double_col))"
,
"ceil(count(binary_col))"
,
"ceil(count(smallint_col))"
,
"ceil(count(tinyint_col))"
,
"ceil(count(bool_col))"
,
"ceil(count(nchar_col))"
,
"ceil(count(uint_col))"
,
"ceil(count(ubigint_col))"
,
"ceil(count(usmallint_col))"
,
"ceil(count(utinyint_col))"
,
"ceil(count(timestamp_tag))"
,
"ceil(count(int_tag))"
,
"ceil(count(bigint_tag))"
,
"ceil(count(float_tag))"
,
"ceil(count(double_tag))"
,
"ceil(count(binary_tag))"
,
"ceil(count(smallint_tag))"
,
"ceil(count(tinyint_tag))"
,
"ceil(count(bool_tag))"
,
"ceil(count(nchar_tag))"
,
"ceil(count(uint_tag))"
,
"ceil(count(ubigint_tag))"
,
"ceil(count(usmallint_tag))"
,
"ceil(count(utinyint_tag))"
,
"ceil(avg(ts))"
,
"ceil(avg(timestamp_col))"
,
"ceil(avg(int_col))"
,
"ceil(avg(bigint_col))"
,
"ceil(avg(float_col))"
,
"ceil(avg(double_col))"
,
"ceil(avg(binary_col))"
,
"ceil(avg(smallint_col))"
,
"ceil(avg(tinyint_col))"
,
"ceil(avg(bool_col))"
,
"ceil(avg(nchar_col))"
,
"ceil(avg(uint_col))"
,
"ceil(avg(ubigint_col))"
,
"ceil(avg(usmallint_col))"
,
"ceil(avg(utinyint_col))"
,
"ceil(avg(timestamp_tag))"
,
"ceil(avg(int_tag))"
,
"ceil(avg(bigint_tag))"
,
"ceil(avg(float_tag))"
,
"ceil(avg(double_tag))"
,
"ceil(avg(binary_tag))"
,
"ceil(avg(smallint_tag))"
,
"ceil(avg(tinyint_tag))"
,
"ceil(avg(bool_tag))"
,
"ceil(avg(nchar_tag))"
,
"ceil(avg(uint_tag))"
,
"ceil(avg(ubigint_tag))"
,
"ceil(avg(usmallint_tag))"
,
"ceil(avg(utinyint_tag))"
,
"ceil(twa(ts))"
,
"ceil(twa(timestamp_col))"
,
"ceil(twa(int_col))"
,
"ceil(twa(bigint_col))"
,
"ceil(twa(float_col))"
,
"ceil(twa(double_col))"
,
"ceil(twa(binary_col))"
,
"ceil(twa(smallint_col))"
,
"ceil(twa(tinyint_col))"
,
"ceil(twa(bool_col))"
,
"ceil(twa(nchar_col))"
,
"ceil(twa(uint_col))"
,
"ceil(twa(ubigint_col))"
,
"ceil(twa(usmallint_col))"
,
"ceil(twa(utinyint_col))"
,
"ceil(twa(timestamp_tag))"
,
"ceil(twa(int_tag))"
,
"ceil(twa(bigint_tag))"
,
"ceil(twa(float_tag))"
,
"ceil(twa(double_tag))"
,
"ceil(twa(binary_tag))"
,
"ceil(twa(smallint_tag))"
,
"ceil(twa(tinyint_tag))"
,
"ceil(twa(bool_tag))"
,
"ceil(twa(nchar_tag))"
,
"ceil(twa(uint_tag))"
,
"ceil(twa(ubigint_tag))"
,
"ceil(twa(usmallint_tag))"
,
"ceil(twa(utinyint_tag))"
,
"ceil(sum(ts))"
,
"ceil(sum(timestamp_col))"
,
"ceil(sum(int_col))"
,
"ceil(sum(bigint_col))"
,
"ceil(sum(float_col))"
,
"ceil(sum(double_col))"
,
"ceil(sum(binary_col))"
,
"ceil(sum(smallint_col))"
,
"ceil(sum(tinyint_col))"
,
"ceil(sum(bool_col))"
,
"ceil(sum(nchar_col))"
,
"ceil(sum(uint_col))"
,
"ceil(sum(ubigint_col))"
,
"ceil(sum(usmallint_col))"
,
"ceil(sum(utinyint_col))"
,
"ceil(sum(timestamp_tag))"
,
"ceil(sum(int_tag))"
,
"ceil(sum(bigint_tag))"
,
"ceil(sum(float_tag))"
,
"ceil(sum(double_tag))"
,
"ceil(sum(binary_tag))"
,
"ceil(sum(smallint_tag))"
,
"ceil(sum(tinyint_tag))"
,
"ceil(sum(bool_tag))"
,
"ceil(sum(nchar_tag))"
,
"ceil(sum(uint_tag))"
,
"ceil(sum(ubigint_tag))"
,
"ceil(sum(usmallint_tag))"
,
"ceil(sum(utinyint_tag))"
,
"ceil(stddev(ts))"
,
"ceil(stddev(timestamp_col))"
,
"ceil(stddev(int_col))"
,
"ceil(stddev(bigint_col))"
,
"ceil(stddev(float_col))"
,
"ceil(stddev(double_col))"
,
"ceil(stddev(binary_col))"
,
"ceil(stddev(smallint_col))"
,
"ceil(stddev(tinyint_col))"
,
"ceil(stddev(bool_col))"
,
"ceil(stddev(nchar_col))"
,
"ceil(stddev(uint_col))"
,
"ceil(stddev(ubigint_col))"
,
"ceil(stddev(usmallint_col))"
,
"ceil(stddev(utinyint_col))"
,
"ceil(stddev(timestamp_tag))"
,
"ceil(stddev(int_tag))"
,
"ceil(stddev(bigint_tag))"
,
"ceil(stddev(float_tag))"
,
"ceil(stddev(double_tag))"
,
"ceil(stddev(binary_tag))"
,
"ceil(stddev(smallint_tag))"
,
"ceil(stddev(tinyint_tag))"
,
"ceil(stddev(bool_tag))"
,
"ceil(stddev(nchar_tag))"
,
"ceil(stddev(uint_tag))"
,
"ceil(stddev(ubigint_tag))"
,
"ceil(stddev(usmallint_tag))"
,
"ceil(stddev(utinyint_tag))"
,
"ceil(leastsquares(ts, 1, 1))"
,
"ceil(leastsquares(timestamp_col, 1, 1))"
,
"ceil(leastsquares(int_col, 1, 1))"
,
"ceil(leastsquares(bigint_col, 1, 1))"
,
"ceil(leastsquares(float_col, 1, 1))"
,
"ceil(leastsquares(double_col, 1, 1))"
,
"ceil(leastsquares(binary_col, 1, 1))"
,
"ceil(leastsquares(smallint_col, 1, 1))"
,
"ceil(leastsquares(tinyint_col, 1, 1))"
,
"ceil(leastsquares(bool_col, 1, 1))"
,
"ceil(leastsquares(nchar_col, 1, 1))"
,
"ceil(leastsquares(uint_col, 1, 1))"
,
"ceil(leastsquares(ubigint_col, 1, 1))"
,
"ceil(leastsquares(usmallint_col, 1, 1))"
,
"ceil(leastsquares(utinyint_col, 1, 1))"
,
"ceil(leastsquares(timestamp_tag, 1, 1))"
,
"ceil(leastsquares(int_tag, 1, 1))"
,
"ceil(leastsquares(bigint_tag, 1, 1))"
,
"ceil(leastsquares(float_tag, 1, 1))"
,
"ceil(leastsquares(double_tag, 1, 1))"
,
"ceil(leastsquares(binary_tag, 1, 1))"
,
"ceil(leastsquares(smallint_tag, 1, 1))"
,
"ceil(leastsquares(tinyint_tag, 1, 1))"
,
"ceil(leastsquares(bool_tag, 1, 1))"
,
"ceil(leastsquares(nchar_tag, 1, 1))"
,
"ceil(leastsquares(uint_tag, 1, 1))"
,
"ceil(leastsquares(ubigint_tag, 1, 1))"
,
"ceil(leastsquares(usmallint_tag, 1, 1))"
,
"ceil(leastsquares(utinyint_tag, 1, 1))"
,
"ceil(irate(ts))"
,
"ceil(irate(timestamp_col))"
,
"ceil(irate(int_col))"
,
"ceil(irate(bigint_col))"
,
"ceil(irate(float_col))"
,
"ceil(irate(double_col))"
,
"ceil(irate(binary_col))"
,
"ceil(irate(smallint_col))"
,
"ceil(irate(tinyint_col))"
,
"ceil(irate(bool_col))"
,
"ceil(irate(nchar_col))"
,
"ceil(irate(uint_col))"
,
"ceil(irate(ubigint_col))"
,
"ceil(irate(usmallint_col))"
,
"ceil(irate(utinyint_col))"
,
"ceil(irate(timestamp_tag))"
,
"ceil(irate(int_tag))"
,
"ceil(irate(bigint_tag))"
,
"ceil(irate(float_tag))"
,
"ceil(irate(double_tag))"
,
"ceil(irate(binary_tag))"
,
"ceil(irate(smallint_tag))"
,
"ceil(irate(tinyint_tag))"
,
"ceil(irate(bool_tag))"
,
"ceil(irate(nchar_tag))"
,
"ceil(irate(uint_tag))"
,
"ceil(irate(ubigint_tag))"
,
"ceil(irate(usmallint_tag))"
,
"ceil(irate(utinyint_tag))"
,
"ceil(min(ts))"
,
"ceil(min(timestamp_col))"
,
"ceil(min(int_col))"
,
"ceil(min(bigint_col))"
,
"ceil(min(float_col))"
,
"ceil(min(double_col))"
,
"ceil(min(binary_col))"
,
"ceil(min(smallint_col))"
,
"ceil(min(tinyint_col))"
,
"ceil(min(bool_col))"
,
"ceil(min(nchar_col))"
,
"ceil(min(uint_col))"
,
"ceil(min(ubigint_col))"
,
"ceil(min(usmallint_col))"
,
"ceil(min(utinyint_col))"
,
"ceil(min(timestamp_tag))"
,
"ceil(min(int_tag))"
,
"ceil(min(bigint_tag))"
,
"ceil(min(float_tag))"
,
"ceil(min(double_tag))"
,
"ceil(min(binary_tag))"
,
"ceil(min(smallint_tag))"
,
"ceil(min(tinyint_tag))"
,
"ceil(min(bool_tag))"
,
"ceil(min(nchar_tag))"
,
"ceil(min(uint_tag))"
,
"ceil(min(ubigint_tag))"
,
"ceil(min(usmallint_tag))"
,
"ceil(min(utinyint_tag))"
,
"ceil(max(ts))"
,
"ceil(max(timestamp_col))"
,
"ceil(max(int_col))"
,
"ceil(max(bigint_col))"
,
"ceil(max(float_col))"
,
"ceil(max(double_col))"
,
"ceil(max(binary_col))"
,
"ceil(max(smallint_col))"
,
"ceil(max(tinyint_col))"
,
"ceil(max(bool_col))"
,
"ceil(max(nchar_col))"
,
"ceil(max(uint_col))"
,
"ceil(max(ubigint_col))"
,
"ceil(max(usmallint_col))"
,
"ceil(max(utinyint_col))"
,
"ceil(max(timestamp_tag))"
,
"ceil(max(int_tag))"
,
"ceil(max(bigint_tag))"
,
"ceil(max(float_tag))"
,
"ceil(max(double_tag))"
,
"ceil(max(binary_tag))"
,
"ceil(max(smallint_tag))"
,
"ceil(max(tinyint_tag))"
,
"ceil(max(bool_tag))"
,
"ceil(max(nchar_tag))"
,
"ceil(max(uint_tag))"
,
"ceil(max(ubigint_tag))"
,
"ceil(max(usmallint_tag))"
,
"ceil(max(utinyint_tag))"
,
"ceil(first(ts))"
,
"ceil(first(timestamp_col))"
,
"ceil(first(int_col))"
,
"ceil(first(bigint_col))"
,
"ceil(first(float_col))"
,
"ceil(first(double_col))"
,
"ceil(first(binary_col))"
,
"ceil(first(smallint_col))"
,
"ceil(first(tinyint_col))"
,
"ceil(first(bool_col))"
,
"ceil(first(nchar_col))"
,
"ceil(first(uint_col))"
,
"ceil(first(ubigint_col))"
,
"ceil(first(usmallint_col))"
,
"ceil(first(utinyint_col))"
,
"ceil(first(timestamp_tag))"
,
"ceil(first(int_tag))"
,
"ceil(first(bigint_tag))"
,
"ceil(first(float_tag))"
,
"ceil(first(double_tag))"
,
"ceil(first(binary_tag))"
,
"ceil(first(smallint_tag))"
,
"ceil(first(tinyint_tag))"
,
"ceil(first(bool_tag))"
,
"ceil(first(nchar_tag))"
,
"ceil(first(uint_tag))"
,
"ceil(first(ubigint_tag))"
,
"ceil(first(usmallint_tag))"
,
"ceil(first(utinyint_tag))"
,
"ceil(last(ts))"
,
"ceil(last(timestamp_col))"
,
"ceil(last(int_col))"
,
"ceil(last(bigint_col))"
,
"ceil(last(float_col))"
,
"ceil(last(double_col))"
,
"ceil(last(binary_col))"
,
"ceil(last(smallint_col))"
,
"ceil(last(tinyint_col))"
,
"ceil(last(bool_col))"
,
"ceil(last(nchar_col))"
,
"ceil(last(uint_col))"
,
"ceil(last(ubigint_col))"
,
"ceil(last(usmallint_col))"
,
"ceil(last(utinyint_col))"
,
"ceil(last(timestamp_tag))"
,
"ceil(last(int_tag))"
,
"ceil(last(bigint_tag))"
,
"ceil(last(float_tag))"
,
"ceil(last(double_tag))"
,
"ceil(last(binary_tag))"
,
"ceil(last(smallint_tag))"
,
"ceil(last(tinyint_tag))"
,
"ceil(last(bool_tag))"
,
"ceil(last(nchar_tag))"
,
"ceil(last(uint_tag))"
,
"ceil(last(ubigint_tag))"
,
"ceil(last(usmallint_tag))"
,
"ceil(last(utinyint_tag))"
,
"ceil(top(ts, 1))"
,
"ceil(top(timestamp_col, 1))"
,
"ceil(top(int_col, 1))"
,
"ceil(top(bigint_col, 1))"
,
"ceil(top(float_col, 1))"
,
"ceil(top(double_col, 1))"
,
"ceil(top(binary_col, 1))"
,
"ceil(top(smallint_col, 1))"
,
"ceil(top(tinyint_col, 1))"
,
"ceil(top(bool_col, 1))"
,
"ceil(top(nchar_col, 1))"
,
"ceil(top(uint_col, 1))"
,
"ceil(top(ubigint_col, 1))"
,
"ceil(top(usmallint_col, 1))"
,
"ceil(top(utinyint_col, 1))"
,
"ceil(top(timestamp_tag, 1))"
,
"ceil(top(int_tag, 1))"
,
"ceil(top(bigint_tag, 1))"
,
"ceil(top(float_tag, 1))"
,
"ceil(top(double_tag, 1))"
,
"ceil(top(binary_tag, 1))"
,
"ceil(top(smallint_tag, 1))"
,
"ceil(top(tinyint_tag, 1))"
,
"ceil(top(bool_tag, 1))"
,
"ceil(top(nchar_tag, 1))"
,
"ceil(top(uint_tag, 1))"
,
"ceil(top(ubigint_tag, 1))"
,
"ceil(top(usmallint_tag, 1))"
,
"ceil(top(utinyint_tag, 1))"
,
"ceil(bottom(ts, 1))"
,
"ceil(bottom(timestamp_col, 1))"
,
"ceil(bottom(int_col, 1))"
,
"ceil(bottom(bigint_col, 1))"
,
"ceil(bottom(float_col, 1))"
,
"ceil(bottom(double_col, 1))"
,
"ceil(bottom(binary_col, 1))"
,
"ceil(bottom(smallint_col, 1))"
,
"ceil(bottom(tinyint_col, 1))"
,
"ceil(bottom(bool_col, 1))"
,
"ceil(bottom(nchar_col, 1))"
,
"ceil(bottom(uint_col, 1))"
,
"ceil(bottom(ubigint_col, 1))"
,
"ceil(bottom(usmallint_col, 1))"
,
"ceil(bottom(utinyint_col, 1))"
,
"ceil(bottom(timestamp_tag, 1))"
,
"ceil(bottom(int_tag, 1))"
,
"ceil(bottom(bigint_tag, 1))"
,
"ceil(bottom(float_tag, 1))"
,
"ceil(bottom(double_tag, 1))"
,
"ceil(bottom(binary_tag, 1))"
,
"ceil(bottom(smallint_tag, 1))"
,
"ceil(bottom(tinyint_tag, 1))"
,
"ceil(bottom(bool_tag, 1))"
,
"ceil(bottom(nchar_tag, 1))"
,
"ceil(bottom(uint_tag, 1))"
,
"ceil(bottom(ubigint_tag, 1))"
,
"ceil(bottom(usmallint_tag, 1))"
,
"ceil(bottom(utinyint_tag, 1))"
,
"ceil(percentile(ts, 1))"
,
"ceil(percentile(timestamp_col, 1))"
,
"ceil(percentile(int_col, 1))"
,
"ceil(percentile(bigint_col, 1))"
,
"ceil(percentile(float_col, 1))"
,
"ceil(percentile(double_col, 1))"
,
"ceil(percentile(binary_col, 1))"
,
"ceil(percentile(smallint_col, 1))"
,
"ceil(percentile(tinyint_col, 1))"
,
"ceil(percentile(bool_col, 1))"
,
"ceil(percentile(nchar_col, 1))"
,
"ceil(percentile(uint_col, 1))"
,
"ceil(percentile(ubigint_col, 1))"
,
"ceil(percentile(usmallint_col, 1))"
,
"ceil(percentile(utinyint_col, 1))"
,
"ceil(percentile(timestamp_tag, 1))"
,
"ceil(percentile(int_tag, 1))"
,
"ceil(percentile(bigint_tag, 1))"
,
"ceil(percentile(float_tag, 1))"
,
"ceil(percentile(double_tag, 1))"
,
"ceil(percentile(binary_tag, 1))"
,
"ceil(percentile(smallint_tag, 1))"
,
"ceil(percentile(tinyint_tag, 1))"
,
"ceil(percentile(bool_tag, 1))"
,
"ceil(percentile(nchar_tag, 1))"
,
"ceil(percentile(uint_tag, 1))"
,
"ceil(percentile(ubigint_tag, 1))"
,
"ceil(percentile(usmallint_tag, 1))"
,
"ceil(percentile(utinyint_tag, 1))"
,
"ceil(apercentile(ts, 1))"
,
"ceil(apercentile(timestamp_col, 1))"
,
"ceil(apercentile(int_col, 1))"
,
"ceil(apercentile(bigint_col, 1))"
,
"ceil(apercentile(float_col, 1))"
,
"ceil(apercentile(double_col, 1))"
,
"ceil(apercentile(binary_col, 1))"
,
"ceil(apercentile(smallint_col, 1))"
,
"ceil(apercentile(tinyint_col, 1))"
,
"ceil(apercentile(bool_col, 1))"
,
"ceil(apercentile(nchar_col, 1))"
,
"ceil(apercentile(uint_col, 1))"
,
"ceil(apercentile(ubigint_col, 1))"
,
"ceil(apercentile(usmallint_col, 1))"
,
"ceil(apercentile(utinyint_col, 1))"
,
"ceil(apercentile(timestamp_tag, 1))"
,
"ceil(apercentile(int_tag, 1))"
,
"ceil(apercentile(bigint_tag, 1))"
,
"ceil(apercentile(float_tag, 1))"
,
"ceil(apercentile(double_tag, 1))"
,
"ceil(apercentile(binary_tag, 1))"
,
"ceil(apercentile(smallint_tag, 1))"
,
"ceil(apercentile(tinyint_tag, 1))"
,
"ceil(apercentile(bool_tag, 1))"
,
"ceil(apercentile(nchar_tag, 1))"
,
"ceil(apercentile(uint_tag, 1))"
,
"ceil(apercentile(ubigint_tag, 1))"
,
"ceil(apercentile(usmallint_tag, 1))"
,
"ceil(apercentile(utinyint_tag, 1))"
,
"ceil(last_row(ts))"
,
"ceil(last_row(timestamp_col))"
,
"ceil(last_row(int_col))"
,
"ceil(last_row(bigint_col))"
,
"ceil(last_row(float_col))"
,
"ceil(last_row(double_col))"
,
"ceil(last_row(binary_col))"
,
"ceil(last_row(smallint_col))"
,
"ceil(last_row(tinyint_col))"
,
"ceil(last_row(bool_col))"
,
"ceil(last_row(nchar_col))"
,
"ceil(last_row(uint_col))"
,
"ceil(last_row(ubigint_col))"
,
"ceil(last_row(usmallint_col))"
,
"ceil(last_row(utinyint_col))"
,
"ceil(last_row(timestamp_tag))"
,
"ceil(last_row(int_tag))"
,
"ceil(last_row(bigint_tag))"
,
"ceil(last_row(float_tag))"
,
"ceil(last_row(double_tag))"
,
"ceil(last_row(binary_tag))"
,
"ceil(last_row(smallint_tag))"
,
"ceil(last_row(tinyint_tag))"
,
"ceil(last_row(bool_tag))"
,
"ceil(last_row(nchar_tag))"
,
"ceil(last_row(uint_tag))"
,
"ceil(last_row(ubigint_tag))"
,
"ceil(last_row(usmallint_tag))"
,
"ceil(last_row(utinyint_tag))"
,
"ceil(interp(ts))"
,
"ceil(interp(timestamp_col))"
,
"ceil(interp(int_col))"
,
"ceil(interp(bigint_col))"
,
"ceil(interp(float_col))"
,
"ceil(interp(double_col))"
,
"ceil(interp(binary_col))"
,
"ceil(interp(smallint_col))"
,
"ceil(interp(tinyint_col))"
,
"ceil(interp(bool_col))"
,
"ceil(interp(nchar_col))"
,
"ceil(interp(uint_col))"
,
"ceil(interp(ubigint_col))"
,
"ceil(interp(usmallint_col))"
,
"ceil(interp(utinyint_col))"
,
"ceil(interp(timestamp_tag))"
,
"ceil(interp(int_tag))"
,
"ceil(interp(bigint_tag))"
,
"ceil(interp(float_tag))"
,
"ceil(interp(double_tag))"
,
"ceil(interp(binary_tag))"
,
"ceil(interp(smallint_tag))"
,
"ceil(interp(tinyint_tag))"
,
"ceil(interp(bool_tag))"
,
"ceil(interp(nchar_tag))"
,
"ceil(interp(uint_tag))"
,
"ceil(interp(ubigint_tag))"
,
"ceil(interp(usmallint_tag))"
,
"ceil(interp(utinyint_tag))"
,
"ceil(diff(ts))"
,
"ceil(diff(timestamp_col))"
,
"ceil(diff(int_col))"
,
"ceil(diff(bigint_col))"
,
"ceil(diff(float_col))"
,
"ceil(diff(double_col))"
,
"ceil(diff(binary_col))"
,
"ceil(diff(smallint_col))"
,
"ceil(diff(tinyint_col))"
,
"ceil(diff(bool_col))"
,
"ceil(diff(nchar_col))"
,
"ceil(diff(uint_col))"
,
"ceil(diff(ubigint_col))"
,
"ceil(diff(usmallint_col))"
,
"ceil(diff(utinyint_col))"
,
"ceil(diff(timestamp_tag))"
,
"ceil(diff(int_tag))"
,
"ceil(diff(bigint_tag))"
,
"ceil(diff(float_tag))"
,
"ceil(diff(double_tag))"
,
"ceil(diff(binary_tag))"
,
"ceil(diff(smallint_tag))"
,
"ceil(diff(tinyint_tag))"
,
"ceil(diff(bool_tag))"
,
"ceil(diff(nchar_tag))"
,
"ceil(diff(uint_tag))"
,
"ceil(diff(ubigint_tag))"
,
"ceil(diff(usmallint_tag))"
,
"ceil(diff(utinyint_tag))"
,
"ceil(spread(ts))"
,
"ceil(spread(timestamp_col))"
,
"ceil(spread(int_col))"
,
"ceil(spread(bigint_col))"
,
"ceil(spread(float_col))"
,
"ceil(spread(double_col))"
,
"ceil(spread(binary_col))"
,
"ceil(spread(smallint_col))"
,
"ceil(spread(tinyint_col))"
,
"ceil(spread(bool_col))"
,
"ceil(spread(nchar_col))"
,
"ceil(spread(uint_col))"
,
"ceil(spread(ubigint_col))"
,
"ceil(spread(usmallint_col))"
,
"ceil(spread(utinyint_col))"
,
"ceil(spread(timestamp_tag))"
,
"ceil(spread(int_tag))"
,
"ceil(spread(bigint_tag))"
,
"ceil(spread(float_tag))"
,
"ceil(spread(double_tag))"
,
"ceil(spread(binary_tag))"
,
"ceil(spread(smallint_tag))"
,
"ceil(spread(tinyint_tag))"
,
"ceil(spread(bool_tag))"
,
"ceil(spread(nchar_tag))"
,
"ceil(spread(uint_tag))"
,
"ceil(spread(ubigint_tag))"
,
"ceil(spread(usmallint_tag))"
,
"ceil(spread(utinyint_tag))"
,
"ceil(derivative(ts, 1s, 0))"
,
"ceil(derivative(timestamp_col, 1s, 0))"
,
"ceil(derivative(int_col, 1s, 0))"
,
"ceil(derivative(bigint_col, 1s, 0))"
,
"ceil(derivative(float_col, 1s, 0))"
,
"ceil(derivative(double_col, 1s, 0))"
,
"ceil(derivative(binary_col, 1s, 0))"
,
"ceil(derivative(smallint_col, 1s, 0))"
,
"ceil(derivative(tinyint_col, 1s, 0))"
,
"ceil(derivative(bool_col, 1s, 0))"
,
"ceil(derivative(nchar_col, 1s, 0))"
,
"ceil(derivative(uint_col, 1s, 0))"
,
"ceil(derivative(ubigint_col, 1s, 0))"
,
"ceil(derivative(usmallint_col, 1s, 0))"
,
"ceil(derivative(utinyint_col, 1s, 0))"
,
"ceil(derivative(timestamp_tag, 1s, 0))"
,
"ceil(derivative(int_tag, 1s, 0))"
,
"ceil(derivative(bigint_tag, 1s, 0))"
,
"ceil(derivative(float_tag, 1s, 0))"
,
"ceil(derivative(double_tag, 1s, 0))"
,
"ceil(derivative(binary_tag, 1s, 0))"
,
"ceil(derivative(smallint_tag, 1s, 0))"
,
"ceil(derivative(tinyint_tag, 1s, 0))"
,
"ceil(derivative(bool_tag, 1s, 0))"
,
"ceil(derivative(nchar_tag, 1s, 0))"
,
"ceil(derivative(uint_tag, 1s, 0))"
,
"ceil(derivative(ubigint_tag, 1s, 0))"
,
"ceil(derivative(usmallint_tag, 1s, 0))"
,
"ceil(derivative(utinyint_tag, 1s, 0))"
,
"ceil(ts + ts)"
,
"ceil(timestamp_col + timestamp_col)"
,
"ceil(int_col + int_col)"
,
"ceil(bigint_col + bigint_col)"
,
"ceil(float_col + float_col)"
,
"ceil(double_col + double_col)"
,
"ceil(binary_col + binary_col)"
,
"ceil(smallint_col + smallint_col)"
,
"ceil(tinyint_col + tinyint_col)"
,
"ceil(bool_col + bool_col)"
,
"ceil(nchar_col + nchar_col)"
,
"ceil(uint_col + uint_col)"
,
"ceil(ubigint_col + ubigint_col)"
,
"ceil(usmallint_col + usmallint_col)"
,
"ceil(utinyint_col + utinyint_col)"
,
"ceil(timestamp_tag + timestamp_tag)"
,
"ceil(int_tag + int_tag)"
,
"ceil(bigint_tag + bigint_tag)"
,
"ceil(float_tag + float_tag)"
,
"ceil(double_tag + double_tag)"
,
"ceil(binary_tag + binary_tag)"
,
"ceil(smallint_tag + smallint_tag)"
,
"ceil(tinyint_tag + tinyint_tag)"
,
"ceil(bool_tag + bool_tag)"
,
"ceil(nchar_tag + nchar_tag)"
,
"ceil(uint_tag + uint_tag)"
,
"ceil(ubigint_tag + ubigint_tag)"
,
"ceil(usmallint_tag + usmallint_tag)"
,
"ceil(utinyint_tag + utinyint_tag)"
,
"ceil(ts - ts)"
,
"ceil(timestamp_col - timestamp_col)"
,
"ceil(int_col - int_col)"
,
"ceil(bigint_col - bigint_col)"
,
"ceil(float_col - float_col)"
,
"ceil(double_col - double_col)"
,
"ceil(binary_col - binary_col)"
,
"ceil(smallint_col - smallint_col)"
,
"ceil(tinyint_col - tinyint_col)"
,
"ceil(bool_col - bool_col)"
,
"ceil(nchar_col - nchar_col)"
,
"ceil(uint_col - uint_col)"
,
"ceil(ubigint_col - ubigint_col)"
,
"ceil(usmallint_col - usmallint_col)"
,
"ceil(utinyint_col - utinyint_col)"
,
"ceil(timestamp_tag - timestamp_tag)"
,
"ceil(int_tag - int_tag)"
,
"ceil(bigint_tag - bigint_tag)"
,
"ceil(float_tag - float_tag)"
,
"ceil(double_tag - double_tag)"
,
"ceil(binary_tag - binary_tag)"
,
"ceil(smallint_tag - smallint_tag)"
,
"ceil(tinyint_tag - tinyint_tag)"
,
"ceil(bool_tag - bool_tag)"
,
"ceil(nchar_tag - nchar_tag)"
,
"ceil(uint_tag - uint_tag)"
,
"ceil(ubigint_tag - ubigint_tag)"
,
"ceil(usmallint_tag - usmallint_tag)"
,
"ceil(utinyint_tag - utinyint_tag)"
,
"ceil(ts * ts)"
,
"ceil(timestamp_col * timestamp_col)"
,
"ceil(int_col * int_col)"
,
"ceil(bigint_col * bigint_col)"
,
"ceil(float_col * float_col)"
,
"ceil(double_col * double_col)"
,
"ceil(binary_col * binary_col)"
,
"ceil(smallint_col * smallint_col)"
,
"ceil(tinyint_col * tinyint_col)"
,
"ceil(bool_col * bool_col)"
,
"ceil(nchar_col * nchar_col)"
,
"ceil(uint_col * uint_col)"
,
"ceil(ubigint_col * ubigint_col)"
,
"ceil(usmallint_col * usmallint_col)"
,
"ceil(utinyint_col * utinyint_col)"
,
"ceil(timestamp_tag * timestamp_tag)"
,
"ceil(int_tag * int_tag)"
,
"ceil(bigint_tag * bigint_tag)"
,
"ceil(float_tag * float_tag)"
,
"ceil(double_tag * double_tag)"
,
"ceil(binary_tag * binary_tag)"
,
"ceil(smallint_tag * smallint_tag)"
,
"ceil(tinyint_tag * tinyint_tag)"
,
"ceil(bool_tag * bool_tag)"
,
"ceil(nchar_tag * nchar_tag)"
,
"ceil(uint_tag * uint_tag)"
,
"ceil(ubigint_tag * ubigint_tag)"
,
"ceil(usmallint_tag * usmallint_tag)"
,
"ceil(utinyint_tag * utinyint_tag)"
,
"ceil(ts / ts)"
,
"ceil(timestamp_col / timestamp_col)"
,
"ceil(int_col / int_col)"
,
"ceil(bigint_col / bigint_col)"
,
"ceil(float_col / float_col)"
,
"ceil(double_col / double_col)"
,
"ceil(binary_col / binary_col)"
,
"ceil(smallint_col / smallint_col)"
,
"ceil(tinyint_col / tinyint_col)"
,
"ceil(bool_col / bool_col)"
,
"ceil(nchar_col / nchar_col)"
,
"ceil(uint_col / uint_col)"
,
"ceil(ubigint_col / ubigint_col)"
,
"ceil(usmallint_col / usmallint_col)"
,
"ceil(utinyint_col / utinyint_col)"
,
"ceil(timestamp_tag / timestamp_tag)"
,
"ceil(int_tag / int_tag)"
,
"ceil(bigint_tag / bigint_tag)"
,
"ceil(float_tag / float_tag)"
,
"ceil(double_tag / double_tag)"
,
"ceil(binary_tag / binary_tag)"
,
"ceil(smallint_tag / smallint_tag)"
,
"ceil(tinyint_tag / tinyint_tag)"
,
"ceil(bool_tag / bool_tag)"
,
"ceil(nchar_tag / nchar_tag)"
,
"ceil(uint_tag / uint_tag)"
,
"ceil(ubigint_tag / ubigint_tag)"
,
"ceil(usmallint_tag / usmallint_tag)"
,
"ceil(utinyint_tag / utinyint_tag)"
,
"int_col, ceil(int_col), int_col"
,
"bigint_col, ceil(bigint_col), bigint_col"
,
"float_col, ceil(float_col), float_col"
,
"double_col, ceil(double_col), double_col"
,
"smallint_col, ceil(smallint_col), smallint_col"
,
"tinyint_col, ceil(tinyint_col), tinyint_col"
,
"uint_col, ceil(uint_col), uint_col"
,
"ubigint_col, ceil(ubigint_col), ubigint_col"
,
"usmallint_col, ceil(usmallint_col), usmallint_col"
,
"utinyint_col, ceil(utinyint_col), utinyint_col"
,
"count(int_col), ceil(int_col), count(int_col)"
,
"count(bigint_col), ceil(bigint_col), count(bigint_col)"
,
"count(float_col), ceil(float_col), count(float_col)"
,
"count(double_col), ceil(double_col), count(double_col)"
,
"count(smallint_col), ceil(smallint_col), count(smallint_col)"
,
"count(tinyint_col), ceil(tinyint_col), count(tinyint_col)"
,
"count(uint_col), ceil(uint_col), count(uint_col)"
,
"count(ubigint_col), ceil(ubigint_col), count(ubigint_col)"
,
"count(usmallint_col), ceil(usmallint_col), count(usmallint_col)"
,
"count(utinyint_col), ceil(utinyint_col), count(utinyint_col)"
,
"avg(int_col), ceil(int_col), avg(int_col)"
,
"avg(bigint_col), ceil(bigint_col), avg(bigint_col)"
,
"avg(float_col), ceil(float_col), avg(float_col)"
,
"avg(double_col), ceil(double_col), avg(double_col)"
,
"avg(smallint_col), ceil(smallint_col), avg(smallint_col)"
,
"avg(tinyint_col), ceil(tinyint_col), avg(tinyint_col)"
,
"avg(uint_col), ceil(uint_col), avg(uint_col)"
,
"avg(ubigint_col), ceil(ubigint_col), avg(ubigint_col)"
,
"avg(usmallint_col), ceil(usmallint_col), avg(usmallint_col)"
,
"avg(utinyint_col), ceil(utinyint_col), avg(utinyint_col)"
,
"twa(int_col), ceil(int_col), twa(int_col)"
,
"twa(bigint_col), ceil(bigint_col), twa(bigint_col)"
,
"twa(float_col), ceil(float_col), twa(float_col)"
,
"twa(double_col), ceil(double_col), twa(double_col)"
,
"twa(smallint_col), ceil(smallint_col), twa(smallint_col)"
,
"twa(tinyint_col), ceil(tinyint_col), twa(tinyint_col)"
,
"twa(uint_col), ceil(uint_col), twa(uint_col)"
,
"twa(ubigint_col), ceil(ubigint_col), twa(ubigint_col)"
,
"twa(usmallint_col), ceil(usmallint_col), twa(usmallint_col)"
,
"twa(utinyint_col), ceil(utinyint_col), twa(utinyint_col)"
,
"sum(int_col), ceil(int_col), sum(int_col)"
,
"sum(bigint_col), ceil(bigint_col), sum(bigint_col)"
,
"sum(float_col), ceil(float_col), sum(float_col)"
,
"sum(double_col), ceil(double_col), sum(double_col)"
,
"sum(smallint_col), ceil(smallint_col), sum(smallint_col)"
,
"sum(tinyint_col), ceil(tinyint_col), sum(tinyint_col)"
,
"sum(uint_col), ceil(uint_col), sum(uint_col)"
,
"sum(ubigint_col), ceil(ubigint_col), sum(ubigint_col)"
,
"sum(usmallint_col), ceil(usmallint_col), sum(usmallint_col)"
,
"sum(utinyint_col), ceil(utinyint_col), sum(utinyint_col)"
,
"stddev(int_col), ceil(int_col), stddev(int_col)"
,
"stddev(bigint_col), ceil(bigint_col), stddev(bigint_col)"
,
"stddev(float_col), ceil(float_col), stddev(float_col)"
,
"stddev(double_col), ceil(double_col), stddev(double_col)"
,
"stddev(smallint_col), ceil(smallint_col), stddev(smallint_col)"
,
"stddev(tinyint_col), ceil(tinyint_col), stddev(tinyint_col)"
,
"stddev(uint_col), ceil(uint_col), stddev(uint_col)"
,
"stddev(ubigint_col), ceil(ubigint_col), stddev(ubigint_col)"
,
"stddev(usmallint_col), ceil(usmallint_col), stddev(usmallint_col)"
,
"stddev(utinyint_col), ceil(utinyint_col), stddev(utinyint_col)"
,
"irate(int_col), ceil(int_col), irate(int_col)"
,
"irate(bigint_col), ceil(bigint_col), irate(bigint_col)"
,
"irate(float_col), ceil(float_col), irate(float_col)"
,
"irate(double_col), ceil(double_col), irate(double_col)"
,
"irate(smallint_col), ceil(smallint_col), irate(smallint_col)"
,
"irate(tinyint_col), ceil(tinyint_col), irate(tinyint_col)"
,
"irate(uint_col), ceil(uint_col), irate(uint_col)"
,
"irate(ubigint_col), ceil(ubigint_col), irate(ubigint_col)"
,
"irate(usmallint_col), ceil(usmallint_col), irate(usmallint_col)"
,
"irate(utinyint_col), ceil(utinyint_col), irate(utinyint_col)"
,
"min(int_col), ceil(int_col), min(int_col)"
,
"min(bigint_col), ceil(bigint_col), min(bigint_col)"
,
"min(float_col), ceil(float_col), min(float_col)"
,
"min(double_col), ceil(double_col), min(double_col)"
,
"min(smallint_col), ceil(smallint_col), min(smallint_col)"
,
"min(tinyint_col), ceil(tinyint_col), min(tinyint_col)"
,
"min(uint_col), ceil(uint_col), min(uint_col)"
,
"min(ubigint_col), ceil(ubigint_col), min(ubigint_col)"
,
"min(usmallint_col), ceil(usmallint_col), min(usmallint_col)"
,
"min(utinyint_col), ceil(utinyint_col), min(utinyint_col)"
,
"max(int_col), ceil(int_col), max(int_col)"
,
"max(bigint_col), ceil(bigint_col), max(bigint_col)"
,
"max(float_col), ceil(float_col), max(float_col)"
,
"max(double_col), ceil(double_col), max(double_col)"
,
"max(smallint_col), ceil(smallint_col), max(smallint_col)"
,
"max(tinyint_col), ceil(tinyint_col), max(tinyint_col)"
,
"max(uint_col), ceil(uint_col), max(uint_col)"
,
"max(ubigint_col), ceil(ubigint_col), max(ubigint_col)"
,
"max(usmallint_col), ceil(usmallint_col), max(usmallint_col)"
,
"max(utinyint_col), ceil(utinyint_col), max(utinyint_col)"
,
"first(int_col), ceil(int_col), first(int_col)"
,
"first(bigint_col), ceil(bigint_col), first(bigint_col)"
,
"first(float_col), ceil(float_col), first(float_col)"
,
"first(double_col), ceil(double_col), first(double_col)"
,
"first(smallint_col), ceil(smallint_col), first(smallint_col)"
,
"first(tinyint_col), ceil(tinyint_col), first(tinyint_col)"
,
"first(uint_col), ceil(uint_col), first(uint_col)"
,
"first(ubigint_col), ceil(ubigint_col), first(ubigint_col)"
,
"first(usmallint_col), ceil(usmallint_col), first(usmallint_col)"
,
"first(utinyint_col), ceil(utinyint_col), first(utinyint_col)"
,
"last(int_col), ceil(int_col), last(int_col)"
,
"last(bigint_col), ceil(bigint_col), last(bigint_col)"
,
"last(float_col), ceil(float_col), last(float_col)"
,
"last(double_col), ceil(double_col), last(double_col)"
,
"last(smallint_col), ceil(smallint_col), last(smallint_col)"
,
"last(tinyint_col), ceil(tinyint_col), last(tinyint_col)"
,
"last(uint_col), ceil(uint_col), last(uint_col)"
,
"last(ubigint_col), ceil(ubigint_col), last(ubigint_col)"
,
"last(usmallint_col), ceil(usmallint_col), last(usmallint_col)"
,
"last(utinyint_col), ceil(utinyint_col), last(utinyint_col)"
,
"last_row(int_col), ceil(int_col), last_row(int_col)"
,
"last_row(bigint_col), ceil(bigint_col), last_row(bigint_col)"
,
"last_row(float_col), ceil(float_col), last_row(float_col)"
,
"last_row(double_col), ceil(double_col), last_row(double_col)"
,
"last_row(smallint_col), ceil(smallint_col), last_row(smallint_col)"
,
"last_row(tinyint_col), ceil(tinyint_col), last_row(tinyint_col)"
,
"last_row(uint_col), ceil(uint_col), last_row(uint_col)"
,
"last_row(ubigint_col), ceil(ubigint_col), last_row(ubigint_col)"
,
"last_row(usmallint_col), ceil(usmallint_col), last_row(usmallint_col)"
,
"last_row(utinyint_col), ceil(utinyint_col), last_row(utinyint_col)"
,
"interp(int_col), ceil(int_col), interp(int_col)"
,
"interp(bigint_col), ceil(bigint_col), interp(bigint_col)"
,
"interp(float_col), ceil(float_col), interp(float_col)"
,
"interp(double_col), ceil(double_col), interp(double_col)"
,
"interp(smallint_col), ceil(smallint_col), interp(smallint_col)"
,
"interp(tinyint_col), ceil(tinyint_col), interp(tinyint_col)"
,
"interp(uint_col), ceil(uint_col), interp(uint_col)"
,
"interp(ubigint_col), ceil(ubigint_col), interp(ubigint_col)"
,
"interp(usmallint_col), ceil(usmallint_col), interp(usmallint_col)"
,
"interp(utinyint_col), ceil(utinyint_col), interp(utinyint_col)"
,
"diff(int_col), ceil(int_col), diff(int_col)"
,
"diff(bigint_col), ceil(bigint_col), diff(bigint_col)"
,
"diff(float_col), ceil(float_col), diff(float_col)"
,
"diff(double_col), ceil(double_col), diff(double_col)"
,
"diff(smallint_col), ceil(smallint_col), diff(smallint_col)"
,
"diff(tinyint_col), ceil(tinyint_col), diff(tinyint_col)"
,
"diff(uint_col), ceil(uint_col), diff(uint_col)"
,
"diff(ubigint_col), ceil(ubigint_col), diff(ubigint_col)"
,
"diff(usmallint_col), ceil(usmallint_col), diff(usmallint_col)"
,
"diff(utinyint_col), ceil(utinyint_col), diff(utinyint_col)"
,
"spread(int_col), ceil(int_col), spread(int_col)"
,
"spread(bigint_col), ceil(bigint_col), spread(bigint_col)"
,
"spread(float_col), ceil(float_col), spread(float_col)"
,
"spread(double_col), ceil(double_col), spread(double_col)"
,
"spread(smallint_col), ceil(smallint_col), spread(smallint_col)"
,
"spread(tinyint_col), ceil(tinyint_col), spread(tinyint_col)"
,
"spread(uint_col), ceil(uint_col), spread(uint_col)"
,
"spread(ubigint_col), ceil(ubigint_col), spread(ubigint_col)"
,
"spread(usmallint_col), ceil(usmallint_col), spread(usmallint_col)"
,
"spread(utinyint_col), ceil(utinyint_col), spread(utinyint_col)"
,
"leastsquares(int_col, 1, 1), ceil(int_col), leastsquares(int_col, 1, 1)"
,
"leastsquares(bigint_col, 1, 1), ceil(bigint_col), leastsquares(bigint_col, 1, 1)"
,
"leastsquares(float_col, 1, 1), ceil(float_col), leastsquares(float_col, 1, 1)"
,
"leastsquares(double_col, 1, 1), ceil(double_col), leastsquares(double_col, 1, 1)"
,
"leastsquares(smallint_col, 1, 1), ceil(smallint_col), leastsquares(smallint_col, 1, 1)"
,
"leastsquares(tinyint_col, 1, 1), ceil(tinyint_col), leastsquares(tinyint_col, 1, 1)"
,
"leastsquares(uint_col, 1, 1), ceil(uint_col), leastsquares(uint_col, 1, 1)"
,
"leastsquares(ubigint_col, 1, 1), ceil(ubigint_col), leastsquares(ubigint_col, 1, 1)"
,
"leastsquares(usmallint_col, 1, 1), ceil(usmallint_col), leastsquares(usmallint_col, 1, 1)"
,
"leastsquares(utinyint_col, 1, 1), ceil(utinyint_col), leastsquares(utinyint_col, 1, 1)"
,
"top(int_col, 1), ceil(int_col), top(int_col, 1)"
,
"top(bigint_col, 1), ceil(bigint_col), top(bigint_col, 1)"
,
"top(float_col, 1), ceil(float_col), top(float_col, 1)"
,
"top(double_col, 1), ceil(double_col), top(double_col, 1)"
,
"top(smallint_col, 1), ceil(smallint_col), top(smallint_col, 1)"
,
"top(tinyint_col, 1), ceil(tinyint_col), top(tinyint_col, 1)"
,
"top(uint_col, 1), ceil(uint_col), top(uint_col, 1)"
,
"top(ubigint_col, 1), ceil(ubigint_col), top(ubigint_col, 1)"
,
"top(usmallint_col, 1), ceil(usmallint_col), top(usmallint_col, 1)"
,
"top(utinyint_col, 1), ceil(utinyint_col), top(utinyint_col, 1)"
,
"bottom(int_col, 1), ceil(int_col), bottom(int_col, 1)"
,
"bottom(bigint_col, 1), ceil(bigint_col), bottom(bigint_col, 1)"
,
"bottom(float_col, 1), ceil(float_col), bottom(float_col, 1)"
,
"bottom(double_col, 1), ceil(double_col), bottom(double_col, 1)"
,
"bottom(smallint_col, 1), ceil(smallint_col), bottom(smallint_col, 1)"
,
"bottom(tinyint_col, 1), ceil(tinyint_col), bottom(tinyint_col, 1)"
,
"bottom(uint_col, 1), ceil(uint_col), bottom(uint_col, 1)"
,
"bottom(ubigint_col, 1), ceil(ubigint_col), bottom(ubigint_col, 1)"
,
"bottom(usmallint_col, 1), ceil(usmallint_col), bottom(usmallint_col, 1)"
,
"bottom(utinyint_col, 1), ceil(utinyint_col), bottom(utinyint_col, 1)"
,
"percentile(int_col, 1), ceil(int_col), percentile(int_col, 1)"
,
"percentile(bigint_col, 1), ceil(bigint_col), percentile(bigint_col, 1)"
,
"percentile(float_col, 1), ceil(float_col), percentile(float_col, 1)"
,
"percentile(double_col, 1), ceil(double_col), percentile(double_col, 1)"
,
"percentile(smallint_col, 1), ceil(smallint_col), percentile(smallint_col, 1)"
,
"percentile(tinyint_col, 1), ceil(tinyint_col), percentile(tinyint_col, 1)"
,
"percentile(uint_col, 1), ceil(uint_col), percentile(uint_col, 1)"
,
"percentile(ubigint_col, 1), ceil(ubigint_col), percentile(ubigint_col, 1)"
,
"percentile(usmallint_col, 1), ceil(usmallint_col), percentile(usmallint_col, 1)"
,
"percentile(utinyint_col, 1), ceil(utinyint_col), percentile(utinyint_col, 1)"
,
"apercentile(int_col, 1), ceil(int_col), apercentile(int_col, 1)"
,
"apercentile(bigint_col, 1), ceil(bigint_col), apercentile(bigint_col, 1)"
,
"apercentile(float_col, 1), ceil(float_col), apercentile(float_col, 1)"
,
"apercentile(double_col, 1), ceil(double_col), apercentile(double_col, 1)"
,
"apercentile(smallint_col, 1), ceil(smallint_col), apercentile(smallint_col, 1)"
,
"apercentile(tinyint_col, 1), ceil(tinyint_col), apercentile(tinyint_col, 1)"
,
"apercentile(uint_col, 1), ceil(uint_col), apercentile(uint_col, 1)"
,
"apercentile(ubigint_col, 1), ceil(ubigint_col), apercentile(ubigint_col, 1)"
,
"apercentile(usmallint_col, 1), ceil(usmallint_col), apercentile(usmallint_col, 1)"
,
"apercentile(utinyint_col, 1), ceil(utinyint_col), apercentile(utinyint_col, 1)"
,
"derivative(int_col, 1s, 0), ceil(int_col), derivative(int_col, 1s, 0)"
,
"derivative(bigint_col, 1s, 0), ceil(bigint_col), derivative(bigint_col, 1s, 0)"
,
"derivative(float_col, 1s, 0), ceil(float_col), derivative(float_col, 1s, 0)"
,
"derivative(double_col, 1s, 0), ceil(double_col), derivative(double_col, 1s, 0)"
,
"derivative(smallint_col, 1s, 0), ceil(smallint_col), derivative(smallint_col, 1s, 0)"
,
"derivative(tinyint_col, 1s, 0), ceil(tinyint_col), derivative(tinyint_col, 1s, 0)"
,
"derivative(uint_col, 1s, 0), ceil(uint_col), derivative(uint_col, 1s, 0)"
,
"derivative(ubigint_col, 1s, 0), ceil(ubigint_col), derivative(ubigint_col, 1s, 0)"
,
"derivative(usmallint_col, 1s, 0), ceil(usmallint_col), derivative(usmallint_col, 1s, 0)"
,
"derivative(utinyint_col, 1s, 0), ceil(utinyint_col), derivative(utinyint_col, 1s, 0)"
,
"1, ceil(int_col), 1"
,
"1, ceil(bigint_col), 1"
,
"1, ceil(float_col), 1"
,
"1, ceil(double_col), 1"
,
"1, ceil(smallint_col), 1"
,
"1, ceil(tinyint_col), 1"
,
"1, ceil(uint_col), 1"
,
"1, ceil(ubigint_col), 1"
,
"1, ceil(usmallint_col), 1"
,
"1, ceil(utinyint_col), 1"
,
"ceil(int_col) as anyName"
,
"ceil(bigint_col) as anyName"
,
"ceil(float_col) as anyName"
,
"ceil(double_col) as anyName"
,
"ceil(smallint_col) as anyName"
,
"ceil(tinyint_col) as anyName"
,
"ceil(uint_col) as anyName"
,
"ceil(ubigint_col) as anyName"
,
"ceil(usmallint_col) as anyName"
,
"ceil(utinyint_col) as anyName"
,
"distinct ceil(int_col)"
,
"distinct ceil(bigint_col)"
,
"distinct ceil(float_col)"
,
"distinct ceil(double_col)"
,
"distinct ceil(smallint_col)"
,
"distinct ceil(tinyint_col)"
,
"distinct ceil(uint_col)"
,
"distinct ceil(ubigint_col)"
,
"distinct ceil(usmallint_col)"
,
"distinct ceil(utinyint_col)"
,
]
simple_select_command
=
[
"ceil(super.int_col)"
,
"ceil(super.bigint_col)"
,
"ceil(super.float_col)"
,
"ceil(super.double_col)"
,
"ceil(super.smallint_col)"
,
"ceil(super.tinyint_col)"
,
"ceil(super.uint_col)"
,
"ceil(super.ubigint_col)"
,
"ceil(super.usmallint_col)"
,
"ceil(super.utinyint_col)"
,
"ceil(t1.int_col)"
,
"ceil(t1.bigint_col)"
,
"ceil(t1.float_col)"
,
"ceil(t1.double_col)"
,
"ceil(t1.smallint_col)"
,
"ceil(t1.tinyint_col)"
,
"ceil(t1.uint_col)"
,
"ceil(t1.ubigint_col)"
,
"ceil(t1.usmallint_col)"
,
"ceil(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
]
==
"ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col)"
\
or
select_command
[
s
]
==
"1, ceil(int_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(bigint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(float_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(double_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(smallint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(tinyint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(uint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(ubigint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(usmallint_col), 1"
\
or
select_command
[
s
]
==
"1, ceil(utinyint_col), 1"
\
or
select_command
[
s
]
==
"int_col, ceil(int_col), int_col"
\
or
select_command
[
s
]
==
"bigint_col, ceil(bigint_col), bigint_col"
\
or
select_command
[
s
]
==
"float_col, ceil(float_col), float_col"
\
or
select_command
[
s
]
==
"double_col, ceil(double_col), double_col"
\
or
select_command
[
s
]
==
"smallint_col, ceil(smallint_col), smallint_col"
\
or
select_command
[
s
]
==
"tinyint_col, ceil(tinyint_col), tinyint_col"
\
or
select_command
[
s
]
==
"uint_col, ceil(uint_col), uint_col"
\
or
select_command
[
s
]
==
"ubigint_col, ceil(ubigint_col), ubigint_col"
\
or
select_command
[
s
]
==
"usmallint_col, ceil(usmallint_col), usmallint_col"
\
or
select_command
[
s
]
==
"utinyint_col, ceil(utinyint_col), utinyint_col"
\
or
select_command
[
s
]
==
"ceil(int_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(bigint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(float_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(double_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(smallint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(uint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) as anyName"
\
or
select_command
[
s
]
==
"ceil(int_col) + ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col) + ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col) + ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col) + ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col) + ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) + ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col) + ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) + ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) + ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) + ceil(utinyint_col)"
\
or
select_command
[
s
]
==
"ceil(int_col) + ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col) + ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col) + ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col) + ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col) + ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) + ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col) + ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) + ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) + ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) + cei(utinyint_col)"
\
or
select_command
[
s
]
==
"ceil(int_col) - ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col) - ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col) - ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col) - ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col) - ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) - ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col) - ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) - ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) - ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) - ceil(utinyint_col)"
\
or
select_command
[
s
]
==
"ceil(int_col) * ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col) * ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col) * ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col) * ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col) * ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) * ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col) * ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) * ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) * ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) * ceil(utinyint_col)"
\
or
select_command
[
s
]
==
"ceil(int_col) / ceil(int_col)"
\
or
select_command
[
s
]
==
"ceil(bigint_col) / ceil(bigint_col)"
\
or
select_command
[
s
]
==
"ceil(float_col) / ceil(float_col)"
\
or
select_command
[
s
]
==
"ceil(double_col) / ceil(double_col)"
\
or
select_command
[
s
]
==
"ceil(smallint_col) / ceil(smallint_col)"
\
or
select_command
[
s
]
==
"ceil(tinyint_col) / ceil(tinyint_col)"
\
or
select_command
[
s
]
==
"ceil(uint_col) / ceil(uint_col)"
\
or
select_command
[
s
]
==
"ceil(ubigint_col) / ceil(ubigint_col)"
\
or
select_command
[
s
]
==
"ceil(usmallint_col) / ceil(usmallint_col)"
\
or
select_command
[
s
]
==
"ceil(utinyint_col) / ceil(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 ceil(t1.int_col) from t1"
\
or
sql
==
"select ceil(super.int_col) from super"
\
or
sql
==
"select ceil(t1.bigint_col) from t1"
\
or
sql
==
"select ceil(super.bigint_col) from super"
\
or
sql
==
"select ceil(t1.smallint_col) from t1"
\
or
sql
==
"select ceil(super.smallint_col) from super"
\
or
sql
==
"select ceil(t1.tinyint_col) from t1"
\
or
sql
==
"select ceil(super.tinyint_col) from super"
\
or
sql
==
"select ceil(t1.float_col) from t1"
\
or
sql
==
"select ceil(super.float_col) from super"
\
or
sql
==
"select ceil(t1.double_col) from t1"
\
or
sql
==
"select ceil(super.double_col) from super"
\
or
sql
==
"select ceil(t1.uint_col) from t1"
\
or
sql
==
"select ceil(super.uint_col) from super"
\
or
sql
==
"select ceil(t1.ubigint_col) from t1"
\
or
sql
==
"select ceil(super.ubigint_col) from super"
\
or
sql
==
"select ceil(t1.usmallint_col) from t1"
\
or
sql
==
"select ceil(super.usmallint_col) from super"
\
or
sql
==
"select ceil(t1.utinyint_col) from t1"
\
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
)
else
:
tdSql
.
error
(
sql
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/functions/function_floor.py
0 → 100644
浏览文件 @
41eb895d
###################################################################
# Copyright (c) 2016 by TAOS Technologies, Inc.
# All rights reserved.
#
# This file is proprietary and confidential to TAOS Technologies.
# No part of this file may be reproduced, stored, transmitted,
# disclosed or used in any form or by any means other than as
# expressly provided by the written permission from Jianhui Tao
#
###################################################################
# -*- coding: utf-8 -*-
import
sys
import
taos
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
import
numpy
as
np
import
random
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
def
randomInt
(
self
):
return
random
.
randint
(
-
2147483647
,
2147483647
)
def
randomUInt
(
self
):
return
random
.
randint
(
0
,
4294967294
)
def
randomBigint
(
self
):
return
random
.
randint
(
-
2
**
63
+
1
,
2
**
63
-
1
)
def
randomUBigint
(
self
):
return
random
.
randint
(
0
,
18446744073709551614
)
def
randomDouble
(
self
):
return
random
.
random
()
def
randomNchar
(
self
):
return
random
.
choice
(
'abcdefghijklmnopqrstuvwxyz'
)
def
randomSmallint
(
self
):
return
random
.
randint
(
-
32767
,
32767
)
def
randomUSmallint
(
self
):
return
random
.
randint
(
0
,
65534
)
def
randomTinyint
(
self
):
return
random
.
randint
(
-
127
,
127
)
def
randomUTinyint
(
self
):
return
random
.
randint
(
0
,
254
)
def
run
(
self
):
select_command
=
[
"floor(ts)"
,
"floor(timestamp_col)"
,
"floor(int_col)"
,
"floor(bigint_col)"
,
"floor(float_col)"
,
"floor(double_col)"
,
"floor(binary_col)"
,
"floor(smallint_col)"
,
"floor(tinyint_col)"
,
"floor(bool_col)"
,
"floor(nchar_col)"
,
"floor(uint_col)"
,
"floor(ubigint_col)"
,
"floor(usmallint_col)"
,
"floor(utinyint_col)"
,
"floor(timestamp_tag)"
,
"floor(int_tag)"
,
"floor(bigint_tag)"
,
"floor(float_tag)"
,
"floor(double_tag)"
,
"floor(binary_tag)"
,
"floor(smallint_tag)"
,
"floor(tinyint_tag)"
,
"floor(bool_tag)"
,
"floor(nchar_tag)"
,
"floor(uint_tag)"
,
"floor(ubigint_tag)"
,
"floor(usmallint_tag)"
,
"floor(utinyint_tag)"
,
"count(floor(int_col))"
,
"count(floor(bigint_col))"
,
"count(floor(float_col))"
,
"count(floor(double_col))"
,
"count(floor(smallint_col))"
,
"count(floor(tinyint_col))"
,
"count(floor(uint_col))"
,
"count(floor(ubigint_col))"
,
"count(floor(usmallint_col))"
,
"count(floor(utinyint_col))"
,
"avg(floor(int_col))"
,
"avg(floor(bigint_col))"
,
"avg(floor(float_col))"
,
"avg(floor(double_col))"
,
"avg(floor(smallint_col))"
,
"avg(floor(tinyint_col))"
,
"avg(floor(uint_col))"
,
"avg(floor(ubigint_col))"
,
"avg(floor(usmallint_col))"
,
"avg(floor(utinyint_col))"
,
"twa(floor(int_col))"
,
"twa(floor(bigint_col))"
,
"twa(floor(float_col))"
,
"twa(floor(double_col))"
,
"twa(floor(smallint_col))"
,
"twa(floor(tinyint_col))"
,
"twa(floor(uint_col))"
,
"twa(floor(ubigint_col))"
,
"twa(floor(usmallint_col))"
,
"twa(floor(utinyint_col))"
,
"sum(floor(int_col))"
,
"sum(floor(bigint_col))"
,
"sum(floor(float_col))"
,
"sum(floor(double_col))"
,
"sum(floor(smallint_col))"
,
"sum(floor(tinyint_col))"
,
"sum(floor(uint_col))"
,
"sum(floor(ubigint_col))"
,
"sum(floor(usmallint_col))"
,
"sum(floor(utinyint_col))"
,
"stddev(floor(int_col))"
,
"stddev(floor(bigint_col))"
,
"stddev(floor(float_col))"
,
"stddev(floor(double_col))"
,
"stddev(floor(smallint_col))"
,
"stddev(floor(tinyint_col))"
,
"stddev(floor(uint_col))"
,
"stddev(floor(ubigint_col))"
,
"stddev(floor(usmallint_col))"
,
"stddev(floor(utinyint_col))"
,
"irate(floor(int_col))"
,
"irate(floor(bigint_col))"
,
"irate(floor(float_col))"
,
"irate(floor(double_col))"
,
"irate(floor(smallint_col))"
,
"irate(floor(tinyint_col))"
,
"irate(floor(uint_col))"
,
"irate(floor(ubigint_col))"
,
"irate(floor(usmallint_col))"
,
"irate(floor(utinyint_col))"
,
"leastsquares(floor(int_col), 1, 1)"
,
"leastsquares(floor(bigint_col), 1, 1)"
,
"leastsquares(floor(float_col), 1, 1)"
,
"leastsquares(floor(double_col), 1, 1)"
,
"leastsquares(floor(smallint_col), 1, 1)"
,
"leastsquares(floor(tinyint_col), 1, 1)"
,
"leastsquares(floor(uint_col), 1, 1)"
,
"leastsquares(floor(ubigint_col), 1, 1)"
,
"leastsquares(floor(usmallint_col), 1, 1)"
,
"leastsquares(floor(utinyint_col), 1, 1)"
,
"min(floor(int_col))"
,
"min(floor(bigint_col))"
,
"min(floor(float_col))"
,
"min(floor(double_col))"
,
"min(floor(smallint_col))"
,
"min(floor(tinyint_col))"
,
"min(floor(uint_col))"
,
"min(floor(ubigint_col))"
,
"min(floor(usmallint_col))"
,
"min(floor(utinyint_col))"
,
"max(floor(int_col))"
,
"max(floor(bigint_col))"
,
"max(floor(float_col))"
,
"max(floor(double_col))"
,
"max(floor(smallint_col))"
,
"max(floor(tinyint_col))"
,
"max(floor(uint_col))"
,
"max(floor(ubigint_col))"
,
"max(floor(usmallint_col))"
,
"max(floor(utinyint_col))"
,
"first(floor(int_col))"
,
"first(floor(bigint_col))"
,
"first(floor(float_col))"
,
"first(floor(double_col))"
,
"first(floor(smallint_col))"
,
"first(floor(tinyint_col))"
,
"first(floor(uint_col))"
,
"first(floor(ubigint_col))"
,
"first(floor(usmallint_col))"
,
"first(floor(utinyint_col))"
,
"last(floor(int_col))"
,
"last(floor(bigint_col))"
,
"last(floor(float_col))"
,
"last(floor(double_col))"
,
"last(floor(smallint_col))"
,
"last(floor(tinyint_col))"
,
"last(floor(uint_col))"
,
"last(floor(ubigint_col))"
,
"last(floor(usmallint_col))"
,
"last(floor(utinyint_col))"
,
"top(floor(int_col), 1)"
,
"top(floor(bigint_col), 1)"
,
"top(floor(float_col), 1)"
,
"top(floor(double_col), 1)"
,
"top(floor(smallint_col), 1)"
,
"top(floor(tinyint_col), 1)"
,
"top(floor(uint_col), 1)"
,
"top(floor(ubigint_col), 1)"
,
"top(floor(usmallint_col), 1)"
,
"top(floor(utinyint_col), 1)"
,
"bottom(floor(int_col), 1)"
,
"bottom(floor(bigint_col), 1)"
,
"bottom(floor(float_col), 1)"
,
"bottom(floor(double_col), 1)"
,
"bottom(floor(smallint_col), 1)"
,
"bottom(floor(tinyint_col), 1)"
,
"bottom(floor(uint_col), 1)"
,
"bottom(floor(ubigint_col), 1)"
,
"bottom(floor(usmallint_col), 1)"
,
"bottom(floor(utinyint_col), 1)"
,
"percentile(floor(int_col), 20)"
,
"percentile(floor(bigint_col), 20)"
,
"percentile(floor(float_col), 20)"
,
"percentile(floor(double_col), 20)"
,
"percentile(floor(smallint_col), 20)"
,
"percentile(floor(tinyint_col), 20)"
,
"percentile(floor(uint_col), 20)"
,
"percentile(floor(ubigint_col), 20)"
,
"percentile(floor(usmallint_col), 20)"
,
"percentile(floor(utinyint_col), 20)"
,
"apercentile(floor(int_col), 20)"
,
"apercentile(floor(bigint_col), 20)"
,
"apercentile(floor(float_col), 20)"
,
"apercentile(floor(double_col), 20)"
,
"apercentile(floor(smallint_col), 20)"
,
"apercentile(floor(tinyint_col), 20)"
,
"apercentile(floor(uint_col), 20)"
,
"apercentile(floor(ubigint_col), 20)"
,
"apercentile(floor(usmallint_col), 20)"
,
"apercentile(floor(utinyint_col), 20)"
,
"last_row(floor(int_col))"
,
"last_row(floor(bigint_col))"
,
"last_row(floor(float_col))"
,
"last_row(floor(double_col))"
,
"last_row(floor(smallint_col))"
,
"last_row(floor(tinyint_col))"
,
"last_row(floor(uint_col))"
,
"last_row(floor(ubigint_col))"
,
"last_row(floor(usmallint_col))"
,
"last_row(floor(utinyint_col))"
,
"interp(floor(int_col))"
,
"interp(floor(bigint_col))"
,
"interp(floor(float_col))"
,
"interp(floor(double_col))"
,
"interp(floor(smallint_col))"
,
"interp(floor(tinyint_col))"
,
"interp(floor(uint_col))"
,
"interp(floor(ubigint_col))"
,
"interp(floor(usmallint_col))"
,
"interp(floor(utinyint_col))"
,
"diff(floor(int_col))"
,
"diff(floor(bigint_col))"
,
"diff(floor(float_col))"
,
"diff(floor(double_col))"
,
"diff(floor(smallint_col))"
,
"diff(floor(tinyint_col))"
,
"diff(floor(uint_col))"
,
"diff(floor(ubigint_col))"
,
"diff(floor(usmallint_col))"
,
"diff(floor(utinyint_col))"
,
"spread(floor(int_col))"
,
"spread(floor(bigint_col))"
,
"spread(floor(float_col))"
,
"spread(floor(double_col))"
,
"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
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/pytest/functions/function_round.py
0 → 100644
浏览文件 @
41eb895d
###################################################################
# Copyright (c) 2016 by TAOS Technologies, Inc.
# All rights reserved.
#
# This file is proprietary and confidential to TAOS Technologies.
# No part of this file may be reproduced, stored, transmitted,
# disclosed or used in any form or by any means other than as
# expressly provided by the written permission from Jianhui Tao
#
###################################################################
# -*- coding: utf-8 -*-
import
sys
import
taos
from
util.log
import
*
from
util.cases
import
*
from
util.sql
import
*
import
numpy
as
np
import
random
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
def
randomInt
(
self
):
return
random
.
randint
(
-
2147483647
,
2147483647
)
def
randomUInt
(
self
):
return
random
.
randint
(
0
,
4294967294
)
def
randomBigint
(
self
):
return
random
.
randint
(
-
2
**
63
+
1
,
2
**
63
-
1
)
def
randomUBigint
(
self
):
return
random
.
randint
(
0
,
18446744073709551614
)
def
randomDouble
(
self
):
return
random
.
random
()
def
randomNchar
(
self
):
return
random
.
choice
(
'abcdefghijklmnopqrstuvwxyz'
)
def
randomSmallint
(
self
):
return
random
.
randint
(
-
32767
,
32767
)
def
randomUSmallint
(
self
):
return
random
.
randint
(
0
,
65534
)
def
randomTinyint
(
self
):
return
random
.
randint
(
-
127
,
127
)
def
randomUTinyint
(
self
):
return
random
.
randint
(
0
,
254
)
def
run
(
self
):
select_command
=
[
"round(ts)"
,
"round(timestamp_col)"
,
"round(int_col)"
,
"round(bigint_col)"
,
"round(float_col)"
,
"round(double_col)"
,
"round(binary_col)"
,
"round(smallint_col)"
,
"round(tinyint_col)"
,
"round(bool_col)"
,
"round(nchar_col)"
,
"round(uint_col)"
,
"round(ubigint_col)"
,
"round(usmallint_col)"
,
"round(utinyint_col)"
,
"round(timestamp_tag)"
,
"round(int_tag)"
,
"round(bigint_tag)"
,
"round(float_tag)"
,
"round(double_tag)"
,
"round(binary_tag)"
,
"round(smallint_tag)"
,
"round(tinyint_tag)"
,
"round(bool_tag)"
,
"round(nchar_tag)"
,
"round(uint_tag)"
,
"round(ubigint_tag)"
,
"round(usmallint_tag)"
,
"round(utinyint_tag)"
,
"count(round(int_col))"
,
"count(round(bigint_col))"
,
"count(round(float_col))"
,
"count(round(double_col))"
,
"count(round(smallint_col))"
,
"count(round(tinyint_col))"
,
"count(round(uint_col))"
,
"count(round(ubigint_col))"
,
"count(round(usmallint_col))"
,
"count(round(utinyint_col))"
,
"avg(round(int_col))"
,
"avg(round(bigint_col))"
,
"avg(round(float_col))"
,
"avg(round(double_col))"
,
"avg(round(smallint_col))"
,
"avg(round(tinyint_col))"
,
"avg(round(uint_col))"
,
"avg(round(ubigint_col))"
,
"avg(round(usmallint_col))"
,
"avg(round(utinyint_col))"
,
"twa(round(int_col))"
,
"twa(round(bigint_col))"
,
"twa(round(float_col))"
,
"twa(round(double_col))"
,
"twa(round(smallint_col))"
,
"twa(round(tinyint_col))"
,
"twa(round(uint_col))"
,
"twa(round(ubigint_col))"
,
"twa(round(usmallint_col))"
,
"twa(round(utinyint_col))"
,
"sum(round(int_col))"
,
"sum(round(bigint_col))"
,
"sum(round(float_col))"
,
"sum(round(double_col))"
,
"sum(round(smallint_col))"
,
"sum(round(tinyint_col))"
,
"sum(round(uint_col))"
,
"sum(round(ubigint_col))"
,
"sum(round(usmallint_col))"
,
"sum(round(utinyint_col))"
,
"stddev(round(int_col))"
,
"stddev(round(bigint_col))"
,
"stddev(round(float_col))"
,
"stddev(round(double_col))"
,
"stddev(round(smallint_col))"
,
"stddev(round(tinyint_col))"
,
"stddev(round(uint_col))"
,
"stddev(round(ubigint_col))"
,
"stddev(round(usmallint_col))"
,
"stddev(round(utinyint_col))"
,
"irate(round(int_col))"
,
"irate(round(bigint_col))"
,
"irate(round(float_col))"
,
"irate(round(double_col))"
,
"irate(round(smallint_col))"
,
"irate(round(tinyint_col))"
,
"irate(round(uint_col))"
,
"irate(round(ubigint_col))"
,
"irate(round(usmallint_col))"
,
"irate(round(utinyint_col))"
,
"leastsquares(round(int_col), 1, 1)"
,
"leastsquares(round(bigint_col), 1, 1)"
,
"leastsquares(round(float_col), 1, 1)"
,
"leastsquares(round(double_col), 1, 1)"
,
"leastsquares(round(smallint_col), 1, 1)"
,
"leastsquares(round(tinyint_col), 1, 1)"
,
"leastsquares(round(uint_col), 1, 1)"
,
"leastsquares(round(ubigint_col), 1, 1)"
,
"leastsquares(round(usmallint_col), 1, 1)"
,
"leastsquares(round(utinyint_col), 1, 1)"
,
"min(round(int_col))"
,
"min(round(bigint_col))"
,
"min(round(float_col))"
,
"min(round(double_col))"
,
"min(round(smallint_col))"
,
"min(round(tinyint_col))"
,
"min(round(uint_col))"
,
"min(round(ubigint_col))"
,
"min(round(usmallint_col))"
,
"min(round(utinyint_col))"
,
"max(round(int_col))"
,
"max(round(bigint_col))"
,
"max(round(float_col))"
,
"max(round(double_col))"
,
"max(round(smallint_col))"
,
"max(round(tinyint_col))"
,
"max(round(uint_col))"
,
"max(round(ubigint_col))"
,
"max(round(usmallint_col))"
,
"max(round(utinyint_col))"
,
"first(round(int_col))"
,
"first(round(bigint_col))"
,
"first(round(float_col))"
,
"first(round(double_col))"
,
"first(round(smallint_col))"
,
"first(round(tinyint_col))"
,
"first(round(uint_col))"
,
"first(round(ubigint_col))"
,
"first(round(usmallint_col))"
,
"first(round(utinyint_col))"
,
"last(round(int_col))"
,
"last(round(bigint_col))"
,
"last(round(float_col))"
,
"last(round(double_col))"
,
"last(round(smallint_col))"
,
"last(round(tinyint_col))"
,
"last(round(uint_col))"
,
"last(round(ubigint_col))"
,
"last(round(usmallint_col))"
,
"last(round(utinyint_col))"
,
"top(round(int_col), 1)"
,
"top(round(bigint_col), 1)"
,
"top(round(float_col), 1)"
,
"top(round(double_col), 1)"
,
"top(round(smallint_col), 1)"
,
"top(round(tinyint_col), 1)"
,
"top(round(uint_col), 1)"
,
"top(round(ubigint_col), 1)"
,
"top(round(usmallint_col), 1)"
,
"top(round(utinyint_col), 1)"
,
"bottom(round(int_col), 1)"
,
"bottom(round(bigint_col), 1)"
,
"bottom(round(float_col), 1)"
,
"bottom(round(double_col), 1)"
,
"bottom(round(smallint_col), 1)"
,
"bottom(round(tinyint_col), 1)"
,
"bottom(round(uint_col), 1)"
,
"bottom(round(ubigint_col), 1)"
,
"bottom(round(usmallint_col), 1)"
,
"bottom(round(utinyint_col), 1)"
,
"percentile(round(int_col), 20)"
,
"percentile(round(bigint_col), 20)"
,
"percentile(round(float_col), 20)"
,
"percentile(round(double_col), 20)"
,
"percentile(round(smallint_col), 20)"
,
"percentile(round(tinyint_col), 20)"
,
"percentile(round(uint_col), 20)"
,
"percentile(round(ubigint_col), 20)"
,
"percentile(round(usmallint_col), 20)"
,
"percentile(round(utinyint_col), 20)"
,
"apercentile(round(int_col), 20)"
,
"apercentile(round(bigint_col), 20)"
,
"apercentile(round(float_col), 20)"
,
"apercentile(round(double_col), 20)"
,
"apercentile(round(smallint_col), 20)"
,
"apercentile(round(tinyint_col), 20)"
,
"apercentile(round(uint_col), 20)"
,
"apercentile(round(ubigint_col), 20)"
,
"apercentile(round(usmallint_col), 20)"
,
"apercentile(round(utinyint_col), 20)"
,
"last_row(round(int_col))"
,
"last_row(round(bigint_col))"
,
"last_row(round(float_col))"
,
"last_row(round(double_col))"
,
"last_row(round(smallint_col))"
,
"last_row(round(tinyint_col))"
,
"last_row(round(uint_col))"
,
"last_row(round(ubigint_col))"
,
"last_row(round(usmallint_col))"
,
"last_row(round(utinyint_col))"
,
"interp(round(int_col))"
,
"interp(round(bigint_col))"
,
"interp(round(float_col))"
,
"interp(round(double_col))"
,
"interp(round(smallint_col))"
,
"interp(round(tinyint_col))"
,
"interp(round(uint_col))"
,
"interp(round(ubigint_col))"
,
"interp(round(usmallint_col))"
,
"interp(round(utinyint_col))"
,
"diff(round(int_col))"
,
"diff(round(bigint_col))"
,
"diff(round(float_col))"
,
"diff(round(double_col))"
,
"diff(round(smallint_col))"
,
"diff(round(tinyint_col))"
,
"diff(round(uint_col))"
,
"diff(round(ubigint_col))"
,
"diff(round(usmallint_col))"
,
"diff(round(utinyint_col))"
,
"spread(round(int_col))"
,
"spread(round(bigint_col))"
,
"spread(round(float_col))"
,
"spread(round(double_col))"
,
"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
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/script/general/compute/ceil.sim
0 → 100644
浏览文件 @
41eb895d
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
$dbPrefix = m_di_db
$tbPrefix = m_di_tb
$mtPrefix = m_di_mt
$tbNum = 2
$rowNum = 5000
print =============== step1
$i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql drop database $db -x step1
step1:
sql create database $db
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 nchar(5), c9 binary(10)) TAGS (tgcol int)
$i = 0
while $i < $tbNum
$tb = $tbPrefix . $i
sql create table $tb using $mt tags( $i )
$x = 0
$y = 0
$v0 = 5000.0
$v1 = -5000.1
$v2 = 5000.2
$v3 = -5000.3
$v4 = 5000.4
$v5 = -5000.5
$v6 = 5000.6
$v7 = -5000.7
$v8 = 5000.8
$v9 = -5000.9
while $x < $rowNum
$cc = $x * 60000
$ms = 1601481600000 + $cc
$val = $v0
if $y == 0 then
$val = $v0
endi
if $y == 1 then
$val = $v1
endi
if $y == 2 then
$val = $v2
endi
if $y == 3 then
$val = $v3
endi
if $y == 4 then
$val = $v4
endi
if $y == 5 then
$val = $v5
endi
if $y == 6 then
$val = $v6
endi
if $y == 7 then
$val = $v7
endi
if $y == 8 then
$val = $v8
endi
if $y == 9 then
$val = $v9
endi
$tinyint = $x / 128
sql insert into $tb values ($ms , $x , $val , $x , $x , $tinyint , $x , $x , $x , $x )
$x = $x + 1
$y = $y + 1
if $y == 10 then
$y = 0
endi
endw
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select ceil(c2) from $tb
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data20
if $data20 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data30
if $data30 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data40
if $data40 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data50
if $data50 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data60
if $data60 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data70
if $data70 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb
print ===> $data90
if $data90 != -5000.00000 then
return -1
endi
sql select ceil(c5) from $tb
print ===> $data10
if $data10 != 0 then
return -1
endi
sql select ts, ceil(c2) from $tb
sql select c2, ceil(c2) from $tb
sql select c2, c3, ceil(c2) from $tb
sql select ts, c2, c3, ceil(c2) from $tb
sql select ceil(c2), ceil(c6) from $tb
sql select ts, ceil(c2), ceil(c6) from $tb
sql select c2, ceil(c2), ceil(c6) from $tb
sql select c2, c3, ceil(c2), ceil(c6) from $tb
sql select ts, c2, c3, ceil(c2), ceil(c6) from $tb
sql select ceil(c2), floor(c2), round(c2) from $tb
sql select ts, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, ceil(c2) from $mt
sql select c2, ceil(c2) from $mt
sql select c2, c3, ceil(c2) from $mt
sql select ts, c2, c3, ceil(c2) from $mt
sql select ceil(c2), ceil(c6) from $mt
sql select ts, ceil(c2), ceil(c6) from $mt
sql select c2, ceil(c2), ceil(c6) from $mt
sql select c2, c3, ceil(c2), ceil(c6) from $mt
sql select ts, c2, c3, ceil(c2), ceil(c6) from $mt
sql select ceil(c2), ceil(c2), round(c2) from $mt
sql select ts, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql_error select ceil(c7) from $tb
sql_error select ceil(c8) from $tb
sql_error select ceil(c9) from $tb
sql_error select ceil(ts) from $tb
sql_error select ceil(c2+2) from $tb
sql_error select ceil(c2) from $tb where ts > 0 and ts < now + 100m interval(10m)
sql_error select ceil(ceil(c2)) from $tb
sql_error select ceil(c2) from m_di_tb1 where c2 like '2%'
print =============== step3
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data20
if $data20 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data70
if $data70 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 <= 5001.00000
print ===> $data90
if $data90 != -5000.00000 then
return -1
endi
print =============== step4
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data20
if $data20 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data70
if $data70 != -5000.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select ceil(c2) from $tb where c2 >= -5001.00000
print ===> $data90
if $data90 != -5000.00000 then
return -1
endi
print =============== step5
sql select ceil(c1) as b from $tb interval(1m) -x step5
return -1
step5:
print =============== step6
sql select ceil(c1) as b from $tb where ts < now + 4m interval(1m) -x step6
return -1
step6:
print =============== clear
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/general/compute/floor.sim
0 → 100644
浏览文件 @
41eb895d
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
$dbPrefix = m_di_db
$tbPrefix = m_di_tb
$mtPrefix = m_di_mt
$tbNum = 2
$rowNum = 10000
print =============== step1
$i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql drop database $db -x step1
step1:
sql create database $db
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 nchar(5), c9 binary(10)) TAGS (tgcol int)
$i = 0
while $i < $tbNum
$tb = $tbPrefix . $i
sql create table $tb using $mt tags( $i )
$x = 0
$y = 0
$v0 = 5000.0
$v1 = -5000.1
$v2 = 5000.2
$v3 = -5000.3
$v4 = 5000.4
$v5 = -5000.5
$v6 = 5000.6
$v7 = -5000.7
$v8 = 5000.8
$v9 = -5000.9
while $x < $rowNum
$cc = $x * 60000
$ms = 1601481600000 + $cc
$val = $v0
if $y == 0 then
$val = $v0
endi
if $y == 1 then
$val = $v1
endi
if $y == 2 then
$val = $v2
endi
if $y == 3 then
$val = $v3
endi
if $y == 4 then
$val = $v4
endi
if $y == 5 then
$val = $v5
endi
if $y == 6 then
$val = $v6
endi
if $y == 7 then
$val = $v7
endi
if $y == 8 then
$val = $v8
endi
if $y == 9 then
$val = $v9
endi
$tinyint = $x / 128
sql insert into $tb values ($ms , $x , $val , $x , $x , $tinyint , $x , $x , $x , $x )
$x = $x + 1
$y = $y + 1
if $y == 10 then
$y = 0
endi
endw
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select floor(c2) from $tb
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data10
if $data10 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data30
if $data30 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data40
if $data40 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data50
if $data50 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data60
if $data60 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data80
if $data80 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
sql select floor(c5) from $tb
print ===> $data10
if $data10 != 0 then
return -1
endi
sql select ts, floor(c2) from $tb
sql select c2, floor(c2) from $tb
sql select c2, c3, floor(c2) from $tb
sql select ts, c2, c3, floor(c2) from $tb
sql select floor(c2), floor(c6) from $tb
sql select ts, floor(c2), floor(c6) from $tb
sql select c2, floor(c2), floor(c6) from $tb
sql select c2, c3, floor(c2), floor(c6) from $tb
sql select ts, c2, c3, floor(c2), floor(c6) from $tb
sql select ceil(c2), floor(c2), round(c2) from $tb
sql select ts, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, floor(c2) from $mt
sql select c2, floor(c2) from $mt
sql select c2, c3, floor(c2) from $mt
sql select ts, c2, c3, floor(c2) from $mt
sql select floor(c2), floor(c6) from $mt
sql select ts, floor(c2), floor(c6) from $mt
sql select c2, floor(c2), floor(c6) from $mt
sql select c2, c3, floor(c2), floor(c6) from $mt
sql select ts, c2, c3, floor(c2), floor(c6) from $mt
sql select ceil(c2), floor(c2), round(c2) from $mt
sql select ts, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql_error select floor(c7) from $tb
sql_error select floor(c8) from $tb
sql_error select floor(c9) from $tb
sql_error select floor(ts) from $tb
sql_error select floor(c2+2) from $tb
sql_error select floor(c2) from $tb where ts > 0 and ts < now + 100m interval(10m)
sql_error select floor(floor(c2)) from $tb
sql_error select floor(c2) from m_di_tb1 where c2 like '2%'
print =============== step3
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data10
if $data10 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data80
if $data80 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 <= 5001.00000
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
print =============== step4
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data10
if $data10 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data80
if $data80 != 5000.00000 then
return -1
endi
sql select floor(c2) from $tb where c2 >= -5001.00000
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
print =============== step5
sql select floor(c1) as b from $tb interval(1m) -x step5
return -1
step5:
print =============== step6
sql select floor(c1) as b from $tb where ts < now + 4m interval(1m) -x step6
return -1
step6:
print =============== clear
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/general/compute/round.sim
0 → 100644
浏览文件 @
41eb895d
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 1
system sh/exec.sh -n dnode1 -s start
sleep 2000
sql connect
$dbPrefix = m_di_db
$tbPrefix = m_di_tb
$mtPrefix = m_di_mt
$tbNum = 2
$rowNum = 10000
print =============== step1
$i = 0
$db = $dbPrefix . $i
$mt = $mtPrefix . $i
sql drop database $db -x step1
step1:
sql create database $db
sql use $db
sql create table $mt (ts timestamp, c1 int, c2 float, c3 bigint, c4 smallint, c5 tinyint, c6 double, c7 bool, c8 nchar(5), c9 binary(10)) TAGS (tgcol int)
$i = 0
while $i < $tbNum
$tb = $tbPrefix . $i
sql create table $tb using $mt tags( $i )
$x = 0
$y = 0
$v0 = 5000.0
$v1 = -5000.1
$v2 = 5000.2
$v3 = -5000.3
$v4 = 5000.4
$v5 = -5000.5
$v6 = 5000.6
$v7 = -5000.7
$v8 = 5000.8
$v9 = -5000.9
while $x < $rowNum
$cc = $x * 60000
$ms = 1601481600000 + $cc
$val = $v0
if $y == 0 then
$val = $v0
endi
if $y == 1 then
$val = $v1
endi
if $y == 2 then
$val = $v2
endi
if $y == 3 then
$val = $v3
endi
if $y == 4 then
$val = $v4
endi
if $y == 5 then
$val = $v5
endi
if $y == 6 then
$val = $v6
endi
if $y == 7 then
$val = $v7
endi
if $y == 8 then
$val = $v8
endi
if $y == 9 then
$val = $v9
endi
$tinyint = $x / 128
sql insert into $tb values ($ms , $x , $val , $x , $x , $tinyint , $x , $x , $x , $x )
$x = $x + 1
$y = $y + 1
if $y == 10 then
$y = 0
endi
endw
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select round(c2) from $tb
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data30
if $data30 != -5000.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data40
if $data40 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data50
if $data50 != -5001.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data60
if $data60 != 5001.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select round(c2) from $tb
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
sql select round(c5) from $tb
print ===> $data10
if $data10 != 0 then
return -1
endi
sql select ts, round(c2) from $tb
sql select c2, round(c2) from $tb
sql select c2, c3, round(c2) from $tb
sql select ts, c2, c3, round(c2) from $tb
sql select round(c2), round(c6) from $tb
sql select ts, round(c2), round(c6) from $tb
sql select c2, round(c2), round(c6) from $tb
sql select c2, c3, round(c2), round(c6) from $tb
sql select ts, c2, c3, round(c2), round(c6) from $tb
sql select ceil(c2), floor(c2), round(c2) from $tb
sql select ts, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, ceil(c2), floor(c2), round(c2) from $tb
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $tb
sql select ts, round(c2) from $mt
sql select c2, round(c2) from $mt
sql select c2, c3, round(c2) from $mt
sql select ts, c2, c3, round(c2) from $mt
sql select round(c2), round(c6) from $mt
sql select ts, round(c2), round(c6) from $mt
sql select c2, round(c2), round(c6) from $mt
sql select c2, c3, round(c2), round(c6) from $mt
sql select ts, c2, c3, round(c2), round(c6) from $mt
sql select ceil(c2), floor(c2), round(c2) from $mt
sql select ts, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, ceil(c2), floor(c2), round(c2) from $mt
sql select c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql select ts, c2, c3, ceil(c2), floor(c2), round(c2) from $mt
sql_error select round(c7) from $tb
sql_error select round(c8) from $tb
sql_error select round(c9) from $tb
sql_error select round(ts) from $tb
sql_error select round(c2+2) from $tb
sql_error select round(c2) from $tb where ts > 0 and ts < now + 100m interval(10m)
sql_error select round(round(c2)) from $tb
sql_error select round(c2) from m_di_tb1 where c2 like '2%'
print =============== step3
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select round(c2) from $tb where c2 <= 5001.00000
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
print =============== step4
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data00
if $data00 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data10
if $data10 != -5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data20
if $data20 != 5000.00000 then
return -1
endi
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data70
if $data70 != -5001.00000 then
return -1
endi
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data80
if $data80 != 5001.00000 then
return -1
endi
sql select round(c2) from $tb where c2 >= -5001.00000
print ===> $data90
if $data90 != -5001.00000 then
return -1
endi
print =============== step5
sql select round(c1) as b from $tb interval(1m) -x step5
return -1
step5:
print =============== step6
sql select round(c1) as b from $tb where ts < now + 4m interval(1m) -x step6
return -1
step6:
print =============== clear
system sh/exec.sh -n dnode1 -s stop -x SIGINT
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录