-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix] handle null value in dict colum in parquet file #25800
Merged
Merged
Conversation
This file contains 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
DorianZheng
reviewed
Jun 25, 2023
DorianZheng
requested changes
Jun 25, 2023
DorianZheng
reviewed
Jun 25, 2023
DorianZheng
reviewed
Jun 27, 2023
The test case is too flaky in the CI test. I'll submit another PR to add test cases. It's because oss is not well supported in sql-tester right now. I'll submit another PR to fix that. |
dirtysalt
force-pushed
the
fix-or-predicate
branch
from
June 27, 2023 08:34
c044597
to
ed217c1
Compare
zombee0
reviewed
Jun 27, 2023
Youngwb
previously approved these changes
Jun 27, 2023
zombee0
reviewed
Jun 27, 2023
zombee0
reviewed
Jun 27, 2023
zombee0
reviewed
Jun 28, 2023
zombee0
approved these changes
Jun 28, 2023
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Signed-off-by: yanz <dirtysalt1987@gmail.com>
dirtysalt
force-pushed
the
fix-or-predicate
branch
from
June 28, 2023 23:38
3bf2962
to
020dcfd
Compare
Signed-off-by: yanz <dirtysalt1987@gmail.com>
another implementation
|
Signed-off-by: yanz <dirtysalt1987@gmail.com>
after saving a branch, a little better
|
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Youngwb
reviewed
Jun 30, 2023
Youngwb
reviewed
Jun 30, 2023
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Youngwb
previously approved these changes
Jun 30, 2023
Signed-off-by: yanz <dirtysalt1987@gmail.com>
Youngwb
approved these changes
Jun 30, 2023
[FE PR Coverage Check]😍 pass : 0 / 0 (0%) |
stephen-shelby
approved these changes
Jun 30, 2023
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Jun 30, 2023
This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts. (cherry picked from commit a0a54ac) # Conflicts: # be/src/bench/CMakeLists.txt
wanpengfei-git
pushed a commit
that referenced
this pull request
Jun 30, 2023
This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts. (cherry picked from commit a0a54ac) # Conflicts: # be/src/bench/CMakeLists.txt
JackeyLee007
pushed a commit
to JackeyLee007/starrocks
that referenced
this pull request
Jul 1, 2023
…5800) This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts.
JackeyLee007
pushed a commit
to JackeyLee007/starrocks
that referenced
this pull request
Jul 1, 2023
…5800) This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts.
mergify bot
pushed a commit
that referenced
this pull request
Jul 2, 2023
This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts. (cherry picked from commit a0a54ac) # Conflicts: # be/src/bench/CMakeLists.txt (cherry picked from commit 47771bf) # Conflicts: # be/src/bench/CMakeLists.txt # be/src/bench/parquet_writer_array_bench.cpp # be/src/bench/parquet_writer_bench.cpp
wanpengfei-git
pushed a commit
that referenced
this pull request
Jul 2, 2023
This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts. (cherry picked from commit a0a54ac) # Conflicts: # be/src/bench/CMakeLists.txt (cherry picked from commit 47771bf) # Conflicts: # be/src/bench/CMakeLists.txt # be/src/bench/parquet_writer_array_bench.cpp # be/src/bench/parquet_writer_bench.cpp
@mergify backport branch-2.5 |
✅ Backports have been created
|
mergify bot
pushed a commit
that referenced
this pull request
Jul 2, 2023
This PR is to fix dict filtering when null value in dict column. Right now we intercept `is_null` function(on top) on dict column, however, that's not enough. Because for some predicates like `(c = 'a' or c is null)` or `coalesce(c, 'a')`, there is no `is_null` function on top, there is `is_null` function inside. So the right way to handle null value, is to evaluate null value in conjuncts. (cherry picked from commit a0a54ac) # Conflicts: # be/src/bench/CMakeLists.txt # be/src/bench/parquet_writer_array_bench.cpp # be/src/bench/parquet_writer_bench.cpp # be/src/formats/parquet/column_chunk_reader.h # be/src/formats/parquet/column_reader.cpp # be/src/formats/parquet/column_reader.h # be/src/formats/parquet/encoding.h # be/src/formats/parquet/encoding_dict.h # be/src/formats/parquet/group_reader.cpp # be/src/formats/parquet/stored_column_reader.h # test/lib/choose_cases.py # test/lib/skip.py
16 tasks
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.
Fixes #issue
This PR is to fix dict filtering when null value in dict column.
Right now we intercept
is_null
function(on top) on dict column, however, that's not enough. Because for some predicates like(c = 'a' or c is null)
orcoalesce(c, 'a')
, there is nois_null
function on top, there isis_null
function inside.So the right way to handle null value, is to evaluate null value in conjuncts.
TODO: add UT to cover predicates like above and
is_null
function on top.What type of PR is this:
Checklist:
Bugfix cherry-pick branch check: