Conversation
Contributor
|
Workflow [PR], commit [67dc5ff] Summary: ❌
|
Member
|
@scanhex12, attach ClickBench results here before merging. |
Member
|
@scanhex12, create isolated tests that reproduce the bug deterministically. |
alexey-milovidov
approved these changes
Jan 30, 2026
Member
alexey-milovidov
left a comment
There was a problem hiding this comment.
Wow, those are seriously good speed-ups!
al13n321
approved these changes
Jan 30, 2026
al13n321
reviewed
Feb 2, 2026
| else | ||
| { | ||
| size_t remaining = rows_total - row_subidx; | ||
| const UInt8 * const first_one = static_cast<const UInt8 *>(memchr(filter_base + row_subidx, 1, remaining)); |
Member
There was a problem hiding this comment.
insert into function file('t.parquet') select if(number%10,2,0) as x from numbers(100) settings engine_file_truncate_on_insert=1;
select count() from file('t.parquet') prewhere x;
Member
Author
There was a problem hiding this comment.
seems like it works:
:) insert into function file('t.parquet') select if(number%10,2,0) as x from numbers(100) settings engine_file_truncate_on_insert=1;
select count() from file('t.parquet') prewhere x;
INSERT INTO FUNCTION file('t.parquet')
SETTINGS engine_file_truncate_on_insert = 1
SELECT if(number % 10, 2, 0) AS x
FROM numbers(100)
SETTINGS engine_file_truncate_on_insert = 1
Query id: 8692db55-1924-460c-9015-b25fdca9180e
Ok.
0 rows in set. Elapsed: 0.005 sec.
SELECT count()
FROM file('t.parquet')
PREWHERE x
Query id: f8bb1455-43fc-4f42-9174-9418a6278c94
┌─count()─┐
1. │ 90 │
└─────────┘
1 row in set. Elapsed: 0.004 sec.
al13n321
reviewed
Feb 2, 2026
al13n321
reviewed
Feb 2, 2026
a0a8eae to
a68e002
Compare
Member
Author
|
Sorry, there were segfaults in the previous results. New benchmarks: Master branch: Speedups (greater is better): Geometric mean becomes better: |
Member
Author
|
Results on my mac seems better: with multistage prewhere: On master: Geometric mean (~10% speedup): Requests only with multistage prewhere (~20-25% speedup): |
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.
Reverts #95496