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 2022/04/06 04:20:57 UTC

[GitHub] [orc] dongjoon-hyun opened a new pull request, #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

dongjoon-hyun opened a new pull request, #1082:
URL: https://github.com/apache/orc/pull/1082

   ### What changes were proposed in this pull request?
   
   This pr is aimed at using `isNaN` instead of `isFinite` to determine the contain NaN values.
   I want to exclude Double.POSITIVE_INFINITY / Double.NEGATIVE_INFINITY both cases, and only match NaN.
   
   ### Why are the changes needed?
   
   In the case of a sum overflow we can also predicate down to skip the corresponding strip.
   
   ### How was this patch tested?
   
   Added unit test.


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


[GitHub] [orc] dongjoon-hyun closed pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values
URL: https://github.com/apache/orc/pull/1082


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


[GitHub] [orc] dongjoon-hyun commented on a diff in pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1082:
URL: https://github.com/apache/orc/pull/1082#discussion_r843447685


##########
java/core/src/test/org/apache/orc/TestVectorOrcFile.java:
##########
@@ -4153,6 +4153,96 @@ public void testPredicatePushdownWithNan() throws Exception {
     assertEquals(0, batch.size);
   }
 
+  @ParameterizedTest
+  @MethodSource("data")
+  public void testPredicatePushdownWithSumOverflow(Version fileFormat) throws Exception {

Review Comment:
   Ah, this is incompatible with branch-1.6. Let me fix it, @guiyanakuang .
   - https://github.com/apache/orc/runs/5844990614?check_suite_focus=true



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


[GitHub] [orc] dongjoon-hyun commented on pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on PR #1082:
URL: https://github.com/apache/orc/pull/1082#issuecomment-1089821165

   This is merged via https://github.com/apache/orc/commit/d15022fe7ce007533ea66918db877024eed3403b


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


[GitHub] [orc] dongjoon-hyun commented on pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on PR #1082:
URL: https://github.com/apache/orc/pull/1082#issuecomment-1089798466

   After passing tests, this will be merged as @guiyanakuang 's authorship.


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


[GitHub] [orc] guiyanakuang commented on a diff in pull request #1082: ORC-1147: Use isNaN instead of isFinite to determine the contain NaN values

Posted by GitBox <gi...@apache.org>.
guiyanakuang commented on code in PR #1082:
URL: https://github.com/apache/orc/pull/1082#discussion_r843458885


##########
java/core/src/test/org/apache/orc/TestVectorOrcFile.java:
##########
@@ -4153,6 +4153,96 @@ public void testPredicatePushdownWithNan() throws Exception {
     assertEquals(0, batch.size);
   }
 
+  @ParameterizedTest
+  @MethodSource("data")
+  public void testPredicatePushdownWithSumOverflow(Version fileFormat) throws Exception {

Review Comment:
   Thanks for fixing this incompatibility. 😃



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