[TD-3086]<feature> tag support timestamp

This commit is contained in:
yihaoDeng 2021-06-16 10:11:14 +08:00
parent 1031e421aa
commit 85f75ffac9
1 changed files with 2 additions and 1 deletions

View File

@ -8017,7 +8017,8 @@ int32_t exprTreeFromSqlExpr(SSqlCmd* pCmd, tExprNode **pExpr, const tSqlExpr* pS
if (pCols != NULL) {
SColIndex* idx = taosArrayGet(pCols, 0);
SSchema* pSchema = tscGetTableColumnSchema(pTableMeta, idx->colIndex);
if (pSchema != NULL && pSchema->type == TSDB_DATA_TYPE_TIMESTAMP) {
// convert time by precision
if (pSchema != NULL && TSDB_DATA_TYPE_TIMESTAMP == pSchema->type && TSDB_DATA_TYPE_BINARY == (*pExpr)->pVal->nType) {
ret = setColumnFilterInfoForTimestamp(pCmd, pQueryInfo, (*pExpr)->pVal);
}
}