56
56
public class TablesNamesFinder implements SelectVisitor , FromItemVisitor , ExpressionVisitor , ItemsListVisitor , SelectItemVisitor , StatementVisitor {
57
57
58
58
private static final String NOT_SUPPORTED_YET = "Not supported yet." ;
59
- private List <String > tables ;
59
+ private List <String > tables ;
60
60
/**
61
61
* There are special names, that are not table names but are parsed as
62
62
* tables. These names are collected here and are not included in the tables
@@ -228,6 +228,10 @@ public void visit(EqualsTo equalsTo) {
228
228
229
229
@ Override
230
230
public void visit (Function function ) {
231
+ ExpressionList exprList = function .getParameters ();
232
+ if (exprList != null ) {
233
+ visit (exprList );
234
+ }
231
235
}
232
236
233
237
@ Override
@@ -326,7 +330,6 @@ public void visit(ExpressionList expressionList) {
326
330
for (Expression expression : expressionList .getExpressions ()) {
327
331
expression .accept (this );
328
332
}
329
-
330
333
}
331
334
332
335
@ Override
@@ -576,17 +579,17 @@ public void visit(Replace replace) {
576
579
577
580
@ Override
578
581
public void visit (Drop drop ) {
579
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
582
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
580
583
}
581
584
582
585
@ Override
583
586
public void visit (Truncate truncate ) {
584
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
587
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
585
588
}
586
589
587
590
@ Override
588
591
public void visit (CreateIndex createIndex ) {
589
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
592
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
590
593
}
591
594
592
595
@ Override
@@ -599,12 +602,12 @@ public void visit(CreateTable create) {
599
602
600
603
@ Override
601
604
public void visit (CreateView createView ) {
602
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
605
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
603
606
}
604
607
605
608
@ Override
606
609
public void visit (Alter alter ) {
607
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
610
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
608
611
}
609
612
610
613
@ Override
@@ -619,7 +622,7 @@ public void visit(Execute execute) {
619
622
620
623
@ Override
621
624
public void visit (SetStatement set ) {
622
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
625
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
623
626
}
624
627
625
628
@ Override
@@ -649,7 +652,7 @@ public void visit(TableFunction valuesList) {
649
652
650
653
@ Override
651
654
public void visit (AlterView alterView ) {
652
- throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
655
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET );
653
656
}
654
657
655
658
@ Override
0 commit comments