Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ORC forced positional evolution #4972

Merged
merged 6 commits into from
Mar 25, 2022

Conversation

nartal1
Copy link
Collaborator

@nartal1 nartal1 commented Mar 16, 2022

This fixes #1922

This is to keep OrcUtils in sync with Spark's code. In the Spark PR apache/spark#29737 they have added a check for 'orc.force.positional.evolution` for matching top level column by position.
Updated the code so that when this config is set, we read the columns based on positions and not the column names.
Added test to verify the behavior.

@nartal1 nartal1 added this to the Feb 28 - Mar 18 milestone Mar 16, 2022
@nartal1 nartal1 self-assigned this Mar 16, 2022
@razajafri
Copy link
Collaborator

Adding a test is always a good idea, even if it's a simple one just to do a sanity check

@jlowe
Copy link
Member

jlowe commented Mar 17, 2022

This looks good, but agree it would be nice to have a test to show this works. The original Spark PR could be a reference of how to approach testing this.

@nartal1
Copy link
Collaborator Author

nartal1 commented Mar 24, 2022

build

@nartal1 nartal1 changed the title Add check for ORC forced positional evolution in OrcUtils Add support for ORC forced positional evolution Mar 24, 2022
Signed-off-by: Niranjan Artal <nartal@nvidia.com>
@nartal1
Copy link
Collaborator Author

nartal1 commented Mar 24, 2022

build

@nartal1 nartal1 merged commit c0b29dd into NVIDIA:branch-22.04 Mar 25, 2022
@nartal1 nartal1 deleted the orc_utils branch March 29, 2022 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] Support ORC forced positional evolution
4 participants