Skip to content

Revert "Revert "Fix inconsistent formatting of TTL""#85749

Merged
alexey-milovidov merged 8 commits intomasterfrom
revert-84475-revert-82831-fix-inconsistent-formatting-ttl
Oct 13, 2025
Merged

Revert "Revert "Fix inconsistent formatting of TTL""#85749
alexey-milovidov merged 8 commits intomasterfrom
revert-84475-revert-82831-fix-inconsistent-formatting-ttl

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov commented Aug 17, 2025

Changelog category (leave one):

  • Improvement

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

Fix inconsistent formatting of TTL when it contains a materialize function. Closes #82828.

@alexey-milovidov alexey-milovidov marked this pull request as draft August 17, 2025 00:32
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Aug 17, 2025

Workflow [PR], commit [5f351aa]

Summary:

job_name test_name status info comment
Stateless tests (amd_debug, AsyncInsert, s3 storage, sequential) failure
01154_move_partition_long FAIL
Killed by signal (in clickhouse-server.log or clickhouse-server.err.log) FAIL
Fatal messages (in clickhouse-server.log or clickhouse-server.err.log) FAIL

@clickhouse-gh clickhouse-gh bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 17, 2025
@alexey-milovidov alexey-milovidov marked this pull request as ready for review October 12, 2025 19:11
@clickhouse-gh clickhouse-gh bot added pr-improvement Pull request with some product improvements and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Oct 12, 2025
@alexey-milovidov alexey-milovidov self-assigned this Oct 13, 2025
@alexey-milovidov alexey-milovidov merged commit 81dafb1 into master Oct 13, 2025
120 of 123 checks passed
@alexey-milovidov alexey-milovidov deleted the revert-84475-revert-82831-fix-inconsistent-formatting-ttl branch October 13, 2025 20:09
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 13, 2025
@@ -0,0 +1,3 @@
DROP TABLE IF EXISTS t0;
CREATE TABLE t0 (c0 Date) ENGINE = MergeTree() ORDER BY () TTL (materialize(c0));
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.

If the TTL is set on the column, it will also work, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It should. Although this case is not really important (whether a TTL expression starting with the materialize function works or not), the goal here is to avoid "inconsistent parsing".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements 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.

Inconsistent formatting of TTL

3 participants