Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 1.1.1
-
None
Description
The ISO-8601 format allows an optional "T" between the date and time in its format. Looks like the Impala date parser doesn't like it:
[example.com:21000] > select cast('2012-01-06T20:59:58.117' as timestamp); Query: select cast('2012-01-06T20:59:58.117' as timestamp) Query finished, fetching results ... +----------------------------------------------+ | cast('2012-01-06t20:59:58.117' as timestamp) | +----------------------------------------------+ | | +----------------------------------------------+ Returned 1 row(s) in 0.15s
Works if I remove the "T", though:
[example.com:21000] > select cast('2012-01-06 20:59:58.117' as timestamp); Query: select cast('2012-01-06 20:59:58.117' as timestamp) Query finished, fetching results ... +----------------------------------------------+ | cast('2012-01-06 20:59:58.117' as timestamp) | +----------------------------------------------+ | 2012-01-06 20:59:58.117000000 | +----------------------------------------------+ Returned 1 row(s) in 0.09s