You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backport #119873 to 26.7: Combine small blocks into one Arrow IPC record batch on output - #120427
Original pull-request #119873
Cherry-pick pull-request #120397
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The two new settings are missing from the Arrow documentation tables on 26.7
On this line those tables live in ArrowBlockInputFormat.cpp, not in ArrowIPC/ArrowIPCBlockInputFormat.cpp where master keeps them, so the two documentation rows of #119873 did not travel with the cherry-pick: the file contains no output_format_arrow_record_batch_size here, while the 26.8 backport (#120428) carries the rows in its ArrowIPC file.
Effect: on a 26.7 server built from this branch, SELECT description FROM system.formats WHERE name IN ('Arrow', 'ArrowStream') documents the other nine output_format_arrow_* settings but not the two the native writer now honours by default. No check compares those tables against the settings, so CI stays green either way.
The four rows below close it, two per table, after the output_format_arrow_low_cardinality_as_dictionary row (:453 and :589). Each states that the setting reaches the native writer only, the way the neighbouring output_format_arrow_unsupported_types_as_binary row states its scope: with output_format_arrow_use_native_writer = 0 the library writer ignores both settings, which I measured on this line as 64 record batches instead of 1. I built the branch with them (clang-21, as ci/defs/defs.py pins here) and 05211_arrow_output_record_batch_coalescing, 02995_new_settings_history and 02326_settings_changes_system_table pass, with both settings then present in system.formats.
The four rows
In the Arrow table:
| `output_format_arrow_record_batch_size` | Target rows per record batch when combining small blocks. Buffering can increase memory use and delay the first batch until the query finishes. `0` disables the row target. Applies to the native writer only. | `0` |
| `output_format_arrow_record_batch_size_bytes` | Target bytes of accumulated block data per record batch. Buffering can increase memory use and delay the first batch until the query finishes. `0` disables the byte target. Applies to the native writer only. | `0` |
In the ArrowStream table:
| `output_format_arrow_record_batch_size` | Target rows per record batch when combining small blocks. Buffering can increase memory use and delay the first batch until the query finishes. `0` disables the row target. Applies to the native writer only. | `0` |
| `output_format_arrow_record_batch_size_bytes` | Target bytes of accumulated block data per record batch. Buffering can increase memory use and delay the first batch until the query finishes. `0` disables the byte target. Applies to the native writer only. | `0` |
Fine by me to leave the cherry-pick minimal if you would rather keep it identical to what merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pr-backportChanges, backported to release branch. Do not use manually - automated use only!
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #119873
Cherry-pick pull-request #120397
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.11.7