Skip to content

Commit 1a43e2c

Browse files
authored
serverless support import into (pingcap#20832)
1 parent d85c464 commit 1a43e2c

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

sql-statements/sql-statement-cancel-import-job.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ summary: An overview of the usage of CANCEL IMPORT in TiDB.
77

88
The `CANCEL IMPORT` statement is used to cancel a data import job created in TiDB.
99

10-
> **Note:**
11-
>
12-
> This feature is not available on [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters.
13-
1410
## Required privileges
1511

1612
To cancel a data import job, you need to be the creator of the import job or have the `SUPER` privilege.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,7 @@ The supported options are described as follows:
159159

160160
## `IMPORT INTO ... FROM FILE` usage
161161

162-
> **Note:**
163-
>
164-
> `IMPORT INTO ... FROM FILE` is not available on [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters.
165-
166-
For TiDB Self-Managed, `IMPORT INTO ... FROM FILE` supports importing data from files stored in Amazon S3, GCS, and the TiDB local storage. For [TiDB Cloud Dedicated](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-dedicated), `IMPORT INTO ... FROM FILE` supports importing data from files stored in Amazon S3 and GCS.
162+
For TiDB Self-Managed, `IMPORT INTO ... FROM FILE` supports importing data from files stored in Amazon S3, GCS, and the TiDB local storage. For [TiDB Cloud Dedicated](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-dedicated), `IMPORT INTO ... FROM FILE` supports importing data from files stored in Amazon S3 and GCS. For [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless), `IMPORT INTO ... FROM FILE` supports importing data from files stored in Amazon S3 and Alibaba Cloud OSS.
167163

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

@@ -189,6 +185,10 @@ For TiDB Self-Managed, `IMPORT INTO ... FROM FILE` supports importing data from
189185
190186
### Global Sort
191187

188+
> **Note:**
189+
>
190+
> Global Sort is not available on [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters.
191+
192192
`IMPORT INTO ... FROM FILE` splits the data import job of a source data file into multiple sub-jobs, each sub-job independently encoding and sorting data before importing. If the encoded KV ranges of these sub-jobs have significant overlap (to learn how TiDB encodes data to KV, see [TiDB computing](/tidb-computing.md)), TiKV needs to keep compaction during import, leading to a decrease in import performance and stability.
193193

194194
In the following scenarios, there can be significant overlap in KV ranges:

sql-statements/sql-statement-show-import-job.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ summary: An overview of the usage of SHOW IMPORT in TiDB.
77

88
The `SHOW IMPORT` statement is used to show the IMPORT jobs created in TiDB. This statement can only show jobs created by the current user.
99

10-
> **Note:**
11-
>
12-
> This feature is not available on [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters.
13-
1410
## Required privileges
1511

1612
- `SHOW IMPORT JOBS`: if a user has the `SUPER` privilege, this statement shows all import jobs in TiDB. Otherwise, this statement only shows jobs created by the current user.

0 commit comments

Comments
 (0)