Skip to content
Merged
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
15 changes: 0 additions & 15 deletions docs/src/main/sphinx/admin/properties-optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@

Enables optimization for aggregations on dictionaries.

## `optimizer.optimize-hash-generation`

- **Type:** {ref}`prop-type-boolean`
- **Default value:** `false`
- **Session property:** `optimize_hash_generation`

Compute hash codes for distribution, joins, and aggregations early during execution,
allowing result to be shared between operations later in the query. This can reduce
CPU usage by avoiding computing the same hash multiple times, but at the cost of
additional network transfer for the hashes. In most cases it decreases overall
query processing time.

It is often helpful to disable this property, when using {doc}`/sql/explain` in order
to make the query plan easier to read.

## `optimizer.optimize-metadata-queries`

- **Type:** {ref}`prop-type-boolean`
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/sql/reset-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default value.
## Examples

```sql
RESET SESSION optimize_hash_generation;
RESET SESSION query_max_run_time;
RESET SESSION hive.optimized_reader_enabled;
```

Expand Down
5 changes: 2 additions & 3 deletions docs/src/main/sphinx/sql/set-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ lost.

## Examples

The following example sets a system session property to enable optimized hash
generation:
The following example sets a system session property change maximum query run time:

```sql
SET SESSION optimize_hash_generation = true;
SET SESSION query_max_run_time = '10m';
```

The following example sets the `incremental_refresh_enabled` catalog session
Expand Down