> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# default_* session settings

> ClickHouse session settings in the default_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## default\_format

Specifies the format of the query result when the query has no `FORMAT` clause and no other format override is applied.

## default\_materialized\_view\_sql\_security

Type

SQLSecurityType

Default

DEFINER

Allows to set a default value for SQL SECURITY option when creating a materialized view. [More about SQL security](https://clickhouse.com/docs/reference/statements/create/view.md#sql_security).

The default value is `DEFINER`.

## default\_max\_bytes\_in\_join

Type

UInt64

Default

1000000000

Maximum size of right-side table if limit is required but `max_bytes_in_join` is not set.

## default\_normal\_view\_sql\_security

Type

SQLSecurityType

Default

INVOKER

Allows to set default `SQL SECURITY` option while creating a normal view. [More about SQL security](https://clickhouse.com/docs/reference/statements/create/view.md#sql_security).

The default value is `INVOKER`.

## default\_table\_engine

Type

DefaultTableEngine

Default

MergeTree

Default table engine to use when `ENGINE` is not set in a `CREATE` statement.

Possible values:

* a string representing any valid table engine name

Cloud default value: `SharedMergeTree`.

**Example**

Query:

```sql theme={null}
SET default_table_engine = 'Log';

SELECT name, value, changed FROM system.settings WHERE name = 'default_table_engine';
```

Result:

```response theme={null}
┌─name─────────────────┬─value─┬─changed─┐
│ default_table_engine │ Log   │       1 │
└──────────────────────┴───────┴─────────┘
```

In this example, any new table that does not specify an `Engine` will use the `Log` table engine:

Query:

```sql theme={null}
CREATE TABLE my_table (
    x UInt32,
    y UInt32
);

SHOW CREATE TABLE my_table;
```

Result:

```response theme={null}
┌─statement────────────────────────────────────────────────────────────────┐
│ CREATE TABLE default.my_table
(
    `x` UInt32,
    `y` UInt32
)
ENGINE = Log
└──────────────────────────────────────────────────────────────────────────┘
```

## default\_temporary\_table\_engine

Type

DefaultTableEngine

Default

Memory

Same as [default\_table\_engine](https://clickhouse.com/docs/reference/settings/session-settings/default.md#default_table_engine) but for temporary tables.

In this example, any new temporary table that does not specify an `Engine` will use the `Log` table engine:

Query:

```sql theme={null}
SET default_temporary_table_engine = 'Log';

CREATE TEMPORARY TABLE my_table (
    x UInt32,
    y UInt32
);

SHOW CREATE TEMPORARY TABLE my_table;
```

Result:

```response theme={null}
┌─statement────────────────────────────────────────────────────────────────┐
│ CREATE TEMPORARY TABLE default.my_table
(
    `x` UInt32,
    `y` UInt32
)
ENGINE = Log
└──────────────────────────────────────────────────────────────────────────┘
```

## default\_view\_definer

Type

String

Default

CURRENT\_USER

Allows to set default `DEFINER` option while creating a view. [More about SQL security](https://clickhouse.com/docs/reference/statements/create/view.md#sql_security).

The default value is `CURRENT_USER`.
