Skip to content

Conversation

@arthurpassos
Copy link
Collaborator

@arthurpassos arthurpassos commented Nov 21, 2025

Changelog category (leave one):

  • Bug fix

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

Fix crash due to circular dependency

Documentation entry for user-facing changes

  • Documentation

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)
  • Tiered Storage (2h)

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Workflow [PR], commit [6b07680]

@arthurpassos arthurpassos added antalya port-antalya PRs to be ported to all new Antalya releases antalya-25.8 labels Nov 24, 2025
@arthurpassos arthurpassos changed the title Export partition initial docs Fix export part crash and add docs for export partition Nov 24, 2025
@arthurpassos
Copy link
Collaborator Author

@codex review the changes in export part

Copy link

@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.

ℹ️ 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 +147 to +151
.metadata_version = metadata_snapshot->getMetadataVersion(),
.min_part_metadata_version = manifest.data_part->getMetadataVersion()
};

auto mutations_snapshot = storage.getMutationsSnapshot(mutations_snapshot_params);

Choose a reason for hiding this comment

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

P1 Badge Preserve query mutation settings when exporting parts

The export task now reconstructs the mutations snapshot with only metadata_version and min_part_metadata_version, relying on the storage context defaults. User settings such as apply_mutations_on_fly (needed to apply unfinished mutations or lightweight deletes during export) are no longer propagated from the original EXPORT PART query, so getMutationsSnapshot returns an empty data/alter mutation set and the exported part can miss pending mutations even when the query explicitly requested them. Previously the snapshot carried the query-context settings via storage_snapshot, so this is a regression for exports that expect on-the-fly mutation application.

Useful? React with 👍 / 👎.

@Altinity Altinity deleted a comment from chatgpt-codex-connector bot Nov 25, 2025
@arthurpassos
Copy link
Collaborator Author

@codex review

Copy link

@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.

ℹ️ 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 +147 to +151
.metadata_version = metadata_snapshot->getMetadataVersion(),
.min_part_metadata_version = manifest.data_part->getMetadataVersion()
};

auto mutations_snapshot = storage.getMutationsSnapshot(mutations_snapshot_params);

Choose a reason for hiding this comment

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

P1 Badge Keep data/alter mutations in export part snapshot

The new mutations snapshot built in executeStep only sets metadata_version and min_part_metadata_version, leaving need_data_mutations, need_alter_mutations, and patch parameters at their defaults. getMutationsSnapshot therefore returns an empty snapshot whenever metadata versions match, so DELETE/UPDATE mutations or patch parts in progress are no longer applied during export. Compared to the previous use of manifest.storage_snapshot->data->mutations_snapshot (which honored apply_mutations_on_fly/apply_patch_parts), exporting a part while mutations are pending will emit stale data that does not match normal query results.

Useful? React with 👍 / 👎.

@zvonand zvonand merged commit c0d280e into antalya-25.8 Nov 25, 2025
133 of 138 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

antalya antalya-25.8 port-antalya PRs to be ported to all new Antalya releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants