Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 3.3.0
-
ghx-label-9
Description
Given a time string containing a TZH token with a sign which is preceded immediately by a dash delimiter cannot be cast to timestamp.
To reproduce
Execute
select cast("08:00-+01" as timestamp format "HH:MI-TZH");
which results in NULL.
It seems like the delimiter is incorrectly recognised as the sign of the timezone offset hour which prevents parsing the TZH value.
Adding an additional delimiter (other than dash itself) between the dash separator and the sign in the time string makes cast working.
Executing
select cast("08:00- +01" as timestamp format "HH:MI-TZH");
results in 08:00:00.