Commit b329c6d
committed
Cast tzArg to VARCHAR in DATETIME 2-arg column path
Calcite infers CHAR(N) from a literal's length, but the convert_tz yaml
binds tz operands as unbounded `string` (VARCHAR). Without the cast, a
user-supplied tz literal like `'+05:30'` lowers as
`convert_tz(precision_timestamp, char<6>, char<6>)` — same CHAR-vs-string
mismatch already fixed for the synthesised target tz literal, just from
the other side. Cast the source tz to VARCHAR for symmetry; the literal
target was already cast.
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>1 parent ea38f7c commit b329c6d
1 file changed
Lines changed: 9 additions & 4 deletions
File tree
- sandbox/plugins/analytics-backend-datafusion/src/main/java/org/opensearch/be/datafusion
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
249 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
250 | 255 | | |
251 | | - | |
| 256 | + | |
252 | 257 | | |
253 | 258 | | |
254 | 259 | | |
| |||
0 commit comments