Skip to content

Conversation

@arthurpassos
Copy link
Collaborator

Changelog category (leave one):

  • Improvement

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

Preserve the entire format settings object in export part manifest

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

@github-actions
Copy link

github-actions bot commented Nov 15, 2025

Workflow [PR], commit [f941909]

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 6299 to 6302
destination_file_path,
manifest.overwrite_file_if_exists,
format_settings,
context_copy);

Choose a reason for hiding this comment

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

P0 Badge Replace undefined format settings/context when importing part

The call to destination_storage->import now passes format_settings and context_copy, but both identifiers are undefined in this function after the struct switched to storing the whole FormatSettings. This code will not compile. The import call should use the settings carried in manifest.format_settings (wrapped in an optional to match the new signature) and pass an existing context (local_context or a freshly created copy) instead of relying on removed variables.

Useful? React with 👍 / 👎.

Comment on lines 13 to 26
const StorageID & destination_storage_id_,
const DataPartPtr & data_part_,
bool overwrite_file_if_exists_,
bool parallel_formatting_,
bool parallel_formatting_parquet_,
std::size_t max_threads_)
const FormatSettings & format_settings_)
: destination_storage_id(destination_storage_id_),
data_part(data_part_),
overwrite_file_if_exists(overwrite_file_if_exists_),
parallel_formatting(parallel_formatting_),
parquet_parallel_encoding(parallel_formatting_parquet_),
max_threads(max_threads_),
format_settings(format_settings_)
create_time(time(nullptr)) {}

StorageID destination_storage_id;
DataPartPtr data_part;
bool overwrite_file_if_exists;
bool parallel_formatting;
/// parquet has a different setting for parallel formatting
bool parquet_parallel_encoding;
std::size_t max_threads;
FormatSettings format_settings;

Choose a reason for hiding this comment

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

P0 Badge Include definition of FormatSettings in manifest header

MergeTreeExportManifest now stores a FormatSettings instance by value, but the header does not include the type’s definition. Any translation unit that includes MergeTreeData.h (and thus this header) will see an unknown type and fail to compile. Include <Formats/FormatFactory.h> or another header that defines FormatSettings so the struct can be instantiated.

Useful? React with 👍 / 👎.

@Enmk Enmk merged commit 8fd1ba5 into antalya-25.8 Nov 17, 2025
138 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants