public void dealOneEqualCon(SqlNode sqlNode, String sideTableName) {
        if (!SqlKind.COMPARISON.contains(sqlNode.getKind())) {
            throw new RuntimeException("not compare operator.");
        }

        SqlNode leftNode = ((SqlBasicCall) sqlNode).getOperands()[0];
        SqlNode rightNode = ((SqlBasicCall) sqlNode).getOperands()[1];
        if (leftNode.getKind() == SqlKind.LITERAL) {
            evalConstantEquation(
                (SqlLiteral) leftNode,
                (SqlIdentifier) rightNode,
                sqlNode.getKind()
            );
        } else if (rightNode.getKind() == SqlKind.LITERAL) {
            evalConstantEquation(
                (SqlLiteral) rightNode,
                (SqlIdentifier) leftNode,
                sqlNode.getKind()
            );
        } else {
            SqlIdentifier left = (SqlIdentifier) leftNode;
            SqlIdentifier right = (SqlIdentifier) rightNode;
            evalEquation(left, right, sideTableName, sqlNode);
        }
    }
Reason:
Date: 2018/9/18
Company: www.dtstack.com
@author xuchao
core/src/main/java/com/dtstack/flink/sql/side/BaseSideInfo.java