-
Notifications
You must be signed in to change notification settings - Fork 2
/
SparkSQLVisitor.py
1388 lines (834 loc) · 50.3 KB
/
SparkSQLVisitor.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Generated from SparkSQL/SparkSQL.g4 by ANTLR 4.8
from antlr4 import *
if __name__ is not None and "." in __name__:
from .SparkSQLParser import SparkSQLParser
else:
from SparkSQLParser import SparkSQLParser
# This class defines a complete generic visitor for a parse tree produced by SparkSQLParser.
class SparkSQLVisitor(ParseTreeVisitor):
# Visit a parse tree produced by SparkSQLParser#singleStatement.
def visitSingleStatement(self, ctx:SparkSQLParser.SingleStatementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleExpression.
def visitSingleExpression(self, ctx:SparkSQLParser.SingleExpressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleTableIdentifier.
def visitSingleTableIdentifier(self, ctx:SparkSQLParser.SingleTableIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleMultipartIdentifier.
def visitSingleMultipartIdentifier(self, ctx:SparkSQLParser.SingleMultipartIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleFunctionIdentifier.
def visitSingleFunctionIdentifier(self, ctx:SparkSQLParser.SingleFunctionIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleDataType.
def visitSingleDataType(self, ctx:SparkSQLParser.SingleDataTypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleTableSchema.
def visitSingleTableSchema(self, ctx:SparkSQLParser.SingleTableSchemaContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#statementDefault.
def visitStatementDefault(self, ctx:SparkSQLParser.StatementDefaultContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dmlStatement.
def visitDmlStatement(self, ctx:SparkSQLParser.DmlStatementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#use.
def visitUse(self, ctx:SparkSQLParser.UseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createNamespace.
def visitCreateNamespace(self, ctx:SparkSQLParser.CreateNamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setNamespaceProperties.
def visitSetNamespaceProperties(self, ctx:SparkSQLParser.SetNamespacePropertiesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setNamespaceLocation.
def visitSetNamespaceLocation(self, ctx:SparkSQLParser.SetNamespaceLocationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropNamespace.
def visitDropNamespace(self, ctx:SparkSQLParser.DropNamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showNamespaces.
def visitShowNamespaces(self, ctx:SparkSQLParser.ShowNamespacesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createTable.
def visitCreateTable(self, ctx:SparkSQLParser.CreateTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createHiveTable.
def visitCreateHiveTable(self, ctx:SparkSQLParser.CreateHiveTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createTableLike.
def visitCreateTableLike(self, ctx:SparkSQLParser.CreateTableLikeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#replaceTable.
def visitReplaceTable(self, ctx:SparkSQLParser.ReplaceTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#analyze.
def visitAnalyze(self, ctx:SparkSQLParser.AnalyzeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#addTableColumns.
def visitAddTableColumns(self, ctx:SparkSQLParser.AddTableColumnsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#renameTableColumn.
def visitRenameTableColumn(self, ctx:SparkSQLParser.RenameTableColumnContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropTableColumns.
def visitDropTableColumns(self, ctx:SparkSQLParser.DropTableColumnsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#renameTable.
def visitRenameTable(self, ctx:SparkSQLParser.RenameTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setTableProperties.
def visitSetTableProperties(self, ctx:SparkSQLParser.SetTablePropertiesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#unsetTableProperties.
def visitUnsetTableProperties(self, ctx:SparkSQLParser.UnsetTablePropertiesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#alterTableAlterColumn.
def visitAlterTableAlterColumn(self, ctx:SparkSQLParser.AlterTableAlterColumnContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#hiveChangeColumn.
def visitHiveChangeColumn(self, ctx:SparkSQLParser.HiveChangeColumnContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#hiveReplaceColumns.
def visitHiveReplaceColumns(self, ctx:SparkSQLParser.HiveReplaceColumnsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setTableSerDe.
def visitSetTableSerDe(self, ctx:SparkSQLParser.SetTableSerDeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#addTablePartition.
def visitAddTablePartition(self, ctx:SparkSQLParser.AddTablePartitionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#renameTablePartition.
def visitRenameTablePartition(self, ctx:SparkSQLParser.RenameTablePartitionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropTablePartitions.
def visitDropTablePartitions(self, ctx:SparkSQLParser.DropTablePartitionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setTableLocation.
def visitSetTableLocation(self, ctx:SparkSQLParser.SetTableLocationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#recoverPartitions.
def visitRecoverPartitions(self, ctx:SparkSQLParser.RecoverPartitionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropTable.
def visitDropTable(self, ctx:SparkSQLParser.DropTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropView.
def visitDropView(self, ctx:SparkSQLParser.DropViewContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createView.
def visitCreateView(self, ctx:SparkSQLParser.CreateViewContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createTempViewUsing.
def visitCreateTempViewUsing(self, ctx:SparkSQLParser.CreateTempViewUsingContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#alterViewQuery.
def visitAlterViewQuery(self, ctx:SparkSQLParser.AlterViewQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createFunction.
def visitCreateFunction(self, ctx:SparkSQLParser.CreateFunctionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#dropFunction.
def visitDropFunction(self, ctx:SparkSQLParser.DropFunctionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#explain.
def visitExplain(self, ctx:SparkSQLParser.ExplainContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showTables.
def visitShowTables(self, ctx:SparkSQLParser.ShowTablesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showTable.
def visitShowTable(self, ctx:SparkSQLParser.ShowTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showTblProperties.
def visitShowTblProperties(self, ctx:SparkSQLParser.ShowTblPropertiesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showColumns.
def visitShowColumns(self, ctx:SparkSQLParser.ShowColumnsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showViews.
def visitShowViews(self, ctx:SparkSQLParser.ShowViewsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showPartitions.
def visitShowPartitions(self, ctx:SparkSQLParser.ShowPartitionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showFunctions.
def visitShowFunctions(self, ctx:SparkSQLParser.ShowFunctionsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showCreateTable.
def visitShowCreateTable(self, ctx:SparkSQLParser.ShowCreateTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#showCurrentNamespace.
def visitShowCurrentNamespace(self, ctx:SparkSQLParser.ShowCurrentNamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeFunction.
def visitDescribeFunction(self, ctx:SparkSQLParser.DescribeFunctionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeNamespace.
def visitDescribeNamespace(self, ctx:SparkSQLParser.DescribeNamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeRelation.
def visitDescribeRelation(self, ctx:SparkSQLParser.DescribeRelationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeQuery.
def visitDescribeQuery(self, ctx:SparkSQLParser.DescribeQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#commentNamespace.
def visitCommentNamespace(self, ctx:SparkSQLParser.CommentNamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#commentTable.
def visitCommentTable(self, ctx:SparkSQLParser.CommentTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#refreshTable.
def visitRefreshTable(self, ctx:SparkSQLParser.RefreshTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#refreshFunction.
def visitRefreshFunction(self, ctx:SparkSQLParser.RefreshFunctionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#refreshResource.
def visitRefreshResource(self, ctx:SparkSQLParser.RefreshResourceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#cacheTable.
def visitCacheTable(self, ctx:SparkSQLParser.CacheTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#uncacheTable.
def visitUncacheTable(self, ctx:SparkSQLParser.UncacheTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#clearCache.
def visitClearCache(self, ctx:SparkSQLParser.ClearCacheContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#loadData.
def visitLoadData(self, ctx:SparkSQLParser.LoadDataContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#truncateTable.
def visitTruncateTable(self, ctx:SparkSQLParser.TruncateTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#repairTable.
def visitRepairTable(self, ctx:SparkSQLParser.RepairTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#manageResource.
def visitManageResource(self, ctx:SparkSQLParser.ManageResourceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#failNativeCommand.
def visitFailNativeCommand(self, ctx:SparkSQLParser.FailNativeCommandContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setTimeZone.
def visitSetTimeZone(self, ctx:SparkSQLParser.SetTimeZoneContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setQuotedConfiguration.
def visitSetQuotedConfiguration(self, ctx:SparkSQLParser.SetQuotedConfigurationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setConfiguration.
def visitSetConfiguration(self, ctx:SparkSQLParser.SetConfigurationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#resetQuotedConfiguration.
def visitResetQuotedConfiguration(self, ctx:SparkSQLParser.ResetQuotedConfigurationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#resetConfiguration.
def visitResetConfiguration(self, ctx:SparkSQLParser.ResetConfigurationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#configKey.
def visitConfigKey(self, ctx:SparkSQLParser.ConfigKeyContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#unsupportedHiveNativeCommands.
def visitUnsupportedHiveNativeCommands(self, ctx:SparkSQLParser.UnsupportedHiveNativeCommandsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createTableHeader.
def visitCreateTableHeader(self, ctx:SparkSQLParser.CreateTableHeaderContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#replaceTableHeader.
def visitReplaceTableHeader(self, ctx:SparkSQLParser.ReplaceTableHeaderContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#bucketSpec.
def visitBucketSpec(self, ctx:SparkSQLParser.BucketSpecContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#skewSpec.
def visitSkewSpec(self, ctx:SparkSQLParser.SkewSpecContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#locationSpec.
def visitLocationSpec(self, ctx:SparkSQLParser.LocationSpecContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#commentSpec.
def visitCommentSpec(self, ctx:SparkSQLParser.CommentSpecContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#query.
def visitQuery(self, ctx:SparkSQLParser.QueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#insertOverwriteTable.
def visitInsertOverwriteTable(self, ctx:SparkSQLParser.InsertOverwriteTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#insertIntoTable.
def visitInsertIntoTable(self, ctx:SparkSQLParser.InsertIntoTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#insertOverwriteHiveDir.
def visitInsertOverwriteHiveDir(self, ctx:SparkSQLParser.InsertOverwriteHiveDirContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#insertOverwriteDir.
def visitInsertOverwriteDir(self, ctx:SparkSQLParser.InsertOverwriteDirContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#partitionSpecLocation.
def visitPartitionSpecLocation(self, ctx:SparkSQLParser.PartitionSpecLocationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#partitionSpec.
def visitPartitionSpec(self, ctx:SparkSQLParser.PartitionSpecContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#partitionVal.
def visitPartitionVal(self, ctx:SparkSQLParser.PartitionValContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#namespace.
def visitNamespace(self, ctx:SparkSQLParser.NamespaceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeFuncName.
def visitDescribeFuncName(self, ctx:SparkSQLParser.DescribeFuncNameContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#describeColName.
def visitDescribeColName(self, ctx:SparkSQLParser.DescribeColNameContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#ctes.
def visitCtes(self, ctx:SparkSQLParser.CtesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#namedQuery.
def visitNamedQuery(self, ctx:SparkSQLParser.NamedQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableProvider.
def visitTableProvider(self, ctx:SparkSQLParser.TableProviderContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createTableClauses.
def visitCreateTableClauses(self, ctx:SparkSQLParser.CreateTableClausesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tablePropertyList.
def visitTablePropertyList(self, ctx:SparkSQLParser.TablePropertyListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableProperty.
def visitTableProperty(self, ctx:SparkSQLParser.TablePropertyContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tablePropertyKey.
def visitTablePropertyKey(self, ctx:SparkSQLParser.TablePropertyKeyContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tablePropertyValue.
def visitTablePropertyValue(self, ctx:SparkSQLParser.TablePropertyValueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#constantList.
def visitConstantList(self, ctx:SparkSQLParser.ConstantListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#nestedConstantList.
def visitNestedConstantList(self, ctx:SparkSQLParser.NestedConstantListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#createFileFormat.
def visitCreateFileFormat(self, ctx:SparkSQLParser.CreateFileFormatContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableFileFormat.
def visitTableFileFormat(self, ctx:SparkSQLParser.TableFileFormatContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#genericFileFormat.
def visitGenericFileFormat(self, ctx:SparkSQLParser.GenericFileFormatContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#storageHandler.
def visitStorageHandler(self, ctx:SparkSQLParser.StorageHandlerContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#resource.
def visitResource(self, ctx:SparkSQLParser.ResourceContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#singleInsertQuery.
def visitSingleInsertQuery(self, ctx:SparkSQLParser.SingleInsertQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#multiInsertQuery.
def visitMultiInsertQuery(self, ctx:SparkSQLParser.MultiInsertQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#deleteFromTable.
def visitDeleteFromTable(self, ctx:SparkSQLParser.DeleteFromTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#updateTable.
def visitUpdateTable(self, ctx:SparkSQLParser.UpdateTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#mergeIntoTable.
def visitMergeIntoTable(self, ctx:SparkSQLParser.MergeIntoTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#queryOrganization.
def visitQueryOrganization(self, ctx:SparkSQLParser.QueryOrganizationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#multiInsertQueryBody.
def visitMultiInsertQueryBody(self, ctx:SparkSQLParser.MultiInsertQueryBodyContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#queryTermDefault.
def visitQueryTermDefault(self, ctx:SparkSQLParser.QueryTermDefaultContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setOperation.
def visitSetOperation(self, ctx:SparkSQLParser.SetOperationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#queryPrimaryDefault.
def visitQueryPrimaryDefault(self, ctx:SparkSQLParser.QueryPrimaryDefaultContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#fromStmt.
def visitFromStmt(self, ctx:SparkSQLParser.FromStmtContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#table.
def visitTable(self, ctx:SparkSQLParser.TableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#inlineTableDefault1.
def visitInlineTableDefault1(self, ctx:SparkSQLParser.InlineTableDefault1Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#subquery.
def visitSubquery(self, ctx:SparkSQLParser.SubqueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sortItem.
def visitSortItem(self, ctx:SparkSQLParser.SortItemContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#fromStatement.
def visitFromStatement(self, ctx:SparkSQLParser.FromStatementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#fromStatementBody.
def visitFromStatementBody(self, ctx:SparkSQLParser.FromStatementBodyContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#transformQuerySpecification.
def visitTransformQuerySpecification(self, ctx:SparkSQLParser.TransformQuerySpecificationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#regularQuerySpecification.
def visitRegularQuerySpecification(self, ctx:SparkSQLParser.RegularQuerySpecificationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#transformClause.
def visitTransformClause(self, ctx:SparkSQLParser.TransformClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#selectClause.
def visitSelectClause(self, ctx:SparkSQLParser.SelectClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setClause.
def visitSetClause(self, ctx:SparkSQLParser.SetClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#matchedClause.
def visitMatchedClause(self, ctx:SparkSQLParser.MatchedClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#notMatchedClause.
def visitNotMatchedClause(self, ctx:SparkSQLParser.NotMatchedClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#matchedAction.
def visitMatchedAction(self, ctx:SparkSQLParser.MatchedActionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#notMatchedAction.
def visitNotMatchedAction(self, ctx:SparkSQLParser.NotMatchedActionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#assignmentList.
def visitAssignmentList(self, ctx:SparkSQLParser.AssignmentListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#assignment.
def visitAssignment(self, ctx:SparkSQLParser.AssignmentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#whereClause.
def visitWhereClause(self, ctx:SparkSQLParser.WhereClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#havingClause.
def visitHavingClause(self, ctx:SparkSQLParser.HavingClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#hint.
def visitHint(self, ctx:SparkSQLParser.HintContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#hintStatement.
def visitHintStatement(self, ctx:SparkSQLParser.HintStatementContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#fromClause.
def visitFromClause(self, ctx:SparkSQLParser.FromClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#aggregationClause.
def visitAggregationClause(self, ctx:SparkSQLParser.AggregationClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#groupingSet.
def visitGroupingSet(self, ctx:SparkSQLParser.GroupingSetContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#pivotClause.
def visitPivotClause(self, ctx:SparkSQLParser.PivotClauseContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#pivotColumn.
def visitPivotColumn(self, ctx:SparkSQLParser.PivotColumnContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#pivotValue.
def visitPivotValue(self, ctx:SparkSQLParser.PivotValueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#lateralView.
def visitLateralView(self, ctx:SparkSQLParser.LateralViewContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#setQuantifier.
def visitSetQuantifier(self, ctx:SparkSQLParser.SetQuantifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#relation.
def visitRelation(self, ctx:SparkSQLParser.RelationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#joinRelation.
def visitJoinRelation(self, ctx:SparkSQLParser.JoinRelationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#joinType.
def visitJoinType(self, ctx:SparkSQLParser.JoinTypeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#joinCriteria.
def visitJoinCriteria(self, ctx:SparkSQLParser.JoinCriteriaContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sample.
def visitSample(self, ctx:SparkSQLParser.SampleContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sampleByPercentile.
def visitSampleByPercentile(self, ctx:SparkSQLParser.SampleByPercentileContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sampleByRows.
def visitSampleByRows(self, ctx:SparkSQLParser.SampleByRowsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sampleByBucket.
def visitSampleByBucket(self, ctx:SparkSQLParser.SampleByBucketContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#sampleByBytes.
def visitSampleByBytes(self, ctx:SparkSQLParser.SampleByBytesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#identifierList.
def visitIdentifierList(self, ctx:SparkSQLParser.IdentifierListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#identifierSeq.
def visitIdentifierSeq(self, ctx:SparkSQLParser.IdentifierSeqContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#orderedIdentifierList.
def visitOrderedIdentifierList(self, ctx:SparkSQLParser.OrderedIdentifierListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#orderedIdentifier.
def visitOrderedIdentifier(self, ctx:SparkSQLParser.OrderedIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#identifierCommentList.
def visitIdentifierCommentList(self, ctx:SparkSQLParser.IdentifierCommentListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#identifierComment.
def visitIdentifierComment(self, ctx:SparkSQLParser.IdentifierCommentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableName.
def visitTableName(self, ctx:SparkSQLParser.TableNameContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#aliasedQuery.
def visitAliasedQuery(self, ctx:SparkSQLParser.AliasedQueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#aliasedRelation.
def visitAliasedRelation(self, ctx:SparkSQLParser.AliasedRelationContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#inlineTableDefault2.
def visitInlineTableDefault2(self, ctx:SparkSQLParser.InlineTableDefault2Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableValuedFunction.
def visitTableValuedFunction(self, ctx:SparkSQLParser.TableValuedFunctionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#inlineTable.
def visitInlineTable(self, ctx:SparkSQLParser.InlineTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#functionTable.
def visitFunctionTable(self, ctx:SparkSQLParser.FunctionTableContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableAlias.
def visitTableAlias(self, ctx:SparkSQLParser.TableAliasContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#rowFormatSerde.
def visitRowFormatSerde(self, ctx:SparkSQLParser.RowFormatSerdeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#rowFormatDelimited.
def visitRowFormatDelimited(self, ctx:SparkSQLParser.RowFormatDelimitedContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#multipartIdentifierList.
def visitMultipartIdentifierList(self, ctx:SparkSQLParser.MultipartIdentifierListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#multipartIdentifier.
def visitMultipartIdentifier(self, ctx:SparkSQLParser.MultipartIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#tableIdentifier.
def visitTableIdentifier(self, ctx:SparkSQLParser.TableIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#functionIdentifier.
def visitFunctionIdentifier(self, ctx:SparkSQLParser.FunctionIdentifierContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#namedExpression.
def visitNamedExpression(self, ctx:SparkSQLParser.NamedExpressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#namedExpressionSeq.
def visitNamedExpressionSeq(self, ctx:SparkSQLParser.NamedExpressionSeqContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#transformList.
def visitTransformList(self, ctx:SparkSQLParser.TransformListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#identityTransform.
def visitIdentityTransform(self, ctx:SparkSQLParser.IdentityTransformContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#applyTransform.
def visitApplyTransform(self, ctx:SparkSQLParser.ApplyTransformContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#transformArgument.
def visitTransformArgument(self, ctx:SparkSQLParser.TransformArgumentContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#expression.
def visitExpression(self, ctx:SparkSQLParser.ExpressionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#logicalNot.
def visitLogicalNot(self, ctx:SparkSQLParser.LogicalNotContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#predicated.
def visitPredicated(self, ctx:SparkSQLParser.PredicatedContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#exists.
def visitExists(self, ctx:SparkSQLParser.ExistsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#logicalBinary.
def visitLogicalBinary(self, ctx:SparkSQLParser.LogicalBinaryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#bewteen.
def visitBewteen(self, ctx:SparkSQLParser.BewteenContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#inList.
def visitInList(self, ctx:SparkSQLParser.InListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#inSubquery.
def visitInSubquery(self, ctx:SparkSQLParser.InSubqueryContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#rlike.
def visitRlike(self, ctx:SparkSQLParser.RlikeContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#likeList.
def visitLikeList(self, ctx:SparkSQLParser.LikeListContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#likeValue.
def visitLikeValue(self, ctx:SparkSQLParser.LikeValueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#nullPredicate.
def visitNullPredicate(self, ctx:SparkSQLParser.NullPredicateContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#booleanPredicate.
def visitBooleanPredicate(self, ctx:SparkSQLParser.BooleanPredicateContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#distinctFrom.
def visitDistinctFrom(self, ctx:SparkSQLParser.DistinctFromContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by SparkSQLParser#valueExpressionDefault.
def visitValueExpressionDefault(self, ctx:SparkSQLParser.ValueExpressionDefaultContext):
return self.visitChildren(ctx)