Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tartarus0zm committed Mar 7, 2022
1 parent 6bf2b30 commit 978ddff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/apache/calcite/sql/SqlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,8 @@ public static void validateCharset(ByteString value, Charset charset) {
SqlCall lateralTableRef = ((SqlCall) node).operand(0);
if (lateralTableRef.getKind() == SqlKind.AS) {
return lateralTableRef.operand(0);
} else {
return lateralTableRef;
}
}
return node;
Expand Down

0 comments on commit 978ddff

Please sign in to comment.