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

Allow coercion on complex types for unpartitioned ORC tables #22326

Conversation

Praveen2112
Copy link
Member

@Praveen2112 Praveen2112 commented Jun 7, 2024

Description

Allow coercion on complex/structural data types i.e list/map/struct for un-partitioned ORC tables.

Additional context and related issues

Depends on #22325

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Section
* Allow coercion on complex/structural data types i.e list/map/struct for un-partitioned ORC tables.

@cla-bot cla-bot bot added the cla-signed label Jun 7, 2024
@github-actions github-actions bot added docs hive Hive connector labels Jun 7, 2024
@Praveen2112 Praveen2112 changed the title Praveen/orc structural types coercion Allow coercion on complex types for unpartitioned ORC tables Jun 7, 2024
@krvikash
Copy link
Contributor

@Praveen2112

Depends on #22325

Or Depends on #22322 ?

else {
Optional<TypeCoercer<? extends Type, ? extends Type>> coercer = createCoercer(nestedColumns.get(i).getColumnType(), nestedColumns.get(i).getNestedColumns(), rowType.getFields().get(i).getType());

RowType.Field field = rowType.getFields().get(i);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about
Type rowFieldType = rowType.getFields().get(i).getType();
instead?

@Praveen2112 Praveen2112 force-pushed the praveen/orc_structural_types_coercion branch from 2069874 to ae2b44e Compare June 11, 2024 11:46
@Praveen2112
Copy link
Member Author

@krvikash / @marcinsbd AC

@Praveen2112 Praveen2112 force-pushed the praveen/orc_structural_types_coercion branch from ae2b44e to c857544 Compare June 19, 2024 07:26
@Praveen2112
Copy link
Member Author

The CI failure looks valid so I'll try to fix it out

@Praveen2112 Praveen2112 force-pushed the praveen/orc_structural_types_coercion branch from c857544 to 8c72ce3 Compare July 1, 2024 07:55
@Praveen2112 Praveen2112 force-pushed the praveen/orc_structural_types_coercion branch from 8c72ce3 to 70362ac Compare July 1, 2024 08:07
@Praveen2112
Copy link
Member Author

@raunaqmorarka Added an additional check i.e if the field names are not in order then we would skip applying the coercion - This is in sync with HiveCoercionPolicy

@Praveen2112 Praveen2112 merged commit dabe704 into trinodb:master Jul 2, 2024
57 checks passed
@github-actions github-actions bot added this to the 452 milestone Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants