Skip to content

[Parquet] reader appears to have bug when supporting unknown sort orders #7909

@emkornfield

Description

@emkornfield

Describe the bug

The current reader code for interpreting sort orders, does not appear to push back any elements into the Vec if the sort order does not match TYPEORDER. If this is correct reading (not very familiar with Rust). Then for any new sort orders added there is likely going to be a panic or error when trying to make use of the returned vector.

To Reproduce

N/A, this is from code inspection.

Expected behavior

When an unmatched sort order is encountered UNKNOWN/Undefined sort order is pushed back

Additional context

I was reading this code in the context of how to handle recent discussions around defining int96 sort order in the specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions