Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TTL Export 2.0#1848

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

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

Conversation

@arthurpassos

@arthurpassos arthurpassos commented May 27, 2026

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)

Copy link
Copy Markdown
Collaborator Author

@codex review

github-actions Bot commented May 27, 2026
edited
Loading

Copy link
Copy Markdown

Workflow [PR], commit [702f498]

@arthurpassos arthurpassos changed the title (削除) first impl, ai made (削除ここまで) (追記) TTL Export 2.0 (追記ここまで) May 27, 2026

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

Copy link
Copy Markdown

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

i️ 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);

@chatgpt-codex-connector chatgpt-codex-connector Bot May 27, 2026

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

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /