[ 
https://issues.apache.org/jira/browse/PHOENIX-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301832#comment-14301832
 ] 

Jeffrey Zhong commented on PHOENIX-1142:
----------------------------------------

I c. That's a good point. 

I tested the where clause scenario and worked fine(with format string 
'yyyy-MM-dd' though) basically the new to_date will fallback to old behavior if 
a user provides a custom format either by the formatString field of the to_date 
function or configuration. (You can check DateUtil#getDateParser) Thanks.

> Improve CsvBulkLoadTool to parse different Date formats
> -------------------------------------------------------
>
>                 Key: PHOENIX-1142
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1142
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: David Kjerrumgaard
>            Assignee: Jeffrey Zhong
>         Attachments: PHOENIX-1142.patch
>
>
> Currently, the CsvBulkLoadTool uses a single 'default' format to parse dates 
> from the source CSV file. This can sometimes cause issues when the date 
> fields don't match this default format.
> Would it be possible to add a method for specifying / overriding the 
> 'default' date format?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to