Skip to content

Commit

Permalink
Handle select in ExpressionVisitorAdapter (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaraam authored Feb 23, 2024
1 parent c412d6a commit 424a852
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,7 @@ public void visit(Column column) {

@Override
public void visit(ParenthesedSelect selectBody) {
if (selectVisitor != null) {
if (selectBody.getWithItemsList() != null) {
for (WithItem item : selectBody.getWithItemsList()) {
item.accept(selectVisitor);
}
}
selectBody.accept(selectVisitor);
}
visit((Select) selectBody);
if (selectBody.getPivot() != null) {
selectBody.getPivot().accept(this);
}
Expand Down Expand Up @@ -663,7 +656,14 @@ public void visit(GeometryDistance geometryDistance) {

@Override
public void visit(Select selectBody) {

if (selectVisitor != null) {
if (selectBody.getWithItemsList() != null) {
for (WithItem item : selectBody.getWithItemsList()) {
item.accept(selectVisitor);
}
}
selectBody.accept(selectVisitor);
}
}

@Override
Expand Down

0 comments on commit 424a852

Please sign in to comment.