You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Michael Howard (JIRA)" <ji...@apache.org> on 2015/05/29 18:14:17 UTC
[jira] [Created] (PIG-4578) ToDateISO should support optional ' '
space variant used by JDBC
Michael Howard created PIG-4578:
-----------------------------------
Summary: ToDateISO should support optional ' ' space variant used by JDBC
Key: PIG-4578
URL: https://issues.apache.org/jira/browse/PIG-4578
Project: Pig
Issue Type: Improvement
Components: internal-udfs
Reporter: Michael Howard
Assignee: Michael Howard
Priority: Minor
ISO-8601 standardizes text representation of dates and times.
Strict ISO-8601 requires a 'T' between the date and time portion.
ISO-8601 allows a ' ' space as a variant.
JDBC uses a ' ' space between the date and time portion.
Hive (& Impala) adopt the JDBC ' ' space variant.
The pig built-in UDF ToDateISO(chararray) currently accepts only the strict 'T' format. This makes it difficult to integrate with data from JDBC sources, including Hive.
ToDateISO(chararray) should allow either the 'T' or ' ' space variant when parsing string representations of datetime primitives.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)