Skip to content

Column with OriginalType INT_8 failed at filtering #1745

Closed

Description

@asfimport

I hit the following error when apply a filter predicate on a column with PrimitiveType = INT32 & OriginalType equal to INT_8.

java.lang.IllegalArgumentException: FilterPredicate column: c's declared type (java.lang.Integer) does not match the schema found in file metadata. Column c is of type: FullTypeDescriptor(PrimitiveType: INT32, OriginalType: INT_8)
Valid types for this column are: null
at parquet.filter2.predicate.ValidTypeMap.assertTypeValid(ValidTypeMap.java:114)

Reporter: Low Chin Wei
Assignee: Alex Levenson / @isnotinvain

Related issues:

PRs and other links:

Note: This issue was originally created as PARQUET-201. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Mar 24, 2015

    @asfimport
    Author

    Ryan Blue / @rdblue:
    @isnotinvain is this a blocker for 1.6.0?

  2. asfimport commented on Mar 25, 2015

    @asfimport
    Author

    Low Chin Wei:
    It also apply to PrimitiveType: INT32, OriginalType: INT_16

  3. asfimport commented on Mar 25, 2015

    @asfimport
    Author

    Alex Levenson / @isnotinvain:
    @rdblue we should probably fix it, it's an easy fix.

  4. asfimport commented on Apr 1, 2015

    @asfimport
    Author

    Low Chin Wei:
    When do we expect the fix to release?

  5. asfimport commented on Apr 1, 2015

    @asfimport
    Author

    Ryan Blue / @rdblue:
    @isnotinvain, I'm going to make this a blocker for the 1.6.0 release since it is a simple fix. Would you mind fixing it? I don't really know my way through the filter code.

    [~chinwei], if this makes the 1.6.0 release, then it will be released next week.

  6. asfimport commented on Apr 6, 2015

    @asfimport
    Author

    Julien Le Dem / @julienledem:
    Is there a PR for this?
    If not, I would suggest not making it a blocker for 1.6 as it does not look like a regression.

  7. asfimport commented on Apr 6, 2015

    @asfimport
    Author

    Ryan Blue / @rdblue:
    This isn't a regression because the filter2 API and INT_* types were introduced since 1.5.0. But it is a known bug with the new code and should be an easy fix. I don't mind not including this since it is so close to RC.

  8. asfimport commented on Apr 7, 2015

    @asfimport
    Author

    Ryan Blue / @rdblue:
    I'm pushing this out of 1.6.0 to get the RC out today.

  9. asfimport commented on Apr 8, 2015

    @asfimport
    Author

    Alex Levenson / @isnotinvain:
    sorry, I haven't had a chance to revisit this

  10. asfimport commented on Apr 29, 2015

    @asfimport
    Author

    Adam Gilmore:
    It seems to me like we shouldn't care so much what the original type is when checking the filter. The only case in which I can understand that is for the UTF-8 strings etc., but for numeric values it doesn't make a lot of sense to me.

  11. asfimport commented on Apr 30, 2015

    @asfimport
    Author

    Alex Levenson / @isnotinvain:
    Yes, this is probably overly strict.
    I'm trying to remember why I put this in there initially, but I agree it seems like we should let all the various kinds of numbers through.

  12. asfimport commented on Jun 24, 2015

    @asfimport
    Author

    Alex Levenson / @isnotinvain:
    Issue resolved by pull request 219
    #219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions