You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by GitBox <gi...@apache.org> on 2021/10/20 06:43:31 UTC

[GitHub] [orc] dongjoon-hyun commented on a change in pull request #942: ORC-879: Fix testDateTimeTypeSupport unit test

dongjoon-hyun commented on a change in pull request #942:
URL: https://github.com/apache/orc/pull/942#discussion_r732458591



##########
File path: java/tools/src/test/org/apache/orc/tools/convert/TestJsonReader.java
##########
@@ -117,10 +117,13 @@ public void testDateTimeTypeSupport() throws IOException {
         ZonedDateTime datetime5 = ZonedDateTime.of(datetime1, ZoneId.of("UTC"));
         ZonedDateTime datetime6 = ZonedDateTime.of(datetime2, ZoneId.of("America/New_York"));
 
+        String datetime4Str = datetime4.toString();
+        datetime4Str = datetime4Str.substring(0, datetime4Str.length() - 5) + "0700";

Review comment:
       Thank you, @guiyanakuang . 
   
   Previously, `.replace("07:00", "0700")` seems to do the following?
   ```
   - 2021-10-19T07:00:01.683210-0700
   + 2021-10-19T0700:01.683210-0700
   ```
   
   Then, could you give some example for the following?
   ```
   datetime4Str = datetime4Str.substring(0, datetime4Str.length() - 5) + "0700";
   ```




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

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org