Commit 55e5314
feat: Support Presto quoted_identifier semantics in parseTypeSignature (facebookincubator#13658)
Summary:
Presto supports
```
QUOTED_IDENTIFIER
: '"' ( ~'"' | '""' )* '"'
;
```
The semantics are
```
Any character other than double quote is allowed between double quotes
And double double quote can be used to "escape" double quote
```
Fixes: facebookincubator#13648
Pull Request resolved: facebookincubator#13658
Reviewed By: mbasmanova, kagamiori
Differential Revision: D76071088
Pulled By: kKPulla
fbshipit-source-id: c1af839d997092fbaa075911d426359e236ecaf21 parent 7e299a6 commit 55e5314
File tree
2 files changed
+55
-2
lines changed- velox/expression/signature_parser
- tests
2 files changed
+55
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 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 | + | |
8 | 32 | | |
9 | 33 | | |
10 | 34 | | |
| |||
34 | 58 | | |
35 | 59 | | |
36 | 60 | | |
37 | | - | |
| 61 | + | |
38 | 62 | | |
39 | 63 | | |
40 | 64 | | |
| |||
48 | 72 | | |
49 | 73 | | |
50 | 74 | | |
51 | | - | |
| 75 | + | |
52 | 76 | | |
53 | 77 | | |
54 | 78 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 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 | + | |
233 | 262 | | |
234 | 263 | | |
235 | 264 | | |
| |||
0 commit comments