Skip to content

Commit

Permalink
improved sql parser odps support
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Nov 24, 2024
1 parent 7e34607 commit efb0d6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ protected void accept0(SQLASTVisitor visitor) {
if (select != null) {
select.accept(visitor);
}
if (pivot != null) {
pivot.accept(visitor);
}
}
visitor.endVisit(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public boolean visit(OdpsReadStatement x) {

protected void printMethodOwner(SQLExpr owner) {
owner.accept(this);
if (owner instanceof SQLMethodInvokeExpr) {
if (owner instanceof SQLMethodInvokeExpr || owner instanceof SQLPropertyExpr) {
print('.');
} else {
print(':');
Expand Down

0 comments on commit efb0d6d

Please sign in to comment.