You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Gabor Szadovszky (JIRA)" <ji...@apache.org> on 2019/01/09 10:33:00 UTC

[jira] [Created] (PARQUET-1489) Insufficient documentation for UserDefinedPredicate.keep(T)

Gabor Szadovszky created PARQUET-1489:
-----------------------------------------

             Summary: Insufficient documentation for UserDefinedPredicate.keep(T)
                 Key: PARQUET-1489
                 URL: https://issues.apache.org/jira/browse/PARQUET-1489
             Project: Parquet
          Issue Type: Improvement
          Components: parquet-mr
            Reporter: Gabor Szadovszky
            Assignee: Gabor Szadovszky


The parquet-mr library invokes [UserDefinedPredicate.keep(T)|https://github.com/apache/parquet-mr/blob/master/parquet-column/src/main/java/org/apache/parquet/filter2/predicate/UserDefinedPredicate.java#L47] with {{null}} values. (This is the only way parquet-mr can check if a {{null}} fulfills the UDP.) This fact is not highlighted in the documentation of the method which can easily lead to an unexpected NPE.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)