Skip to content

TTL Export 2.0#1848

Open
arthurpassos wants to merge 9 commits into
antalya-26.3from
apassos/antalya-26.3-ttl-export-partition
Open

TTL Export 2.0#1848
arthurpassos wants to merge 9 commits into
antalya-26.3from
apassos/antalya-26.3-ttl-export-partition

Conversation

@arthurpassos
Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • New Feature

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

TTL Export, tbd

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@arthurpassos
Copy link
Copy Markdown
Collaborator Author

@codex review

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 27, 2026

Workflow [PR], commit [555cf66]

@arthurpassos arthurpassos changed the title first impl, ai made TTL Export 2.0 May 27, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71b91813bc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +717 to +724
if (metadata.table_ttl.export_ttl.empty())
{
/// EXPORT TTL relies on the ALTER ... EXPORT PARTITION pipeline, which is only
/// available for Replicated*MergeTree.
if (!replicated)
{
throw Exception(ErrorCodes::NOT_IMPLEMENTED,
"TTL EXPORT is only supported for Replicated*MergeTree, got {}", args.engine_name);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Do not reject ordinary TTLs on non-replicated tables

This condition is inverted: for any normal table TTL such as TTL d + INTERVAL 1 DAY DELETE, metadata.table_ttl.export_ttl is empty, so every non-replicated MergeTree table with an ordinary TTL now throws TTL EXPORT is only supported for Replicated*MergeTree. The Replicated*MergeTree/partition-key restriction should only run when an EXPORT TTL is actually present.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant