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

ASF GitHub Bot commented on DRILL-7495:
---------------------------------------

KazydubB commented on pull request #1941: DRILL-7495: Excel Reader Not Parsing 
Dates Correctly in First Column
URL: https://github.com/apache/drill/pull/1941#discussion_r362183747
 
 

 ##########
 File path: 
contrib/format-excel/src/main/java/org/apache/drill/exec/store/excel/ExcelBatchReader.java
 ##########
 @@ -519,7 +519,10 @@ public void load(Cell cell) {
       if (cellValue == null) {
         columnWriter.setNull();
       } else {
-        Instant timeStamp = new Instant(cellValue.getNumberValue());
+        logger.debug("Cell value: {}", cellValue.getNumberValue());
+
+        Date dt = DateUtil.getJavaDate(cellValue.getNumberValue());
 
 Review comment:
   Thanks for the explanation, I think we are good then.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Excel Reader Not Parsing Dates Correctly in First Column
> --------------------------------------------------------
>
>                 Key: DRILL-7495
>                 URL: https://issues.apache.org/jira/browse/DRILL-7495
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.17.0
>            Reporter: Charles Givre
>            Assignee: Charles Givre
>            Priority: Minor
>              Labels: ready-to-commit
>             Fix For: 1.18.0
>
>
> The Excel format plugin is throwing an error if there is a date/time in the 
> first column.  
> *Workaround*
> Set {{allTextMode}} to true and it will query the data w/o issues. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to