Repository: ClickHouse/ClickHouse
File: src/Core/FormatFactorySettings.h (C/C++)

Code before:
)", 0) \
    DECLARE(UInt64, input_format_max_block_wait_ms, 0, R"(
Limits the maximum time in milliseconds to wait before emitting a block during parsing in row-based input formats. 0 means no limit.

:::note
This option only works if `input_format_connection_handling` is enabled. Setting a value also disables parallel parsing and makes deduplication impossible.
:::

:::note
For streaming inserts, you must also set `min_insert_block_size_rows=0` and `min_insert_block_size_bytes=0`. Otherwise, parsed blocks may still be accumulated in memory by the block squashing stage until those thresholds are reached, preventing timely inserts.
:::

**Example: streaming Wikipedia recent changes into ClickHouse**

```sql
clickhouse-client --query "CREATE TABLE wikipedia_edits (data JSON)"

curl -sS --globoff -H 'Accept: application/json' --no-buffer \
  "https://stream.wikimedia.org/v2/stream/recentchange" \
  | clickhouse-client \
      --query "INSERT INTO wikipedia_edits FORMAT JSONAsObject" \
      --input_format_max_block_wait_ms 1000 \
      --input_format_connection_handling 1 \
      --min_insert_block_size_rows 0 \
      --min_insert_block_size_bytes 0
```
)", 0) \
    DECLARE(Bool, input_format_connection_handling, false, R"(
    When this option is enabled, if the connection closes unexpectedly, any remaining data in the buffer will be parsed and processed instead of being treated as an error

:::note
Enabling this option disables parallel parsing and makes deduplication impossible
:::
)", 0) \
    DECLARE(Bool, input_format_protobuf_oneof_presence, false, R"(
Indicate which field of protobuf oneof was found by means of setting enum value in a special column
)", 0) \
    DECLARE(Bool, input_format_parquet_allow_geoparquet_parser, true, R"(
Use geo column parser to convert Array(UInt8) into Point/Linestring/Polygon/MultiLineString/MultiPolygon types
)", 0) \
    DECLARE(Bool, output_format_parquet_geometadata, true, R"(
Allow to write information about geo columns in parquet metadata and encode columns in WKB format.
)", 0) \
    DECLARE(Bool, into_outfile_create_parent_directories, false, R"(
Automatically create parent directories when using INTO OUTFILE if they do not already exists.
)", 0) \


// End of FORMAT_FACTORY_SETTINGS

#define OBSOLETE_FORMAT_SETTINGS(M, ALIAS) \

Review comment (suggestion):
```suggestion
```bash
clickhouse-client --query 'CREATE TABLE wikipedia_edits (data JSON)'

curl -sS --globoff -H 'Accept: application/json' --no-buffer \
  'https://stream.wikimedia.org/v2/stream/recentchange' \
  | clickhouse-client \
      --query 'INSERT INTO wikipedia_edits FORMAT JSONAsObject' \
      --input_format_max_block_wait_ms 1000 \
      --input_format_connection_handling 1 \
      --min_insert_block_size_rows 0 \
      --min_insert_block_size_bytes 0
```
```

Code after:
)", 0) \
    DECLARE(UInt64, input_format_max_block_wait_ms, 0, R"(
Limits the maximum time in milliseconds to wait before emitting a block during parsing in row-based input formats. 0 means no limit.

:::note
This option only works if `input_format_connection_handling` is enabled. Setting a value also disables parallel parsing and makes deduplication impossible.
:::

:::note
For streaming inserts, you must also set `min_insert_block_size_rows=0` and `min_insert_block_size_bytes=0`. Otherwise, parsed blocks may still be accumulated in memory by the block squashing stage until those thresholds are reached, preventing timely inserts.
:::

**Example: streaming Wikipedia recent changes into ClickHouse**

```bash
clickhouse-client --query 'CREATE TABLE wikipedia_edits (data JSON)'

curl -sS --globoff -H 'Accept: application/json' --no-buffer \
  'https://stream.wikimedia.org/v2/stream/recentchange' \
  | clickhouse-client \
      --query 'INSERT INTO wikipedia_edits FORMAT JSONAsObject' \
      --input_format_max_block_wait_ms 1000 \
      --input_format_connection_handling 1 \
      --min_insert_block_size_rows 0 \
      --min_insert_block_size_bytes 0
```
)", 0) \
    DECLARE(Bool, input_format_connection_handling, false, R"(
    When this option is enabled, if the connection closes unexpectedly, any remaining data in the buffer will be parsed and processed instead of being treated as an error

:::note
Enabling this option disables parallel parsing and makes deduplication impossible
:::
)", 0) \
    DECLARE(Bool, input_format_protobuf_oneof_presence, false, R"(
Indicate which field of protobuf oneof was found by means of setting enum value in a special column
)", 0) \
    DECLARE(Bool, input_format_parquet_allow_geoparquet_parser, true, R"(
Use geo column parser to convert Array(UInt8) into Point/Linestring/Polygon/MultiLineString/MultiPolygon types
)", 0) \
    DECLARE(Bool, output_format_parquet_geometadata, true, R"(
Allow to write information about geo columns in parquet metadata and encode columns in WKB format.
)", 0) \
    DECLARE(Bool, into_outfile_create_parent_directories, false, R"(
Automatically create parent directories when using INTO OUTFILE if they do not already exists.
)", 0) \


// End of FORMAT_FACTORY_SETTINGS

#define OBSOLETE_FORMAT_SETTINGS(M, ALIAS) \