[ https://issues.apache.org/jira/browse/PIG-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-4578: ---------------------------- Resolution: Fixed Fix Version/s: 0.16.0 Status: Resolved (was: Patch Available) Patch committed to trunk. Thanks Michael! > 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 > Fix For: 0.16.0 > > Attachments: iso8601AllowSpace.patch > > > 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)