pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Howard (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-4578) ToDateISO should support optional ' ' space variant used by JDBC
Date Fri, 29 May 2015 16:32:17 GMT

     [ https://issues.apache.org/jira/browse/PIG-4578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Howard updated PIG-4578:
--------------------------------
    Attachment: iso8601AllowSpace.patch

> 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
>         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)

Mime
View raw message