-
Notifications
You must be signed in to change notification settings - Fork 3
/
y.output
8280 lines (6830 loc) · 155 KB
/
y.output
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
state 0
$accept: .start $end
SELECT shift 16
CREATE shift 9
INSERT shift 17
DELETE shift 18
UPDATE shift 19
GRANT shift 20
REVOKE shift 21
ALTER shift 22
. error
multi_stmt goto 7
single_stmt goto 3
select_stmt goto 5
base_select goto 8
create_table_stmt goto 6
insert_stmt goto 10
delete_stmt goto 11
update_stmt goto 12
grant_stmt goto 13
revoke_stmt goto 14
alter_table_stmt goto 15
stmts goto 2
multi_stmts goto 4
start goto 1
state 1
$accept: start.$end
$end accept
. error
state 2
start: stmts. (1)
. reduce 1 (src line 184)
state 3
stmts: single_stmt.semicolon_opt
semicolon_opt: . (14)
';' shift 24
. reduce 14 (src line 254)
semicolon_opt goto 23
state 4
stmts: multi_stmts.semicolon_opt
multi_stmts: multi_stmts.';' multi_stmt
semicolon_opt: . (14)
';' shift 26
. reduce 14 (src line 254)
semicolon_opt goto 25
state 5
single_stmt: select_stmt. (4)
. reduce 4 (src line 199)
state 6
single_stmt: create_table_stmt. (5)
. reduce 5 (src line 204)
state 7
multi_stmts: multi_stmt. (6)
. reduce 6 (src line 210)
state 8
select_stmt: base_select.order_by_opt limit_opt
select_stmt: base_select.compound_op select_stmt
order_by_opt: . (69)
ORDER shift 29
UNION shift 30
EXCEPT shift 31
INTERSECT shift 32
. reduce 69 (src line 552)
compound_op goto 28
order_by_opt goto 27
state 9
create_table_stmt: CREATE.TABLE table_name '(' column_def_list table_constraint_list_opt ')'
TABLE shift 33
. error
state 10
multi_stmt: insert_stmt. (8)
. reduce 8 (src line 221)
state 11
multi_stmt: delete_stmt. (9)
. reduce 9 (src line 227)
state 12
multi_stmt: update_stmt. (10)
. reduce 10 (src line 232)
state 13
multi_stmt: grant_stmt. (11)
. reduce 11 (src line 237)
state 14
multi_stmt: revoke_stmt. (12)
. reduce 12 (src line 242)
state 15
multi_stmt: alter_table_stmt. (13)
. reduce 13 (src line 247)
state 16
base_select: SELECT.distinct_opt select_column_list from_clause where_opt group_by_opt having_opt
distinct_opt: . (23)
DISTINCT shift 35
ALL shift 36
. reduce 23 (src line 306)
distinct_opt goto 34
state 17
insert_stmt: INSERT.INTO table_name column_name_list_opt VALUES insert_rows upsert_clause_opt
insert_stmt: INSERT.INTO table_name DEFAULT VALUES
insert_stmt: INSERT.INTO table_name column_name_list_opt select_stmt upsert_clause_opt
INTO shift 37
. error
state 18
delete_stmt: DELETE.FROM table_name where_opt
FROM shift 38
. error
state 19
update_stmt: UPDATE.table_name SET update_list where_opt
IDENTIFIER shift 41
. error
identifier goto 40
table_name goto 39
state 20
grant_stmt: GRANT.privileges ON table_name TO roles
INSERT shift 44
DELETE shift 46
UPDATE shift 45
. error
privilege goto 43
privileges goto 42
state 21
revoke_stmt: REVOKE.privileges ON table_name FROM roles
INSERT shift 44
DELETE shift 46
UPDATE shift 45
. error
privilege goto 43
privileges goto 47
state 22
alter_table_stmt: ALTER.TABLE table_name RENAME column_opt column_name TO column_name
alter_table_stmt: ALTER.TABLE table_name ADD column_opt column_def
alter_table_stmt: ALTER.TABLE table_name DROP column_opt column_name
TABLE shift 48
. error
state 23
stmts: single_stmt semicolon_opt. (2)
. reduce 2 (src line 188)
state 24
semicolon_opt: ';'. (15)
. reduce 15 (src line 256)
state 25
stmts: multi_stmts semicolon_opt. (3)
. reduce 3 (src line 193)
state 26
multi_stmts: multi_stmts ';'.multi_stmt
semicolon_opt: ';'. (15)
INSERT shift 17
DELETE shift 18
UPDATE shift 19
GRANT shift 20
REVOKE shift 21
ALTER shift 22
. reduce 15 (src line 256)
multi_stmt goto 49
insert_stmt goto 10
delete_stmt goto 11
update_stmt goto 12
grant_stmt goto 13
revoke_stmt goto 14
alter_table_stmt goto 15
state 27
select_stmt: base_select order_by_opt.limit_opt
limit_opt: . (80)
LIMIT shift 51
. reduce 80 (src line 608)
limit_opt goto 50
state 28
select_stmt: base_select compound_op.select_stmt
SELECT shift 16
. error
select_stmt goto 52
base_select goto 8
state 29
order_by_opt: ORDER.BY order_list
BY shift 53
. error
state 30
compound_op: UNION. (18)
compound_op: UNION.ALL
ALL shift 54
. reduce 18 (src line 273)
state 31
compound_op: EXCEPT. (20)
. reduce 20 (src line 282)
state 32
compound_op: INTERSECT. (21)
. reduce 21 (src line 286)
state 33
create_table_stmt: CREATE TABLE.table_name '(' column_def_list table_constraint_list_opt ')'
IDENTIFIER shift 41
. error
identifier goto 40
table_name goto 55
state 34
base_select: SELECT distinct_opt.select_column_list from_clause where_opt group_by_opt having_opt
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'*' shift 58
'~' shift 66
. error
expr goto 59
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
select_column goto 57
select_column_list goto 56
table_name goto 60
subquery goto 69
numeric_literal goto 75
param goto 62
state 35
distinct_opt: DISTINCT. (24)
. reduce 24 (src line 310)
state 36
distinct_opt: ALL. (25)
. reduce 25 (src line 314)
state 37
insert_stmt: INSERT INTO.table_name column_name_list_opt VALUES insert_rows upsert_clause_opt
insert_stmt: INSERT INTO.table_name DEFAULT VALUES
insert_stmt: INSERT INTO.table_name column_name_list_opt select_stmt upsert_clause_opt
IDENTIFIER shift 41
. error
identifier goto 40
table_name goto 89
state 38
delete_stmt: DELETE FROM.table_name where_opt
IDENTIFIER shift 41
. error
identifier goto 40
table_name goto 90
state 39
update_stmt: UPDATE table_name.SET update_list where_opt
SET shift 91
. error
state 40
table_name: identifier. (84)
. reduce 84 (src line 626)
state 41
identifier: IDENTIFIER. (263)
. reduce 263 (src line 1689)
state 42
grant_stmt: GRANT privileges.ON table_name TO roles
privileges: privileges.',' privilege
',' shift 93
ON shift 92
. error
state 43
privileges: privilege. (253)
. reduce 253 (src line 1584)
state 44
privilege: INSERT. (255)
. reduce 255 (src line 1602)
state 45
privilege: UPDATE. (256)
. reduce 256 (src line 1607)
state 46
privilege: DELETE. (257)
. reduce 257 (src line 1611)
state 47
revoke_stmt: REVOKE privileges.ON table_name FROM roles
privileges: privileges.',' privilege
',' shift 93
ON shift 94
. error
state 48
alter_table_stmt: ALTER TABLE.table_name RENAME column_opt column_name TO column_name
alter_table_stmt: ALTER TABLE.table_name ADD column_opt column_def
alter_table_stmt: ALTER TABLE.table_name DROP column_opt column_name
IDENTIFIER shift 41
. error
identifier goto 40
table_name goto 95
state 49
multi_stmts: multi_stmts ';' multi_stmt. (7)
. reduce 7 (src line 215)
state 50
select_stmt: base_select order_by_opt limit_opt. (16)
. reduce 16 (src line 260)
state 51
limit_opt: LIMIT.expr
limit_opt: LIMIT.expr ',' expr
limit_opt: LIMIT.expr OFFSET expr
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
expr goto 96
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 52
select_stmt: base_select compound_op select_stmt. (17)
. reduce 17 (src line 267)
state 53
order_by_opt: ORDER BY.order_list
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
expr goto 100
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
order_list goto 98
ordering_term goto 99
subquery goto 69
numeric_literal goto 75
param goto 62
state 54
compound_op: UNION ALL. (19)
. reduce 19 (src line 278)
state 55
create_table_stmt: CREATE TABLE table_name.'(' column_def_list table_constraint_list_opt ')'
'(' shift 101
. error
state 56
base_select: SELECT distinct_opt select_column_list.from_clause where_opt group_by_opt having_opt
select_column_list: select_column_list.',' select_column
',' shift 103
FROM shift 104
. error
from_clause goto 102
state 57
select_column_list: select_column. (26)
. reduce 26 (src line 320)
state 58
select_column: '*'. (28)
. reduce 28 (src line 330)
state 59
select_column: expr.as_column_opt
expr: expr.'+' expr
expr: expr.'-' expr
expr: expr.'*' expr
expr: expr.'/' expr
expr: expr.'%' expr
expr: expr.'&' expr
expr: expr.'|' expr
expr: expr.LSHIFT expr
expr: expr.RSHIFT expr
expr: expr.CONCAT expr
expr: expr.JSON_EXTRACT_OP expr
expr: expr.JSON_UNQUOTE_EXTRACT_OP expr
expr: expr.cmp_op expr
expr: expr.cmp_inequality_op expr
expr: expr.like_op expr
expr: expr.like_op expr ESCAPE expr
expr: expr.ANDOP expr
expr: expr.OR expr
expr: expr.IS expr
expr: expr.IS ISNOT expr
expr: expr.ISNULL
expr: expr.NOTNULL
expr: expr.NOT NULL
expr: expr.between_op expr AND expr
expr: expr.COLLATE identifier
expr: expr.IN col_tuple
expr: expr.NOT IN col_tuple
as_column_opt: . (31)
IDENTIFIER shift 41
STRING shift 144
AS shift 131
OR shift 122
ANDOP shift 121
NOT shift 126
IS shift 123
MATCH shift 136
GLOB shift 135
REGEXP shift 134
LIKE shift 141
BETWEEN shift 142
IN shift 129
ISNULL shift 124
NOTNULL shift 125
NE shift 133
'=' shift 132
'<' shift 137
'>' shift 138
LE shift 139
GE shift 140
'&' shift 111
'|' shift 112
LSHIFT shift 113
RSHIFT shift 114
'+' shift 106
'-' shift 107
'*' shift 108
'/' shift 109
'%' shift 110
CONCAT shift 115
JSON_EXTRACT_OP shift 116
JSON_UNQUOTE_EXTRACT_OP shift 117
COLLATE shift 128
. reduce 31 (src line 344)
cmp_op goto 118
cmp_inequality_op goto 119
like_op goto 120
between_op goto 127
as_column_opt goto 105
col_alias goto 130
identifier goto 143
state 60
select_column: table_name.'.' '*'
expr: table_name.'.' column_name
'.' shift 145
. error
state 61
expr: literal_value. (85)
. reduce 85 (src line 633)
state 62
expr: param. (86)
. reduce 86 (src line 635)
state 63
expr: column_name. (87)
. reduce 87 (src line 636)
state 64
expr: '-'.expr
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
expr goto 146
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 65
expr: '+'.expr
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
expr goto 147
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 66
expr: '~'.expr
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
expr goto 148
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 67
expr: CASE.expr_opt when_expr_list else_expr_opt END
expr_opt: . (173)
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. reduce 173 (src line 1051)
expr goto 150
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
expr_opt goto 149
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 68
expr: '('.expr ')'
subquery: '('.select_stmt ')'
IDENTIFIER shift 41
STRING shift 76
INTEGRAL shift 86
HEXNUM shift 88
FLOAT shift 87
BLOBVAL shift 77
TRUE shift 78
FALSE shift 79
NULL shift 80
'(' shift 68
'?' shift 81
CAST shift 71
CASE shift 67
SELECT shift 16
EXISTS shift 82
NOT shift 83
GLOB shift 84
LIKE shift 85
'+' shift 65
'-' shift 64
'~' shift 66
. error
select_stmt goto 152
base_select goto 8
expr goto 151
literal_value goto 61
function_call_keyword goto 72
function_call_generic goto 73
exists_subquery goto 70
column_name goto 63
identifier goto 74
table_name goto 97
subquery goto 69
numeric_literal goto 75
param goto 62
state 69
expr: subquery. (121)
. reduce 121 (src line 774)
state 70
expr: exists_subquery. (122)
. reduce 122 (src line 778)
state 71
expr: CAST.'(' expr AS convert_type ')'
'(' shift 153
. error
state 72
expr: function_call_keyword. (124)
. reduce 124 (src line 786)
state 73
expr: function_call_generic. (125)
. reduce 125 (src line 787)
state 74
table_name: identifier. (84)
column_name: identifier. (132)
function_call_generic: identifier.'(' distinct_function_opt expr_list_opt ')' filter_opt
function_call_generic: identifier.'(' '*' ')' filter_opt
'(' shift 154
'.' reduce 84 (src line 626)
. reduce 132 (src line 824)
state 75
literal_value: numeric_literal. (126)
. reduce 126 (src line 790)
state 76
literal_value: STRING. (127)
. reduce 127 (src line 795)
state 77
literal_value: BLOBVAL. (128)
. reduce 128 (src line 803)
state 78
literal_value: TRUE. (129)
. reduce 129 (src line 810)
state 79
literal_value: FALSE. (130)
. reduce 130 (src line 814)
state 80
literal_value: NULL. (131)
. reduce 131 (src line 818)
state 81
param: '?'. (264)
. reduce 264 (src line 1700)
state 82
exists_subquery: EXISTS.subquery
'(' shift 156
. error
subquery goto 155
state 83
exists_subquery: NOT.EXISTS subquery
EXISTS shift 157
. error
state 84
function_call_keyword: GLOB.'(' expr ',' expr ')'
'(' shift 158
. error
state 85
function_call_keyword: LIKE.'(' expr ',' expr ')'
function_call_keyword: LIKE.'(' expr ',' expr ',' expr ')'
'(' shift 159
. error
state 86
numeric_literal: INTEGRAL. (208)
. reduce 208 (src line 1265)
state 87
numeric_literal: FLOAT. (209)
. reduce 209 (src line 1270)
state 88
numeric_literal: HEXNUM. (210)
. reduce 210 (src line 1275)
state 89
insert_stmt: INSERT INTO table_name.column_name_list_opt VALUES insert_rows upsert_clause_opt
insert_stmt: INSERT INTO table_name.DEFAULT VALUES
insert_stmt: INSERT INTO table_name.column_name_list_opt select_stmt upsert_clause_opt
column_name_list_opt: . (229)
'(' shift 162