Skip to content

Commit 3f69993

Browse files
committed
docs: qualify format detection by platform and version
1 parent 22b5006 commit 3f69993

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

sql-statements/sql-statement-import-into.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,21 @@ In the `fileLocation` parameter, you can specify a single file, or use the `*` a
132132

133133
### Format
134134

135-
The `IMPORT INTO` statement supports three data file formats: `CSV`, `SQL`, and `PARQUET`. When you specify the `FORMAT` clause, TiDB uses that format regardless of the file extension. If you omit `FORMAT`, TiDB automatically detects the format from the `.csv`, `.sql`, or `.parquet` file extension. Detection is case-insensitive. For compressed files, TiDB ignores the `.gz`, `.gzip`, `.zstd`, `.zst`, or `.snappy` compression suffix before detecting the data file format. If the remaining file name has no extension or an unrecognized extension, TiDB treats the file as `CSV`.
135+
The `IMPORT INTO` statement supports three data file formats: `CSV`, `SQL`, and `PARQUET`. When you specify the `FORMAT` clause, TiDB uses that format regardless of the file extension.
136+
137+
<CustomContent platform="tidb">
138+
139+
Starting from v8.5.7, if you omit `FORMAT`, TiDB automatically detects the format from the `.csv`, `.sql`, or `.parquet` file extension. Detection is case-insensitive. For compressed files, TiDB ignores the `.gz`, `.gzip`, `.zstd`, `.zst`, or `.snappy` compression suffix before detecting the data file format. If the remaining file name has no extension or an unrecognized extension, TiDB treats the file as `CSV`.
140+
141+
In v8.5.6 and earlier versions, TiDB treats the file as `CSV` when you omit `FORMAT`.
142+
143+
</CustomContent>
144+
145+
<CustomContent platform="tidb-cloud">
146+
147+
If you omit `FORMAT`, TiDB automatically detects the format from the `.csv`, `.sql`, or `.parquet` file extension. Detection is case-insensitive. For compressed files, TiDB ignores the `.gz`, `.gzip`, `.zstd`, `.zst`, or `.snappy` compression suffix before detecting the data file format. If the remaining file name has no extension or an unrecognized extension, TiDB treats the file as `CSV`.
148+
149+
</CustomContent>
136150

137151
> **Note:**
138152
>

0 commit comments

Comments
 (0)