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

docs: output of COPY INTO TABLE. #12605

Merged
merged 6 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 13 additions & 0 deletions docs/doc/14-sql-commands/10-dml/dml-copy-into-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,19 @@ copyOptions ::=
When importing large volumes of data, such as logs, it is recommended to set both `PURGE` and `FORCE` to True. This ensures efficient data import without the need for interaction with the Meta server (updating the copied-files set). However, it is important to be aware that this may lead to duplicate data imports.
:::

### Output

The command returns the following columns:
youngsofun marked this conversation as resolved.
Show resolved Hide resolved

| Column | DataType | Nullable | Description |
|------------------|----------|----------|--------------------------------------------|
| FILE | VARCHAR | No | The relative path to the source file |
youngsofun marked this conversation as resolved.
Show resolved Hide resolved
| ROWS_LOADED | INT | NO | Number of rows loaded from the source file |
youngsofun marked this conversation as resolved.
Show resolved Hide resolved
| ERRORS_SEEN | INT | NO | Number of error rows in the source file |
soyeric128 marked this conversation as resolved.
Show resolved Hide resolved
| FIRST_ERROR | VARCHAR | YES | First error of the source file |
youngsofun marked this conversation as resolved.
Show resolved Hide resolved
| FIRST_ERROR_LINE | INT | YES | Line number of the first error |
youngsofun marked this conversation as resolved.
Show resolved Hide resolved


## Examples

### 1. Loading Data from an Internal Stage
Expand Down
7 changes: 1 addition & 6 deletions website/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2626,15 +2626,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449:
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001517:
version "1.0.30001517"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz"

caniuse-lite@^1.0.30001517:
version "1.0.30001517"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz#90fabae294215c3495807eb24fc809e11dc2f0a8"
integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA==

ccount@^1.0.0:
version "1.1.0"
resolved "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz"
Expand Down
Loading