5656public class TablesNamesFinder implements SelectVisitor , FromItemVisitor , ExpressionVisitor , ItemsListVisitor , SelectItemVisitor , StatementVisitor {
5757
5858 private static final String NOT_SUPPORTED_YET = "Not supported yet." ;
59- private List <String > tables ;
59+ private List <String > tables ;
6060 /**
6161 * There are special names, that are not table names but are parsed as
6262 * tables. These names are collected here and are not included in the tables
@@ -228,6 +228,10 @@ public void visit(EqualsTo equalsTo) {
228228
229229 @ Override
230230 public void visit (Function function ) {
231+ ExpressionList exprList = function .getParameters ();
232+ if (exprList != null ) {
233+ visit (exprList );
234+ }
231235 }
232236
233237 @ Override
@@ -326,7 +330,6 @@ public void visit(ExpressionList expressionList) {
326330 for (Expression expression : expressionList .getExpressions ()) {
327331 expression .accept (this );
328332 }
329-
330333 }
331334
332335 @ Override
@@ -576,17 +579,17 @@ public void visit(Replace replace) {
576579
577580 @ Override
578581 public void visit (Drop drop ) {
579- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
582+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
580583 }
581584
582585 @ Override
583586 public void visit (Truncate truncate ) {
584- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
587+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
585588 }
586589
587590 @ Override
588591 public void visit (CreateIndex createIndex ) {
589- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
592+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
590593 }
591594
592595 @ Override
@@ -599,12 +602,12 @@ public void visit(CreateTable create) {
599602
600603 @ Override
601604 public void visit (CreateView createView ) {
602- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
605+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
603606 }
604607
605608 @ Override
606609 public void visit (Alter alter ) {
607- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
610+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
608611 }
609612
610613 @ Override
@@ -619,7 +622,7 @@ public void visit(Execute execute) {
619622
620623 @ Override
621624 public void visit (SetStatement set ) {
622- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
625+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
623626 }
624627
625628 @ Override
@@ -649,7 +652,7 @@ public void visit(TableFunction valuesList) {
649652
650653 @ Override
651654 public void visit (AlterView alterView ) {
652- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
655+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
653656 }
654657
655658 @ Override
0 commit comments