[
https://issues.apache.org/jira/browse/PIG-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Howard updated PIG-4578:
--------------------------------
Release Note: Built-in UDF ToDateISO(chararray) now allows a space
character instead of requiring a 'T' between date and time in an ISO-8601
timestamp. Facilitates parsing of JDBC timestamp format.
Status: Patch Available (was: Open)
A minor change confined to src/org/apache/pig/builtin/ToDate.java
test case test/org/apache/pig/test/TestBuiltin.java was also extended
> 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)