Skip to content

avoid caching the partition key for non-deterministic functions#92844

Merged
mstetsyuk merged 6 commits intomasterfrom
avoid-caching-primary-key-s3-storage
Jan 5, 2026
Merged

avoid caching the partition key for non-deterministic functions#92844
mstetsyuk merged 6 commits intomasterfrom
avoid-caching-primary-key-s3-storage

Conversation

@mstetsyuk
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

In the S3 table engine, we should avoid caching the partition key if there are non-deterministic functions.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Dec 22, 2025

Workflow [PR], commit [43af0d6]

Summary:

job_name test_name status info comment
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: (STID: 1941-1bfa) FAIL cidb, issue

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Dec 22, 2025
@kssenii kssenii self-assigned this Dec 23, 2025
@mstetsyuk mstetsyuk marked this pull request as ready for review December 23, 2025 16:19
@kssenii
Copy link
Copy Markdown
Member

kssenii commented Dec 29, 2025

Can you please check bugfix check? Seems the test does not reproduce the bug


ColumnPtr HiveStylePartitionStrategy::computePartitionKey(const Chunk & chunk)
{
// Build Hive-style AST (already includes toString wrapping)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw as I remember /// is for comments and // is for commenting out code parts according to style.md somewhere in doc

@mstetsyuk mstetsyuk added this pull request to the merge queue Jan 5, 2026
Merged via the queue into master with commit 34040ba Jan 5, 2026
129 of 131 checks passed
@mstetsyuk mstetsyuk deleted the avoid-caching-primary-key-s3-storage branch January 5, 2026 16:41
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants