Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/en/sql-reference/table-functions/azureBlobStorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ When setting `use_hive_partitioning` is set to 1, ClickHouse will detect Hive-st
Use virtual column, created with Hive-style partitioning

``` sql
SET use_hive_partitioning = 1;
SELECT * from azureBlobStorage(config, storage_account_url='...', container='...', blob_path='http://data/path/date=*/country=*/code=*/*.parquet') where _date > '2020-01-01' and _country = 'Netherlands' and _code = 42;
```
1 change: 0 additions & 1 deletion docs/en/sql-reference/table-functions/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ When setting `use_hive_partitioning` is set to 1, ClickHouse will detect Hive-st
Use virtual column, created with Hive-style partitioning

``` sql
SET use_hive_partitioning = 1;
SELECT * from file('data/path/date=*/country=*/code=*/*.parquet') where _date > '2020-01-01' and _country = 'Netherlands' and _code = 42;
```

Expand Down
1 change: 0 additions & 1 deletion docs/en/sql-reference/table-functions/hdfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ When setting `use_hive_partitioning` is set to 1, ClickHouse will detect Hive-st
Use virtual column, created with Hive-style partitioning

``` sql
SET use_hive_partitioning = 1;
SELECT * from HDFS('hdfs://hdfs1:9000/data/path/date=*/country=*/code=*/*.parquet') where _date > '2020-01-01' and _country = 'Netherlands' and _code = 42;
```

Expand Down
1 change: 0 additions & 1 deletion docs/en/sql-reference/table-functions/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ When setting `use_hive_partitioning` is set to 1, ClickHouse will detect Hive-st
Use virtual column, created with Hive-style partitioning

``` sql
SET use_hive_partitioning = 1;
SELECT * from s3('s3://data/path/date=*/country=*/code=*/*.parquet') where _date > '2020-01-01' and _country = 'Netherlands' and _code = 42;
```

Expand Down
1 change: 0 additions & 1 deletion docs/en/sql-reference/table-functions/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ When setting `use_hive_partitioning` is set to 1, ClickHouse will detect Hive-st
Use virtual column, created with Hive-style partitioning

``` sql
SET use_hive_partitioning = 1;
SELECT * from url('http://data/path/date=*/country=*/code=*/*.parquet') where _date > '2020-01-01' and _country = 'Netherlands' and _code = 42;
```

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5856,7 +5856,7 @@ The maximum number of rows in the right table to determine whether to rerange th
DECLARE(Bool, allow_experimental_join_right_table_sorting, false, R"(
If it is set to true, and the conditions of `join_to_sort_minimum_perkey_rows` and `join_to_sort_maximum_table_rows` are met, rerange the right table by key to improve the performance in left or inner hash join.
)", EXPERIMENTAL) \
DECLARE(Bool, use_hive_partitioning, false, R"(
DECLARE(Bool, use_hive_partitioning, true, R"(
When enabled, ClickHouse will detect Hive-style partitioning in path (`/name=value/`) in file-like table engines [File](../../engines/table-engines/special/file.md#hive-style-partitioning)/[S3](../../engines/table-engines/integrations/s3.md#hive-style-partitioning)/[URL](../../engines/table-engines/special/url.md#hive-style-partitioning)/[HDFS](../../engines/table-engines/integrations/hdfs.md#hive-style-partitioning)/[AzureBlobStorage](../../engines/table-engines/integrations/azureBlobStorage.md#hive-style-partitioning) and will allow to use partition columns as virtual columns in the query. These virtual columns will have the same names as in the partitioned path, but starting with `_`.
)", EXPERIMENTAL)\
\
Expand Down
1 change: 1 addition & 0 deletions src/Core/SettingsChangesHistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
{"least_greatest_legacy_null_behavior", true, false, "New setting"},
{"object_storage_cluster", "", "", "New setting"},
{"object_storage_max_nodes", 0, 0, "New setting"},
{"use_hive_partitioning", 0, 1, "Upstream made it the default"}
}
},
{"24.11",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
10
0 1 10 1
0 2 10 1
Loading