Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Resolving “Cannot Append Data in Parquet Format” Error in ClickHouse
Are you getting the error “Cannot append data in format Parquet to file” error in ClickHouse? Typically the error is reported as:DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. (CANNOT_APPEND_TO_FILE)
Suppose you create a table that uses the File table engine with the Parquet format.
data.Parquet in the data/default/parquet_test folder. If you try to insert another batch:
INSERT by enabling the engine_file_allow_create_multiple_files setting. If enabled, on each insert a new file will be created with a name following this pattern:
data.Parquet -> data.1.Parquet -> data.2.Parquet, etc.:
Let’s give it a try. We will put our two commands into a single file named parquet.sql:
clickhouse-client:
data/default/parquet_test (and a new file for each subsequent insert).
The
engine_file_allow_create_multiple_files setting applies to other data formats that are not appendable, like JSON and ORC.