Commit af5a615
authored
fix(spark): casting date/time requires timezone (#318)
When casting a date type to a string, Spark requires that a timezone is specified,
otherwise it will not resolve the logical plan.
The timezone is ignored for non-date/time values.
Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>1 parent 2d44a92 commit af5a615
2 files changed
Lines changed: 10 additions & 3 deletions
File tree
- spark/src
- main/scala/io/substrait/spark/expression
- test/scala/io/substrait/spark
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| 206 | + | |
200 | 207 | | |
201 | 208 | | |
202 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments