Skip to content

Commit

Permalink
Update example docs for SET SESSION
Browse files Browse the repository at this point in the history
Specifically change to an example from the Iceberg connector, since
current example with the Accumulo connector is no longer valid when
that connector is removed.
  • Loading branch information
mosabua committed Oct 18, 2024
1 parent 79f4247 commit 81228c9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/src/main/sphinx/sql/set-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,22 @@ lost.
The following example sets a system session property to enable optimized hash
generation:

```
```sql
SET SESSION optimize_hash_generation = true;
```

The following example sets the `optimize_locality_enabled` catalog session
property for an Accumulo catalog named `acc01`:
The following example sets the `incremental_refresh_enabled` catalog session
property for a catalog using the [](/connector/iceberg) named `example`:

```
SET SESSION acc01.optimize_locality_enabled = false;
```sql
SET SESSION example.incremental_refresh_enabled=false;
```

The example `acc01.optimize_locality_enabled` catalog session property
does not apply to any other catalog, even if another catalog also uses the
Accumulo connector.
The related catalog configuration property `iceberg.incremental-refresh-enabled`
defaults to `true`, and the session property allows you to override this setting
in for specific catalog and the current session. The
`example.incremental_refresh_enabled` catalog session property does not apply to
any other catalog, even if another catalog also uses the Iceberg connector.

## See also

Expand Down

0 comments on commit 81228c9

Please sign in to comment.