Skip to content

ORC-671. Add OrcTail.getStripeStatistics back - #549

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-671
Closed

dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-671

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Oct 5, 2020 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to add OrcTail.getStripeStatistics back to mitigate backward compatibility partially. After this PR, the migration becomes much easier because changing new OrcTail is easier.

  • If the existing app creates OrcTail via extractFileTail or buildEmptyTail, it will recover.
  • For the other cases, the users need to migrate to Reader.getStripeStatistics or new OrcTail constructor.

Why are the changes needed?

Apache ORC 1.6.0 ~ 1.6.5 removes getStripeStatistics during Proleptic time support. We had better keep the backward compatibility as a wrapper for the new API.

[info]   java.lang.RuntimeException: ORC split generation failed with exception: java.lang.NoSuchMethodError: org.apache.orc.impl.OrcTail.getStripeStatistics()Ljava/util/List;
[info]   at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.generateSplitsInfo(OrcInputFormat.java:1731)
[info]   at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getSplits(OrcInputFormat.java:1817)

How was this patch tested?

This is a recovery of the old API.

@dongjoon-hyun
dongjoon-hyun requested review from omalley and removed request for omalley October 5, 2020 07:29
@dongjoon-hyun
dongjoon-hyun marked this pull request as draft October 5, 2020 07:30
@dongjoon-hyun dongjoon-hyun changed the title ORC-671. Add OrcTail.getStripeStatistics back for backward compatibility ORC-671. Add OrcTail.getStripeStatistics back Oct 5, 2020
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

This is still Draft because this reveals another missing APIs.

@omalley omalley closed this in a95926f Oct 5, 2020
@omalley

omalley commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

Oh, I missed that you wanted to add more. I added a test case. :)

@omalley

omalley commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

I guess let's use a different PR for the follow up, but you can use the same jira.

1 similar comment
@omalley

omalley commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

I guess let's use a different PR for the follow up, but you can use the same jira.

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you, @omalley . Yes. I will use different JIRA for the remaining issue because the remaining issue is about another API.

@dongjoon-hyun
dongjoon-hyun deleted the ORC-671 branch October 5, 2020 20:42
dongjoon-hyun added a commit that referenced this pull request Oct 5, 2020
…lity

Fixes #549

Signed-off-by: Owen O'Malley <omalley@apache.org>
(cherry picked from commit a95926f)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Also, thank you for the test case and I tested in branch-1.6 with that test case and backported to branch-1.6, too.

zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…d compatiblility

Fixes apache#549

Signed-off-by: Owen O'Malley <omalley@apache.org>
Change-Id: Iec3f4e9bfd35f79c551994184d1aa639c3cb898e
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…d compatiblility

Fixes apache#549

Signed-off-by: Owen O'Malley <omalley@apache.org>
Change-Id: If234803e7603650b489279d729db46175bfb8f32
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…d compatiblility

Fixes apache#549

Signed-off-by: Owen O'Malley <omalley@apache.org>
Change-Id: If234803e7603650b489279d729db46175bfb8f32
zratkai pushed a commit to zratkai/orc that referenced this pull request Jun 20, 2024
…d compatiblility

Fixes apache#549

Signed-off-by: Owen O'Malley <omalley@apache.org>
Change-Id: Ie936f074eee147c92088aee60b8c3c39def5ed49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants