Skip to content

Allow Coercion between hive Union and hive struct for Hive ORC table#15017

Merged
phd3 merged 2 commits intotrinodb:masterfrom
groupcache4321:UnionAsStruct
Jan 17, 2023
Merged

Allow Coercion between hive Union and hive struct for Hive ORC table#15017
phd3 merged 2 commits intotrinodb:masterfrom
groupcache4321:UnionAsStruct

Conversation

@groupcache4321
Copy link
Copy Markdown
Contributor

@groupcache4321 groupcache4321 commented Nov 14, 2022

Description

Allow Coercion between hive Union and hive struct, at LinkedIn we have the need to declare the table schema as struct and reading some partitions in union definition.

Since Trino internally treat union as struct, this PR allows coercions between struct and union(after union get converted to Struct)

Related PR:
#3483
e071da4

Non-technical explanation

Allow Coercion between hive Union and hive struct

Release notes

( ) This is not user-visible or 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:

# Hive
*Allow Coercion between Union and Struct typed columns.

@phd3
Copy link
Copy Markdown
Member

phd3 commented Nov 16, 2022

cc @electrum @kokosing

@groupcache4321 groupcache4321 changed the title Allow Coercion between hive Union and hive struct Allow Coercion between hive Union and hive struct for Hive ORC table Dec 3, 2022
@groupcache4321 groupcache4321 marked this pull request as ready for review December 3, 2022 00:12
@groupcache4321 groupcache4321 force-pushed the UnionAsStruct branch 3 times, most recently from 6a9dbc3 to f7a2959 Compare December 21, 2022 05:40
@groupcache4321
Copy link
Copy Markdown
Contributor Author

hi, I updated the PR, it is ready to review. Rebase on latest master branch, which include changes from: #15278

@phd3 phd3 self-requested a review January 5, 2023 20:16
@groupcache4321
Copy link
Copy Markdown
Contributor Author

Hi, it has been updated, please take a further look.

@phd3 phd3 merged commit 3f91bee into trinodb:master Jan 17, 2023
@github-actions github-actions bot added this to the 406 milestone Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants