提交 ab390ece 编写于 作者: H Haojun Liao

fix(query): add a null ptr check

上级 13feb7da
......@@ -4678,10 +4678,10 @@ _error:
int32_t getTableScanOrder(SOperatorInfo* pOperator) {
if (pOperator->operatorType != QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN) {
if (pOperator->pDownstream[0] != NULL) {
return getTableScanOrder(pOperator->pDownstream[0]);
} else {
if (pOperator->pDownstream == NULL || pOperator->pDownstream[0] == NULL) {
return TSDB_ORDER_ASC;
} else {
return getTableScanOrder(pOperator->pDownstream[0]);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册