Commit 29160c6
Wojciech Padlo
Snowflake: accept COMMENT interspersed among CREATE FILE FORMAT options
Snowflake accepts file-format options in any order, including COMMENT before
other options (e.g. COMMENT = 'c' COMPRESSION = 'GZIP'). The previous parser
treated COMMENT as a stop keyword and then expected end-of-statement, so any
option after COMMENT was a syntax error. Parse COMMENT in the same loop as the
key-value options (matching CREATE TABLE / CREATE DATABASE), hoisting it into
the dedicated comment field.1 parent 7ab0956 commit 29160c6
2 files changed
Lines changed: 52 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
2238 | | - | |
2239 | | - | |
2240 | | - | |
2241 | | - | |
2242 | | - | |
2243 | | - | |
2244 | | - | |
2245 | | - | |
2246 | 2237 | | |
2247 | 2238 | | |
2248 | 2239 | | |
| |||
2251 | 2242 | | |
2252 | 2243 | | |
2253 | 2244 | | |
2254 | | - | |
2255 | | - | |
2256 | | - | |
2257 | | - | |
2258 | | - | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2259 | 2275 | | |
2260 | 2276 | | |
2261 | 2277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6927 | 6927 | | |
6928 | 6928 | | |
6929 | 6929 | | |
| 6930 | + | |
| 6931 | + | |
| 6932 | + | |
| 6933 | + | |
| 6934 | + | |
| 6935 | + | |
| 6936 | + | |
| 6937 | + | |
| 6938 | + | |
| 6939 | + | |
| 6940 | + | |
| 6941 | + | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
| 6947 | + | |
| 6948 | + | |
| 6949 | + | |
| 6950 | + | |
| 6951 | + | |
6930 | 6952 | | |
6931 | 6953 | | |
6932 | 6954 | | |
| |||
0 commit comments