Repository navigation
Implement new input output format Buffers - #91156
Conversation
|
Workflow [PR], commit [007e253] Summary: ❌
|
|
@alexey-milovidov Let me know what you think. I have used |
If this format is intended for data exchange between ClickHouse servers, it's better to use |
|
Also, it will be more efficient if the structure of the block will be the following:
In this case we won't need to keep buffers for all columns in memory at once Or even better, without buffers sizes at all, for deserialization it's enough to know the number of rows in the block:
And no need for storing buffers in memory at all. But again, I don't fully understand the purpose of this data format, @alexey-milovidov |
|
@Avogar, primarily, it is for efficient data exchange between ClickHouse and WebAssembly functions. We should use serializeBinaryBulkWithMultipleStreams, as it is more natural and efficient for this use case. I agree, this is better. Slightly less convenient for the processing code, but it makes sense to lower memory consumption when writing to a file or network. For most cases, the difference does not matter, as it will be an in-memory data exchange. |
Write to a file:
Read back with an explicit column types:
If you have a table with same column types, you can populate it directly:
Inspect the table:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Implement new input output format
Buffers. This format is similar toNative; however, unlikeNative, it does not store column names, column types, or any extra metadata. Closes #84017.Documentation entry for user-facing changes