Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unsupported Azure Blob storage via import into #15859

Merged
merged 4 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions external-storage-uri.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,8 @@ gcs://external/test.csv?credentials-file=${credentials-file-path}
- `encryption-scope`: Specifies the [encryption scope](https://learn.microsoft.com/en-us/azure/storage/blobs/encryption-scope-manage?tabs=powershell#upload-a-blob-with-an-encryption-scope) for server-side encryption.
- `encryption-key`: Specifies the [encryption key](https://learn.microsoft.com/en-us/azure/storage/blobs/encryption-customer-provided-keys) for server-side encryption, which uses the AES256 encryption algorithm.

The following is an example of an Azure Blob Storage URI for TiDB Lightning and BR. In this example, you need to specify a specific file path `testfolder`.
The following is an example of an Azure Blob Storage URI for BR. In this example, you need to specify a specific file path `testfolder`.

```shell
azure://external/testfolder?account-name=${account-name}&account-key=${account-key}
```

The following is an example of an Azure Blob Storage URI for [`IMPORT INTO`](/sql-statements/sql-statement-import-into.md). In this example, you need to specify a specific filename `test.csv`.

```shell
azure://external/test.csv?account-name=${account-name}&account-key=${account-key}
```
16 changes: 5 additions & 11 deletions sql-statements/sql-statement-import-into.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `IMPORT INTO` statement is used to import data in formats such as `CSV`, `SQ

`IMPORT INTO` supports importing data from files stored in Amazon S3, GCS, and the TiDB local storage.

- For data files stored in Amazon S3, GCS, or Azure Blob Storage, `IMPORT INTO` supports running in the [TiDB Distributed eXecution Framework (DXF)](/tidb-distributed-execution-framework.md).
- For data files stored in Amazon S3 or GCS, `IMPORT INTO` supports running in the [TiDB Distributed eXecution Framework (DXF)](/tidb-distributed-execution-framework.md).

- When this DXF is enabled ([tidb_enable_dist_task](/system-variables.md#tidb_enable_dist_task-new-in-v710) is `ON`), `IMPORT INTO` splits a data import job into multiple sub-jobs and distributes these sub-jobs to different TiDB nodes for execution to improve the import efficiency.
- When this DXF is disabled, `IMPORT INTO` only supports running on the TiDB node where the current user is connected.
Expand Down Expand Up @@ -92,9 +92,9 @@ In the left side of the `SET` expression, you can only reference a column name t

### fileLocation

It specifies the storage location of the data file, which can be an Amazon S3, GCS, or Azure Blob Storage URI path, or a TiDB local file path.
It specifies the storage location of the data file, which can be an Amazon S3 or GCS URI path, or a TiDB local file path.

- Amazon S3, GCS, or Azure Blob Storage URI path: for URI configuration details, see [URI Formats of External Storage Services](/external-storage-uri.md).
- Amazon S3 or GCS URI path: for URI configuration details, see [URI Formats of External Storage Services](/external-storage-uri.md).
- TiDB local file path: it must be an absolute path, and the file extension must be `.csv`, `.sql`, or `.parquet`. Make sure that the files corresponding to this path are stored on the TiDB node connected by the current user, and the user has the `FILE` privilege.

> **Note:**
Expand Down Expand Up @@ -249,7 +249,7 @@ Assume that there are three files named `file-01.csv`, `file-02.csv`, and `file-
IMPORT INTO t FROM '/path/to/file-*.csv'
```

### Import data files from Amazon S3, GCS, or Azure Blob Storage
### Import data files from Amazon S3 or GCS

- Import data files from Amazon S3:

Expand All @@ -263,13 +263,7 @@ IMPORT INTO t FROM '/path/to/file-*.csv'
IMPORT INTO t FROM 'gs://import/test.csv?credentials-file=${credentials-file-path}';
```

- Import data files from Azure Blob Storage:

```sql
IMPORT INTO t FROM 'azure://import/test.csv?credentials-file=${credentials-file-path}';
```

For details about the URI path configuration for Amazon S3, GCS, or Azure Blob Storage, see [URI Formats of External Storage Services](/external-storage-uri.md).
For details about the URI path configuration for Amazon S3 or GCS, see [URI Formats of External Storage Services](/external-storage-uri.md).

### Calculate column values using SetClause

Expand Down
1 change: 0 additions & 1 deletion tidb-lightning/tidb-lightning-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ TiDB Lightning can read data from the following sources:
- Local
- [Amazon S3](/external-storage-uri.md#amazon-s3-uri-format)
- [Google Cloud Storage](/external-storage-uri.md#gcs-uri-format)
- [Azure Blob Storage](/external-storage-uri.md#azure-blob-storage-uri-format)

## TiDB Lightning architecture

Expand Down
Loading