Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E515C200D5F for ; Mon, 18 Dec 2017 17:52:26 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E37DF160BFB; Mon, 18 Dec 2017 16:52:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0E1B5160C05 for ; Mon, 18 Dec 2017 17:52:25 +0100 (CET) Received: (qmail 25365 invoked by uid 500); 18 Dec 2017 16:52:25 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 25356 invoked by uid 99); 18 Dec 2017 16:52:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2017 16:52:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CE26C1A0AA3 for ; Mon, 18 Dec 2017 16:52:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bYfayu8yJsNg for ; Mon, 18 Dec 2017 16:52:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id BD15A5F297 for ; Mon, 18 Dec 2017 16:52:21 +0000 (UTC) Received: (qmail 25290 invoked by uid 99); 18 Dec 2017 16:52:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2017 16:52:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5B346E04F0; Mon, 18 Dec 2017 16:52:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dbirdsall@apache.org To: commits@trafodion.incubator.apache.org Date: Mon, 18 Dec 2017 16:52:18 -0000 Message-Id: <74d3781550dc42ff97beab2082c021a4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-trafodion git commit: Correct the syntax descriptions of LOAD Statement for *Trafodion SQL Reference Manual* archived-at: Mon, 18 Dec 2017 16:52:27 -0000 Repository: incubator-trafodion Updated Branches: refs/heads/master aa40e9667 -> d344fad28 Correct the syntax descriptions of LOAD Statement for *Trafodion SQL Reference Manual* Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/1006ee72 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/1006ee72 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/1006ee72 Branch: refs/heads/master Commit: 1006ee725a5f06f327ac650861377a915392da56 Parents: 4639458 Author: liu.yu Authored: Fri Dec 15 11:49:10 2017 +0800 Committer: liu.yu Committed: Fri Dec 15 11:49:10 2017 +0800 ---------------------------------------------------------------------- .../src/asciidoc/_chapters/sql_statements.adoc | 2 +- .../src/asciidoc/_chapters/sql_utilities.adoc | 52 ++++++++++++++------ 2 files changed, 37 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/1006ee72/docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc ---------------------------------------------------------------------- diff --git a/docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc b/docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc index 7ffd7b9..824dc59 100644 --- a/docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc +++ b/docs/sql_reference/src/asciidoc/_chapters/sql_statements.adoc @@ -2724,7 +2724,7 @@ hbase-options-list is: * `VOLATILE` + -specifies a volatile table, which is a table limited to the session that creates the table. After the session ends, the +specifies a volatile table, which is a table limited to the session that creates the table. After the session ends, the volatile table will be automatically dropped. * `IF NOT EXISTS` + http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/1006ee72/docs/sql_reference/src/asciidoc/_chapters/sql_utilities.adoc ---------------------------------------------------------------------- diff --git a/docs/sql_reference/src/asciidoc/_chapters/sql_utilities.adoc b/docs/sql_reference/src/asciidoc/_chapters/sql_utilities.adoc index 3b42d81..50b080d 100644 --- a/docs/sql_reference/src/asciidoc/_chapters/sql_utilities.adoc +++ b/docs/sql_reference/src/asciidoc/_chapters/sql_utilities.adoc @@ -407,13 +407,14 @@ LOAD is a {project-name} SQL extension. LOAD [WITH option[[,] option]...] INTO target-table SELECT ... FROM source-table option is: - TRUNCATE TABLE - | NO RECOVERY + CONTINUE ON ERROR + | LOG ERROR ROWS [TO error-location-name] + | STOP AFTER num ERROR ROWS + | TRUNCATE TABLE | NO POPULATE INDEXES | NO DUPLICATE CHECK | NO OUTPUT | INDEX TABLE ONLY - | UPSERT USING LOAD ``` [[load_syntax]] @@ -440,19 +441,43 @@ source data as a filter. is a set of options that you can specify for the load operation. You can specify one or more of these options: +** `CONTINUE ON ERROR` ++ +LOAD statement will continue after errors encountered while scanning rows from source table. ++ +Errors during the load or sort phase will cause the LOAD statement to abort. ++ +Error rows will be logged by default in HDFS files in the directory `/user/trafodion/bulkload/logs`. The default name of the error files will be of the form `ERR___`, where `` is a numeric identifier unique to the process where the error was seen. ++ +This option is implied if `LOG ERROR ROWS [TO _error-location-name_]` or `STOP AFTER _num_ ERROR ROWS` is specified and it is not enabled by default. + +** `LOG ERROR ROWS [TO _error-location-name_]` ++ +If error rows must be written to a specified location, then specify TO _error-location-name_, otherwise they will be written to the default location. ++ +Error logs are written in separate files by the processes involved in the load command under sub-directory representing the load command in the given location. +The actual log file location is displayed in the load command output. + +*** `_error-location-name_` ++ +must be a HDFS directory name to which trafodion has write access. + +** `STOP AFTER _num_ ERROR ROWS` ++ +Use this option to stop the LOAD statement from progressing after num errors have been encountered during this statement. ++ +Duplicate check errors and errors which we have continued from using previous options are included in the count. + +*** _num_ ++ +specifies the number of error rows. + ** `TRUNCATE TABLE` + causes the Bulk Loader to truncate the target table before starting the load operation. By default, the Bulk Loader does not truncate the target table before loading data. -** `NO RECOVERY` -+ -specifies that the Bulk Loader not use HBase snapshots for recovery. By -default, the Bulk Loader handles recovery using the HBase snapshots -mechanism. - -<<< ** `NO POPULATE INDEXES` + specifies that the Bulk Loader not handle index maintenance or populate @@ -472,16 +497,11 @@ prevents the LOAD statement from displaying status messages. By default, the LOAD statement prints status messages listing the steps that the Bulk Loader is executing. -* `INDEX TABLE ONLY` +** `INDEX TABLE ONLY` + specifies that the target table, which is an index, be populated with data from the parent table. -* `UPSERT USING LOAD` -+ -specifies that the data be inserted into the target table using row set -inserts without a transaction. - <<< [[load_considerations]] === Considerations for LOAD