Commit cdb7bd0
committed
Allowing omitting the "T" separator from a datetime string
Our customers have issue using spark to create a dataframe on a
datetime column, because spark interpolates the provided datetime
string, but drops the "T" separator when filling the range.
It seems that omitting the "T" character is fairly acceptable, and
ISO 8601 does allow it to be omitted in a few cases. This is a
very simple patch to allow it.
Signed-off-by: Rivers Zhang <[email protected]>1 parent 59ba446 commit cdb7bd0
File tree
8 files changed
+23
-3
lines changed- db
- tests
- datetime.test
- udf.test
8 files changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7262 | 7262 | | |
7263 | 7263 | | |
7264 | 7264 | | |
7265 | | - | |
| 7265 | + | |
7266 | 7266 | | |
7267 | 7267 | | |
7268 | 7268 | | |
| |||
7307 | 7307 | | |
7308 | 7308 | | |
7309 | 7309 | | |
7310 | | - | |
| 7310 | + | |
7311 | 7311 | | |
| 7312 | + | |
| 7313 | + | |
| 7314 | + | |
| 7315 | + | |
| 7316 | + | |
| 7317 | + | |
7312 | 7318 | | |
7313 | 7319 | | |
7314 | 7320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments