fix: add restriction
This commit is contained in:
parent
c6555c3b37
commit
a51de5cc93
|
@ -764,7 +764,8 @@ static bool pushDownCondOptIsTagEqualCond(SJoinLogicNode* pJoin, SNode* pCond) {
|
||||||
}
|
}
|
||||||
SColumnNode* pLeft = (SColumnNode*)(pOper->pLeft);
|
SColumnNode* pLeft = (SColumnNode*)(pOper->pLeft);
|
||||||
SColumnNode* pRight = (SColumnNode*)(pOper->pRight);
|
SColumnNode* pRight = (SColumnNode*)(pOper->pRight);
|
||||||
if (pLeft->node.resType.type != pRight->node.resType.type) {
|
//TODO: add cast to operator and remove this restriction of optimization
|
||||||
|
if (pLeft->node.resType.type != pRight->node.resType.type || pLeft->node.resType.bytes != pRight->node.resType.bytes) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
SNodeList* pLeftCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 0))->pTargets;
|
SNodeList* pLeftCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 0))->pTargets;
|
||||||
|
|
Loading…
Reference in New Issue