Skip to content

Conversation

@omarsmak
Copy link
Member

Fixes #3041

As I explained here, this issue seems happen as regression result from PR: #2613
So the issue is that compiled class HiveVectorizedReader refers to the shaded org.apache.iceberg.shaded.org.apache.orc.OrcTail instead of org.apache.orc.OrcTail which triggers the error that is described in the github issue when using Vectorized ORC with MR jobs.
Honestly, this is a bit annoying issue due to the inter-dependencies between Hive, Iceberg and ORC and therefore, the simplest solution is to copy OrcTail class from Hive 3.1.2 into Iceberg for this only case. However, to be honest I am not happy to copy such classes from Hive but from my humble understanding is that, such solution will be temporary until the release of Hive 4. Thus, I am submitting this PR for this purposed solution, if anybody has a better idea how to solve such issue, I will be happy to hear.

@szlta
Copy link
Contributor

szlta commented Sep 21, 2021

LGTM, I'm okay with copying this over from Hive for the time being. Checkstyle errors need to be fixed though in the copied OrcSplit class.

@omarsmak
Copy link
Member Author

LGTM, I'm okay with copying this over from Hive for the time being. Checkstyle errors need to be fixed though in the copied OrcSplit class.

Thanks for the feedback. Sure, I will fix the Checkstyle errors and update the PR.

@omarsmak
Copy link
Member Author

@szlta Checkstyle should be fixed now.

@omarsmak
Copy link
Member Author

omarsmak commented Oct 5, 2021

hey @szlta ping

@szlta
Copy link
Contributor

szlta commented Oct 11, 2021

Can you retrigger the tests? I still see some failures :(

@omarsmak omarsmak force-pushed the fix-iceberg-hive-orc branch from 6554786 to 0c69b95 Compare October 11, 2021 15:26
@omarsmak omarsmak changed the title Fix NoSuchMethodError of OrcTail with Hive3.x and Vectorized ORC ORC: Fix NoSuchMethodError of OrcTail with Hive3.x and Vectorized ORC Oct 11, 2021
@omarsmak
Copy link
Member Author

@szlta things look good now in the CI :)

@szlta
Copy link
Contributor

szlta commented Oct 12, 2021

LGTM, @pvary can you please take a look too?

@pvary pvary changed the title ORC: Fix NoSuchMethodError of OrcTail with Hive3.x and Vectorized ORC Hive: Fix NoSuchMethodError of OrcTail with Hive3.x and Vectorized ORC Oct 12, 2021
@pvary pvary merged commit 45e57e8 into apache:master Oct 12, 2021
@pvary
Copy link
Contributor

pvary commented Oct 12, 2021

Renamed the PR title, and commit message to match the contents.
Thanks for the fix @omarsmak and @szlta for the review!

@omarsmak omarsmak deleted the fix-iceberg-hive-orc branch October 12, 2021 09:11
@omarsmak
Copy link
Member Author

@rdblue I think this PR is a good candidate for 0.12.1 milestone

@rdblue rdblue added this to the Java 0.12.1 Release milestone Oct 20, 2021
@rdblue
Copy link
Contributor

rdblue commented Oct 20, 2021

Thanks, @omarsmak. I've added this to the 0.12.1 milestone.

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.

Issue on Hive orc vectorisation

4 participants