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 DAFAE200B14 for ; Sat, 18 Jun 2016 18:16:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D96A6160A50; Sat, 18 Jun 2016 16:16:06 +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 298CF160A18 for ; Sat, 18 Jun 2016 18:16:06 +0200 (CEST) Received: (qmail 70481 invoked by uid 500); 18 Jun 2016 16:16:05 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 70460 invoked by uid 99); 18 Jun 2016 16:16:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2016 16:16:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3839E2C1F5D for ; Sat, 18 Jun 2016 16:16:05 +0000 (UTC) Date: Sat, 18 Jun 2016 16:16:05 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-4555) Expand SYSCS_IMPORT_TABLE to accept CSV file with header lines MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 18 Jun 2016 16:16:07 -0000 [ https://issues.apache.org/jira/browse/DERBY-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338001#comment-15338001 ] Bryan Pendleton commented on DERBY-4555: ---------------------------------------- Hi Danoja, can you please double-check your latest "addNewSystemProcedure.diff"? My system 'patch' tool refuses to apply it, and when I look at it with my editor, it seems like maybe it was truncated and only partially uploaded? > Expand SYSCS_IMPORT_TABLE to accept CSV file with header lines > -------------------------------------------------------------- > > Key: DERBY-4555 > URL: https://issues.apache.org/jira/browse/DERBY-4555 > Project: Derby > Issue Type: Improvement > Components: Miscellaneous > Reporter: Yair Lenga > Assignee: Danoja Dias > Attachments: NoVarargs.diff, Varargs.diff, addNewSystemProcedure.diff, gotException.diff, hardCoded.diff, latest.diff, noHeaderLines.csv, petlist.csv, petlist.csv, petlist.csv, repro.java, repro.java, skipHeaders.diff > > > The SYSCS_IMPORT_TABLE (and SYSCS_IMPORT_DATA) function allow import of data from external resources. In general, they can process CSV files that created with various tools - with one exception: the header line. > While there is no accepted standard, most tools will include a header line in the CSV file with column names. This convention is supported in Excel and many other tools. > My Request: extend the SYSCS_IMPORT_TABLe and SYSCS_IMPORT_DATA (and other related procedures) to include an extra indicator for the number of header lines to be ignored. > As an extra bonus it will be help is the SYSCS_IMPORT_DATA will accept column names (instead of column indexes) in the 'COLUMNINDEXES' arguments. E.g., it should be possible to indicate COLUMNINDEXES of '1,3,sales,5,'. This feature will make it significantly easier to handle cases where the external input files is extended to include additional columns. -- This message was sent by Atlassian JIRA (v6.3.4#6332)