-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathy.output
725 lines (436 loc) · 13.2 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
state 0
$accept: .main $end
main: . (1)
create shift 3
. reduce 1 (src line 120)
stmt goto 2
main goto 1
state 1
$accept: main.$end
$end accept
. error
state 2
main: stmt. (2)
main: stmt.';'
';' shift 4
. reduce 2 (src line 122)
state 3
stmt: create.externalStmt table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt
externalStmt: . (5)
external shift 6
. reduce 5 (src line 132)
externalStmt goto 5
state 4
main: stmt ';'. (3)
. reduce 3 (src line 124)
state 5
stmt: create externalStmt.table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt
table shift 7
. error
state 6
externalStmt: external. (6)
. reduce 6 (src line 134)
state 7
stmt: create externalStmt table.ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt
ifNotExistsStmt: . (7)
ifWord shift 9
. reduce 7 (src line 138)
ifNotExistsStmt goto 8
state 8
stmt: create externalStmt table ifNotExistsStmt.tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt
identifier shift 11
. error
tableNameStmt goto 10
state 9
ifNotExistsStmt: ifWord.not exists
not shift 12
. error
state 10
stmt: create externalStmt table ifNotExistsStmt tableNameStmt.columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt
columnListStmt: . (11)
'(' shift 14
. reduce 11 (src line 155)
columnListStmt goto 13
state 11
tableNameStmt: identifier. (9)
tableNameStmt: identifier.'.' identifier
'.' shift 15
. reduce 9 (src line 144)
state 12
ifNotExistsStmt: ifWord not.exists
exists shift 16
. error
state 13
stmt: create externalStmt table ifNotExistsStmt tableNameStmt columnListStmt.primaryKeyStmt partitionStmt distributedStmt propertiesStmt
primaryKeyStmt: . (31)
primaryWord shift 18
. reduce 31 (src line 207)
primaryKeyStmt goto 17
state 14
columnListStmt: '('.columnFieldListStmt ')'
columnFieldListStmt: . (13)
identifier shift 21
. reduce 13 (src line 160)
columnFieldListStmt goto 19
columnStmt goto 20
state 15
tableNameStmt: identifier '.'.identifier
identifier shift 22
. error
state 16
ifNotExistsStmt: ifWord not exists. (8)
. reduce 8 (src line 140)
state 17
stmt: create externalStmt table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt.partitionStmt distributedStmt propertiesStmt
partitionStmt: . (36)
partitionWord shift 24
. reduce 36 (src line 232)
partitionStmt goto 23
state 18
primaryKeyStmt: primaryWord.keyWord '(' primaryKeyColumnListStmt ')'
keyWord shift 25
. error
state 19
columnListStmt: '(' columnFieldListStmt.')'
columnFieldListStmt: columnFieldListStmt.',' columnStmt
')' shift 26
',' shift 27
. error
state 20
columnFieldListStmt: columnStmt. (14)
. reduce 14 (src line 162)
state 21
columnStmt: identifier.colTypeStmt aggTypeStmt notNullStmt defaultStmt
colTypeStmt: . (17)
tinyintType shift 29
intType shift 30
bigintType shift 31
dateType shift 32
stringType shift 33
. reduce 17 (src line 175)
colTypeStmt goto 28
state 22
tableNameStmt: identifier '.' identifier. (10)
. reduce 10 (src line 148)
state 23
stmt: create externalStmt table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt.distributedStmt propertiesStmt
distributedStmt: . (48)
distributedWord shift 35
. reduce 48 (src line 281)
distributedStmt goto 34
state 24
partitionStmt: partitionWord.byWord rangeWord '(' identifier ')' '(' partitionRangeStmt ')'
byWord shift 36
. error
state 25
primaryKeyStmt: primaryWord keyWord.'(' primaryKeyColumnListStmt ')'
'(' shift 37
. error
state 26
columnListStmt: '(' columnFieldListStmt ')'. (12)
. reduce 12 (src line 157)
state 27
columnFieldListStmt: columnFieldListStmt ','.columnStmt
identifier shift 21
. error
columnStmt goto 38
state 28
columnStmt: identifier colTypeStmt.aggTypeStmt notNullStmt defaultStmt
aggTypeStmt: . (23)
sum shift 40
max shift 41
. reduce 23 (src line 188)
aggTypeStmt goto 39
state 29
colTypeStmt: tinyintType. (18)
. reduce 18 (src line 177)
state 30
colTypeStmt: intType. (19)
. reduce 19 (src line 179)
state 31
colTypeStmt: bigintType. (20)
. reduce 20 (src line 181)
state 32
colTypeStmt: dateType. (21)
. reduce 21 (src line 183)
state 33
colTypeStmt: stringType. (22)
. reduce 22 (src line 185)
state 34
stmt: create externalStmt table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt.propertiesStmt
propertiesStmt: . (50)
propertiesWord shift 43
. reduce 50 (src line 289)
propertiesStmt goto 42
state 35
distributedStmt: distributedWord.byWord hashWord '(' identifier ')' bucketsWord number
byWord shift 44
. error
state 36
partitionStmt: partitionWord byWord.rangeWord '(' identifier ')' '(' partitionRangeStmt ')'
rangeWord shift 45
. error
state 37
primaryKeyStmt: primaryWord keyWord '('.primaryKeyColumnListStmt ')'
primaryKeyColumnListStmt: . (33)
identifier shift 47
. reduce 33 (src line 212)
primaryKeyColumnListStmt goto 46
state 38
columnFieldListStmt: columnFieldListStmt ',' columnStmt. (15)
. reduce 15 (src line 164)
state 39
columnStmt: identifier colTypeStmt aggTypeStmt.notNullStmt defaultStmt
notNullStmt: . (26)
not shift 50
null shift 49
. reduce 26 (src line 195)
notNullStmt goto 48
state 40
aggTypeStmt: sum. (24)
. reduce 24 (src line 190)
state 41
aggTypeStmt: max. (25)
. reduce 25 (src line 192)
state 42
stmt: create externalStmt table ifNotExistsStmt tableNameStmt columnListStmt primaryKeyStmt partitionStmt distributedStmt propertiesStmt. (4)
. reduce 4 (src line 128)
state 43
propertiesStmt: propertiesWord.'(' keyValueListStmt ')'
'(' shift 51
. error
state 44
distributedStmt: distributedWord byWord.hashWord '(' identifier ')' bucketsWord number
hashWord shift 52
. error
state 45
partitionStmt: partitionWord byWord rangeWord.'(' identifier ')' '(' partitionRangeStmt ')'
'(' shift 53
. error
state 46
primaryKeyStmt: primaryWord keyWord '(' primaryKeyColumnListStmt.')'
primaryKeyColumnListStmt: primaryKeyColumnListStmt.',' identifier
')' shift 54
',' shift 55
. error
state 47
primaryKeyColumnListStmt: identifier. (34)
. reduce 34 (src line 214)
state 48
columnStmt: identifier colTypeStmt aggTypeStmt notNullStmt.defaultStmt
defaultStmt: . (29)
defaultWord shift 57
. reduce 29 (src line 202)
defaultStmt goto 56
state 49
notNullStmt: null. (27)
. reduce 27 (src line 197)
state 50
notNullStmt: not.null
null shift 58
. error
51: reduce/reduce conflict (red'ns 52 and 55) on ')'
51: reduce/reduce conflict (red'ns 52 and 55) on ','
state 51
propertiesStmt: propertiesWord '('.keyValueListStmt ')'
keyValueListStmt: . (52)
keyValueStmt: . (55)
identifier shift 61
. reduce 52 (src line 295)
keyValueListStmt goto 59
keyValueStmt goto 60
state 52
distributedStmt: distributedWord byWord hashWord.'(' identifier ')' bucketsWord number
'(' shift 62
. error
state 53
partitionStmt: partitionWord byWord rangeWord '('.identifier ')' '(' partitionRangeStmt ')'
identifier shift 63
. error
state 54
primaryKeyStmt: primaryWord keyWord '(' primaryKeyColumnListStmt ')'. (32)
. reduce 32 (src line 209)
state 55
primaryKeyColumnListStmt: primaryKeyColumnListStmt ','.identifier
identifier shift 64
. error
state 56
columnStmt: identifier colTypeStmt aggTypeStmt notNullStmt defaultStmt. (16)
. reduce 16 (src line 167)
state 57
defaultStmt: defaultWord.'\"' identifier '\"'
'"' shift 65
. error
state 58
notNullStmt: not null. (28)
. reduce 28 (src line 199)
state 59
propertiesStmt: propertiesWord '(' keyValueListStmt.')'
keyValueListStmt: keyValueListStmt.',' keyValueStmt
')' shift 66
',' shift 67
. error
state 60
keyValueListStmt: keyValueStmt. (53)
. reduce 53 (src line 297)
state 61
keyValueStmt: identifier.'=' identifier
'=' shift 68
. error
state 62
distributedStmt: distributedWord byWord hashWord '('.identifier ')' bucketsWord number
identifier shift 69
. error
state 63
partitionStmt: partitionWord byWord rangeWord '(' identifier.')' '(' partitionRangeStmt ')'
')' shift 70
. error
state 64
primaryKeyColumnListStmt: primaryKeyColumnListStmt ',' identifier. (35)
. reduce 35 (src line 223)
state 65
defaultStmt: defaultWord '\"'.identifier '\"'
identifier shift 71
. error
state 66
propertiesStmt: propertiesWord '(' keyValueListStmt ')'. (51)
. reduce 51 (src line 291)
state 67
keyValueListStmt: keyValueListStmt ','.keyValueStmt
keyValueStmt: . (55)
identifier shift 61
. reduce 55 (src line 302)
keyValueStmt goto 72
state 68
keyValueStmt: identifier '='.identifier
identifier shift 73
. error
state 69
distributedStmt: distributedWord byWord hashWord '(' identifier.')' bucketsWord number
')' shift 74
. error
state 70
partitionStmt: partitionWord byWord rangeWord '(' identifier ')'.'(' partitionRangeStmt ')'
'(' shift 75
. error
state 71
defaultStmt: defaultWord '\"' identifier.'\"'
'"' shift 76
. error
state 72
keyValueListStmt: keyValueListStmt ',' keyValueStmt. (54)
. reduce 54 (src line 299)
state 73
keyValueStmt: identifier '=' identifier. (56)
. reduce 56 (src line 304)
state 74
distributedStmt: distributedWord byWord hashWord '(' identifier ')'.bucketsWord number
bucketsWord shift 77
. error
75: reduce/reduce conflict (red'ns 38 and 41) on ')'
75: reduce/reduce conflict (red'ns 38 and 41) on ','
state 75
partitionStmt: partitionWord byWord rangeWord '(' identifier ')' '('.partitionRangeStmt ')'
partitionRangeStmt: . (38)
partitonRangeListStmt: . (41)
partitionWord shift 80
. reduce 38 (src line 240)
partitionRangeStmt goto 78
partitonRangeListStmt goto 79
state 76
defaultStmt: defaultWord '\"' identifier '\"'. (30)
. reduce 30 (src line 204)
state 77
distributedStmt: distributedWord byWord hashWord '(' identifier ')' bucketsWord.number
number shift 81
. error
state 78
partitionStmt: partitionWord byWord rangeWord '(' identifier ')' '(' partitionRangeStmt.')'
partitionRangeStmt: partitionRangeStmt.',' partitonRangeListStmt
')' shift 82
',' shift 83
. error
state 79
partitionRangeStmt: partitonRangeListStmt. (39)
. reduce 39 (src line 242)
state 80
partitonRangeListStmt: partitionWord.identifier valuesWord '[' partitionValueStmt ')'
identifier shift 84
. error
state 81
distributedStmt: distributedWord byWord hashWord '(' identifier ')' bucketsWord number. (49)
. reduce 49 (src line 283)
state 82
partitionStmt: partitionWord byWord rangeWord '(' identifier ')' '(' partitionRangeStmt ')'. (37)
. reduce 37 (src line 234)
state 83
partitionRangeStmt: partitionRangeStmt ','.partitonRangeListStmt
partitonRangeListStmt: . (41)
partitionWord shift 80
. reduce 41 (src line 247)
partitonRangeListStmt goto 85
state 84
partitonRangeListStmt: partitionWord identifier.valuesWord '[' partitionValueStmt ')'
valuesWord shift 86
. error
state 85
partitionRangeStmt: partitionRangeStmt ',' partitonRangeListStmt. (40)
. reduce 40 (src line 244)
state 86
partitonRangeListStmt: partitionWord identifier valuesWord.'[' partitionValueStmt ')'
'[' shift 87
. error
87: reduce/reduce conflict (red'ns 43 and 46) on ')'
87: reduce/reduce conflict (red'ns 43 and 46) on ','
state 87
partitonRangeListStmt: partitionWord identifier valuesWord '['.partitionValueStmt ')'
partitionValueStmt: . (43)
strStmt: . (46)
'(' shift 90
. reduce 43 (src line 262)
strStmt goto 89
partitionValueStmt goto 88
state 88
partitonRangeListStmt: partitionWord identifier valuesWord '[' partitionValueStmt.')'
partitionValueStmt: partitionValueStmt.',' strStmt
')' shift 91
',' shift 92
. error
state 89
partitionValueStmt: strStmt. (44)
. reduce 44 (src line 264)
state 90
strStmt: '('.identifier ')'
identifier shift 93
. error
state 91
partitonRangeListStmt: partitionWord identifier valuesWord '[' partitionValueStmt ')'. (42)
. reduce 42 (src line 249)
state 92
partitionValueStmt: partitionValueStmt ','.strStmt
strStmt: . (46)
'(' shift 90
. reduce 46 (src line 276)
strStmt goto 94
state 93
strStmt: '(' identifier.')'
')' shift 95
. error
state 94
partitionValueStmt: partitionValueStmt ',' strStmt. (45)
. reduce 45 (src line 270)
state 95
strStmt: '(' identifier ')'. (47)
. reduce 47 (src line 278)
54 terminals, 24 nonterminals
57 grammar rules, 96/16000 states
0 shift/reduce, 6 reduce/reduce conflicts reported
73 working sets used
memory: parser 29/240000
0 extra closures
72 shift entries, 1 exceptions
27 goto entries
0 entries saved by goto default
Optimizer space used: output 95/240000
95 table entries, 0 zero
maximum spread: 54, maximum offset: 92