Skip to content

Commit d24c1c1

Browse files
AvogarEnmk
authored andcommitted
Merge pull request ClickHouse#84169 from Avogar/enum-as-byte-array-parquet
Enable output_format_parquet_enum_as_byte_array by default
1 parent 5c7c31d commit d24c1c1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/Core/FormatFactorySettings.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,10 +1021,7 @@ Where in the parquet file to place the bloom filters. Bloom filters will be writ
10211021
* if greater than the total size of all bloom filters, bloom filters for all row groups will be accumulated in memory, then written together near the end of the file,
10221022
* otherwise, bloom filters will be accumulated in memory and written out whenever their total size goes above this value.
10231023
)", 0) \
1024-
DECLARE(Bool, output_format_parquet_datetime_as_uint32, false, R"(
1025-
Write DateTime values as raw unix timestamp (read back as UInt32), instead of converting to milliseconds (read back as DateTime64(3)).
1026-
)", 0) \
1027-
DECLARE(Bool, output_format_parquet_enum_as_byte_array, false, R"(
1024+
DECLARE(Bool, output_format_parquet_enum_as_byte_array, true, R"(
10281025
Write enum using parquet physical type: BYTE_ARRAY and logical type: ENUM
10291026
)", 0) \
10301027
DECLARE(String, output_format_avro_codec, "", R"(

src/Core/SettingsChangesHistory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const VersionToSettingsChangesMap & getSettingsChangesHistory()
7070

7171
addSettingsChanges(settings_changes_history, "25.6.5.2000",
7272
{
73-
{"output_format_parquet_enum_as_byte_array", false, false, "Write enum using parquet physical type: BYTE_ARRAY and logical type: ENUM"},
73+
{"output_format_parquet_enum_as_byte_array", true, true, "Enable writing Enum as byte array in Parquet by default"},
7474
});
7575
addSettingsChanges(settings_changes_history, "25.6",
7676
{

tests/queries/0_stateless/02735_parquet_encoder.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set output_format_parquet_batch_size = 100;
77
set output_format_parquet_row_group_size_bytes = 1000000000;
88
set engine_file_truncate_on_insert=1;
99
set allow_suspicious_low_cardinality_types=1;
10+
set output_format_parquet_enum_as_byte_array=0;
1011

1112
-- Write random data to parquet file, then read from it and check that it matches what we wrote.
1213
-- Do this for all kinds of data types: primitive, Nullable(primitive), Array(primitive),

0 commit comments

Comments
 (0)