Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Impala 3.3.0
-
None
-
None
-
ghx-label-11
Description
Here the content of the FORMAT clause is surrounded by double quotes.
select cast('2016/10/10' as date format 'YYYY/MM/DD'); +------------------------------------------------+ | cast('2016/10/10' as date format "yyyy/mm/dd") | +------------------------------------------------+ | 2016-10-10 | +------------------------------------------------+
In order to follow SQL standards this should be surrounded by single quotes regardless of how the user gave the FORMAT clause.
Attachments
Issue Links
- Is contained by
-
IMPALA-4018 Add support for SQL:2016 datetime templates/patterns/masks to CAST(... AS ... FORMAT <template>)
- Closed