Commit 43a3d9f
fix(presto): transpile FROM_ISO8601_DATE to cast [CLAUDE] (#7778)
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>
Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com>1 parent 7db4d25 commit 43a3d9f
4 files changed
Lines changed: 20 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 | |
|---|---|---|---|
| |||
3991 | 3991 | | |
3992 | 3992 | | |
3993 | 3993 | | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
3994 | 3997 | | |
3995 | 3998 | | |
3996 | 3999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
0 commit comments