Sergio Sainz created IMPALA-10908:
-------------------------------------
Summary: Support Locale for SimpleDateFormat parser
Key: IMPALA-10908
URL: https://issues.apache.org/jira/browse/IMPALA-10908
Project: IMPALA
Issue Type: Bug
Components: Backend
Affects Versions: Impala 4.0.0
Reporter: Sergio Sainz
IDEA (enhacement request):
Java's SimpleDateFormat supports additional argument for LOCALE:
[https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/SimpleDateFormat.html#%3Cinit%3E(java.lang.String,java.util.Locale)]
Impala should allow providing locale to the TO_TIMESTAMP function:
Example:
Input: select to_timestamp('01-Ene-2021', 'dd-MMM-yyyy', 'es_ES');
Expected output:
01-01-21
Enero (spanish) = January (english)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]