Commit 3016c85
fix(presto): transpile FROM_ISO8601_DATE to cast [CLAUDE]
FROM_ISO8601_DATE is a Presto/Trino function parsing an ISO 8601 string
into a date. It wasn't recognized as a dedicated expression, so it
parsed as Anonymous and passed through unchanged to all dialects. Add a
FromISO8601Date expression, transpile it to CAST(... AS DATE) in the base
Generator, and keep the native function for Presto/Trino.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e3cd4a4 commit 3016c85
4 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
440 | 444 | | |
441 | 445 | | |
442 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3738 | 3738 | | |
3739 | 3739 | | |
3740 | 3740 | | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
3741 | 3744 | | |
3742 | 3745 | | |
3743 | 3746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
0 commit comments