Merge pull request #49485 from kislovs/patch-1

Fix code block in clickhouse-local.md
This commit is contained in:
Alexander Gololobov 2023-05-04 12:34:25 +02:00 committed by GitHub
commit 7a0fedb069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,9 +41,9 @@ If the file is sitting on the same machine as `clickhouse-local`, use the `file`
``` ```
ClickHouse knows the file uses a tab-separated format from filename extension. If you need to explicitly specify the format, simply add one of the [many ClickHouse input formats](../../interfaces/formats.md): ClickHouse knows the file uses a tab-separated format from filename extension. If you need to explicitly specify the format, simply add one of the [many ClickHouse input formats](../../interfaces/formats.md):
```bash ```bash
./clickhouse local -q "SELECT * FROM file('reviews.tsv', 'TabSeparated')" ./clickhouse local -q "SELECT * FROM file('reviews.tsv', 'TabSeparated')"
``` ```
The `file` table function creates a table, and you can use `DESCRIBE` to see the inferred schema: The `file` table function creates a table, and you can use `DESCRIBE` to see the inferred schema: