Refactor 0527#63712
Merged
Merged
Conversation
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: ParquetReader::_read_filter_columns evaluated localized filters through FileLocalFilter::predicates, while the localized filter expression is stored in FileLocalFilter::conjunct. This changes the lazy filter path to execute the conjunct and intersect its result with the selection vector.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. build-support/clang-format.sh and build-support/check-format.sh could not run because clang-format/llvm@16 is not installed in this environment. Compile test was not run because the existing compile_commands.json points to unavailable /mnt paths and ninja is not installed.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: NewParquetReaderTest only populated FileLocalFilter::predicates for local predicate filtering. Parquet row group pruning still uses predicates, while row filtering now uses conjunct, so the tests need to populate both with matching semantics.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. ./run-be-ut.sh --run '--filter=NewParquetReaderTest.*' could not run because JAVA_HOME points to JDK 11 and JDK_17 is not set. build-support/check-format.sh could not run because clang-format is not installed.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: ParquetReader now calls VExprContext::execute_filter directly, but parquet_reader.cpp only had the forward declaration from vexpr_fwd.h. Include vexpr_context.h so the method definition is visible.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: TableReader did not have a test that reused the same instance across repeated split lifecycles. Add a test that simulates init() followed by prepare_split(), get_block(), and close() three times, with comments documenting the intended scanner workflow.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. ./run-be-ut.sh --run '--filter=TableReaderTest.*' could not run because JAVA_HOME points to JDK 11 and JDK_17 is not set. build-support/check-format.sh could not run because clang-format is not installed.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: TableReader split lifecycle coverage did not include the case where TableReadOptions::projected_columns does not match the ParquetReader file-local schema. Add a negative test that requests a missing projected field and verifies get_block() rejects the mismatch when the split is opened lazily.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. ./run-be-ut.sh --run '--filter=TableReaderTest.*' could not run because JAVA_HOME points to JDK 11 and JDK_17 is not set. build-support/check-format.sh could not run because clang-format is not installed.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: TableReader tests covered rejected projected_columns mismatches but not schema differences that ColumnMapper can resolve through projection expressions. Add a case where ParquetReader exposes id/value while TableReadOptions requests renamed table columns and an INT-to-BIGINT projection, covering SlotRef and Cast output paths.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. ./run-be-ut.sh --run '--filter=TableReaderTest.*' could not run because JAVA_HOME points to JDK 11 and JDK_17 is not set. build-support/check-format.sh could not run because clang-format is not installed.
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary: TableReader schema mismatch coverage did not distinguish same-name columns with different field ids. Add a test proving ColumnMapper in BY_FIELD_ID mode rejects a projected column whose name matches the Parquet field but whose id does not.
### Release note
None
### Check List (For Author)
- Test: Manual test
- Ran git diff --check. ./run-be-ut.sh --run '--filter=TableReaderTest.*' could not run because JAVA_HOME points to JDK 11 and JDK_17 is not set. build-support/check-format.sh could not run because clang-format is not installed.
- Behavior changed: No
- Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)