Repository navigation
Fix index analysis with session_timezone specified - #87987
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [2eddddd] Summary: ❌
|
azat
reviewed
Oct 6, 2025
azat
left a comment
Member
There was a problem hiding this comment.
PTAL at the test failures, by some reason test with xxHash32 failed
korowa
marked this pull request as draft
October 7, 2025 08:36
korowa
force-pushed
the
fix-sess-tz-index-analysis
branch
4 times, most recently
from
October 10, 2025 05:09
d3665f7 to
43ba03b
Compare
korowa
marked this pull request as ready for review
October 10, 2025 07:55
Contributor
Author
|
Unrelated, 00159_parallel_formatting_http has couple of failures on the TSAN builds related to curl timeouts, will check if the query can be less heavy. |
azat
reviewed
Oct 10, 2025
azat
approved these changes
Oct 10, 2025
- The main issue was caused by rebuilding key functions chain using the new context (which inferred timezone into the functions). Since now function chain will return the original functions from tables key, all the LowCardinality handling performed while applying the chain of functions. - Disabling index analysis for indexes containing date parsing functions in case the query specifies non-empty session timezone, and it's required to parse datetime from string, as this part is not working properly since at least 24.1.
korowa
force-pushed
the
fix-sess-tz-index-analysis
branch
from
October 10, 2025 15:57
43ba03b to
9face16
Compare
azat
enabled auto-merge
October 10, 2025 16:15
Member
This was referenced Oct 13, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Oct 13, 2025
This was referenced Oct 13, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Oct 13, 2025
azat
added a commit
that referenced
this pull request
Oct 13, 2025
Backport #87987 to 25.9: Fix index analysis with session_timezone specified
azat
added a commit
that referenced
this pull request
Oct 13, 2025
Backport #87987 to 25.8: Fix index analysis with session_timezone specified
robot-clickhouse
added a commit
that referenced
this pull request
Oct 13, 2025
robot-clickhouse
added a commit
that referenced
this pull request
Oct 13, 2025
azat
added a commit
that referenced
this pull request
Oct 14, 2025
Backport #87987 to 25.7: Fix index analysis with session_timezone specified
azat
added a commit
that referenced
this pull request
Oct 14, 2025
Backport #87987 to 25.3: Fix index analysis with session_timezone specified
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.
Closes #86654
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix for incorrect granules/partitions elimination for datetime-based keys, when using
session_timezonesetting in queriesFixes: #65335