Skip to content

ORC-677: Add a deprecated legacy constructor SargApplier back - #557

Merged
dongjoon-hyun merged 2 commits into
apache:masterfrom
dongjoon-hyun:ORC-677
Oct 29, 2020
Merged

dongjoon-hyun merged 2 commits into
apache:masterfrom
dongjoon-hyun:ORC-677

Conversation

@dongjoon-hyun

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

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to add a deprecated legacy constructor SargApplier back.

Why are the changes needed?

ORC-27 removes this at Apache ORC 1.5.9 and 1.6.3 and this causes a compilation error at Apache Hive 3.1 branch (apache/hive#1615).

How was this patch tested?

Pass the CI with the newly added test case.

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this please, @omalley ?

@dongjoon-hyun dongjoon-hyun changed the title ORC-677. Add a deprecated legacy constructor SargApplier back ORC-677: Add a deprecated legacy constructor SargApplier back Oct 28, 2020
@dongjoon-hyun dongjoon-hyun reopened this Oct 28, 2020
@dongjoon-hyun dongjoon-hyun reopened this Oct 28, 2020
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

On the master branch, Travis CI passed.

[INFO] --- findbugs-maven-plugin:3.0.5:check (analyze-compile) @ orc-core ---
[INFO] BugInstance size is 0
[INFO] Error size is 0
[INFO] No errors/warnings found

But, in this PR, the same code path failed like the following.

[INFO] --- findbugs-maven-plugin:3.0.5:check (analyze-compile) @ orc-core ---
[INFO] BugInstance size is 1
[INFO] Error size is 0
[INFO] Total bugs: 1
[INFO] Using .equals to compare two boolean[]'s, (equivalent to ==) in org.apache.orc.impl.TestRecordReaderImpl.testPositionalEvolutionAddColumnPPD() [org.apache.orc.impl.TestRecordReaderImpl] At TestRecordReaderImpl.java:[line 2301] EC_BAD_ARRAY_COMPARE
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache ORC ......................................... SUCCESS [  4.086 s]
[INFO] ORC Shims .......................................... SUCCESS [  9.718 s]
[INFO] ORC Core ........................................... FAILURE [02:17 min]
[INFO] ORC MapReduce ...................................... SKIPPED
[INFO] ORC Tools .......................................... SKIPPED
[INFO] ORC Examples ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:32 min
[INFO] Finished at: 2020-10-28T22:46:33Z
[INFO] Final Memory: 52M/523M
[INFO] ------------------------------------------------------------------------

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

After #559 is merged, I'll rebase this PR. It seems that #559 recovers Travis CI's failure.

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Rebased to the master.

boolean[] rows = applier.pickRowGroups(new ReaderImpl.StripeInformationImpl(stripe, 1, -1, null),
indexes, null, encodings, null, false);
assertEquals(SargApplier.READ_ALL_RGS, rows); //cannot filter for new column, return all rows
assertEquals(true, Arrays.equals(SargApplier.READ_ALL_RGS, rows)); //cannot filter for new column, return all rows

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is irrelevant but satisfies the Travis CI's EC_BAD_ARRAY_COMPARE error detection. We can make this as a separate PR.

@dongjoon-hyun
dongjoon-hyun merged commit b36b091 into apache:master Oct 29, 2020
@dongjoon-hyun
dongjoon-hyun deleted the ORC-677 branch October 29, 2020 15:11
dongjoon-hyun added a commit that referenced this pull request Oct 29, 2020
### What changes were proposed in this pull request?

This PR aims to add a deprecated legacy constructor `SargApplier` back.

### Why are the changes needed?

ORC-27 removes this at Apache ORC 1.5.9 and 1.6.3 and this causes a compilation error at Apache Hive 3.1 branch (apache/hive#1615).
- ORC-27: 949c744#diff-8678415090c906d11e0aa6241ba24643192cd66617c68d8deb0f7efe74dd2ba3L876-R883

### How was this patch tested?

Pass the CI with the newly added test case.

(cherry picked from commit b36b091)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun added a commit that referenced this pull request Oct 29, 2020
This PR aims to add a deprecated legacy constructor `SargApplier` back.

ORC-27 removes this at Apache ORC 1.5.9 and 1.6.3 and this causes a compilation error at Apache Hive 3.1 branch (apache/hive#1615).
- ORC-27: 949c744#diff-8678415090c906d11e0aa6241ba24643192cd66617c68d8deb0f7efe74dd2ba3L876-R883

Pass the CI with the newly added test case.

(cherry picked from commit b36b091)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit 98fa6ab)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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.

1 participant