Skip to content

Commit

Permalink
Fix the wrong reference comparison in PinotEvaluateLiteralRule (#11567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Jiang authored Sep 11, 2023
1 parent 722f093 commit 032a5cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static LogicalProject constructNewProject(LogicalProject oldProject, Log
RexNode newNode = newProjects.get(i);
// Need to cast the result to the original type if the literal type is changed, e.g. VARCHAR literal is typed as
// CHAR(STRING_LENGTH) in Calcite, but we need to cast it back to VARCHAR.
if (oldNode.getType() != newNode.getType()) {
if (!oldNode.getType().equals(newNode.getType())) {
needCast = true;
newNode = rexBuilder.makeCast(oldNode.getType(), newNode, true);
}
Expand Down

0 comments on commit 032a5cc

Please sign in to comment.