You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/04/30 07:05:15 UTC

[GitHub] [iotdb] kydxh opened a new pull request #3115: [IOTDB-1315] fix for time format error in csv export

kydxh opened a new pull request #3115:
URL: https://github.com/apache/iotdb/pull/3115


   ## Fix the time format problem in csv export. 
   This is used to fix the problem in issue [IOTDB-1315], together with the time format problem in Windows system.
   
   ### First, I solved the problem that the time format yyyy-MM-dd'T'HH:mm:ss.SSSZ was not written in AbstractCsvTool.java. The modified file involves AbstractCsvTool.java. I've added this time format to 'SUPPORT_TIME_FORMAT'.
   
   ### Second, in further debugging, I found that, due to the difference in command line reading between different operating systems of Linux and Windows, not only "-tf yyyy-MM-dd\'T\'HH:mm:ss.SSSZ" will be considered as a format error under Windows, but also other time formats with spaces and ' will have format errors because of the way of adding' \ '.
   The method to correct this problem is as follows:
     In Windows operating system, the entering of time format string with ' in command line should be changed from  \ 'to direct ', such as chaning from "yyyy-MM-dd\'T\'HH:mm:ss.SSSZ" to "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; The time format string with space input from the command line can be exported normally if it is included in double quotation marks (""). For example, -tf "yyyy-MM-dd HH:mm:ss".


-- 
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:
users@infra.apache.org



[GitHub] [iotdb] HTHou merged pull request #3115: [IOTDB-1315] fix for time format error in csv export

Posted by GitBox <gi...@apache.org>.
HTHou merged pull request #3115:
URL: https://github.com/apache/iotdb/pull/3115


   


-- 
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:
users@infra.apache.org