File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -22,56 +22,84 @@ class PrestoIdentifierPreparer(compiler.IdentifierPreparer):
2222 # https://github.com/facebook/presto/blob/master/presto-parser/src/main/antlr3/com/facebook/presto/sql/parser/Statement.g
2323 reserved_words = frozenset ([
2424 'all' ,
25+ 'alter' ,
2526 'and' ,
27+ 'approximate' ,
28+ 'array' ,
2629 'as' ,
2730 'asc' ,
31+ 'at' ,
32+ 'bernoulli' ,
2833 'between' ,
2934 'bigint' ,
3035 'boolean' ,
3136 'by' ,
3237 'case' ,
3338 'cast' ,
39+ 'catalog' ,
40+ 'catalogs' ,
3441 'char' ,
3542 'character' ,
3643 'coalesce' ,
44+ 'columns' ,
45+ 'confidence' ,
3746 'constraint' ,
3847 'create' ,
3948 'cross' ,
49+ 'current' ,
4050 'current_date' ,
4151 'current_time' ,
4252 'current_timestamp' ,
53+ 'date' ,
54+ 'day' ,
4355 'dec' ,
4456 'decimal' ,
4557 'desc' ,
4658 'describe' ,
4759 'distinct' ,
60+ 'distributed' ,
4861 'double' ,
4962 'drop' ,
5063 'else' ,
5164 'end' ,
5265 'escape' ,
5366 'except' ,
5467 'exists' ,
68+ 'explain' ,
5569 'extract' ,
5670 'false' ,
5771 'first' ,
72+ 'following' ,
5873 'for' ,
74+ 'format' ,
5975 'from' ,
6076 'full' ,
77+ 'functions' ,
78+ 'graphviz' ,
6179 'group' ,
6280 'having' ,
81+ 'hour' ,
6382 'if' ,
6483 'in' ,
6584 'inner' ,
85+ 'insert' ,
6686 'int' ,
6787 'integer' ,
6888 'intersect' ,
89+ 'interval' ,
90+ 'into' ,
6991 'is' ,
7092 'join' ,
93+ 'json' ,
7194 'last' ,
7295 'left' ,
7396 'like' ,
7497 'limit' ,
98+ 'localtime' ,
99+ 'localtimestamp' ,
100+ 'logical' ,
101+ 'minute' ,
102+ 'month' ,
75103 'natural' ,
76104 'not' ,
77105 'null' ,
@@ -83,22 +111,51 @@ class PrestoIdentifierPreparer(compiler.IdentifierPreparer):
83111 'or' ,
84112 'order' ,
85113 'outer' ,
114+ 'over' ,
115+ 'partition' ,
116+ 'partitions' ,
117+ 'poissonized' ,
118+ 'preceding' ,
119+ 'range' ,
86120 'recursive' ,
121+ 'rename' ,
122+ 'replace' ,
123+ 'rescaled' ,
87124 'right' ,
125+ 'row' ,
126+ 'rows' ,
127+ 'schema' ,
128+ 'schemas' ,
129+ 'second' ,
88130 'select' ,
131+ 'show' ,
89132 'stratify' ,
90133 'substring' ,
134+ 'system' ,
91135 'table' ,
136+ 'tables' ,
137+ 'tablesample' ,
138+ 'text' ,
92139 'then' ,
140+ 'time' ,
141+ 'timestamp' ,
142+ 'to' ,
93143 'true' ,
144+ 'try_cast' ,
145+ 'type' ,
94146 'unbounded' ,
95147 'union' ,
148+ 'use' ,
96149 'using' ,
150+ 'values' ,
97151 'varchar' ,
98152 'varying' ,
153+ 'view' ,
99154 'when' ,
100155 'where' ,
101156 'with' ,
157+ 'year' ,
158+ 'zone' ,
102159 ])
103160
104161
You can’t perform that action at this time.
0 commit comments