Skip to content

Cherry pick #87987 to 25.7: Fix index analysis with session_timezone specified - #88434

Merged
robot-ch-test-poll merged 4 commits into
backport/25.7/87987from
cherrypick/25.7/87987
Oct 13, 2025
Merged

robot-ch-test-poll merged 4 commits into
backport/25.7/87987from
cherrypick/25.7/87987

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #87987

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

korowa and others added 3 commits October 10, 2025 18:57
- 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.
Fix index analysis with session_timezone specified
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Oct 13, 2025
@robot-ch-test-poll
robot-ch-test-poll merged this pull request into backport/25.7/87987 Oct 13, 2025
@robot-ch-test-poll
robot-ch-test-poll deleted the cherrypick/25.7/87987 branch October 13, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants