This commit is contained in:
Ganlin Zhao 2023-06-15 16:31:36 +08:00
parent 99ae96daf6
commit 4e2eeed44c
1 changed files with 3 additions and 3 deletions

View File

@ -3055,9 +3055,9 @@ static bool needFill(SNode* pNode) {
static int32_t convertFillValue(STranslateContext* pCxt, SDataType dt, SNodeList* pValues, int32_t index) {
SListCell* pCell = nodesListGetCell(pValues, index);
//if (dataTypeEqual(&dt, &((SExprNode*)pCell->pNode)->resType)) {
// return TSDB_CODE_SUCCESS;
//}
if (dataTypeEqual(&dt, &((SExprNode*)pCell->pNode)->resType) && (QUERY_NODE_VALUE == nodeType(pCell->pNode))) {
return TSDB_CODE_SUCCESS;
}
SNode* pCastFunc = NULL;
int32_t code = createCastFunc(pCxt, pCell->pNode, dt, &pCastFunc);
if (TSDB_CODE_SUCCESS == code) {