Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B9F3106BF for ; Tue, 10 Dec 2013 19:06:08 +0000 (UTC) Received: (qmail 3986 invoked by uid 500); 10 Dec 2013 19:06:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3969 invoked by uid 500); 10 Dec 2013 19:06:07 -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 3752 invoked by uid 99); 10 Dec 2013 19:06:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 19:06:07 +0000 Date: Tue, 10 Dec 2013 19:06:07 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6256) Move the XmlVTI into the product. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-6256: --------------------------------- Attachment: derby-6256-05-aa-javadocTypo.diff Attaching derby-6256-05-aa-javadocTypo.diff. This patch fixes a typo in the header javadoc for XmlVTI. Touches the following file: M java/engine/org/apache/derby/vti/XmlVTI.java > Move the XmlVTI into the product. > --------------------------------- > > Key: DERBY-6256 > URL: https://issues.apache.org/jira/browse/DERBY-6256 > Project: Derby > Issue Type: Improvement > Components: SQL, Tools > Affects Versions: 10.11.0.0 > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Labels: derby_triage10_11 > Attachments: derby-6256-01-aa-move-XmlVTI-into-product.diff, derby-6256-02-aa-allowParentTags.diff, derby-6256-03-aa-useFileNotURL.diff, derby-6256-04-aa-addURLFactoryMethodAndTests.diff, derby-6256-05-aa-javadocTypo.diff > > > The XmlVTI under derbyDemo has been useful to me for many years. It has become even more useful now that Derby supports varargs. That is because varargs make it very easy to declare an XmlVTI. At this point, I think it is worth re-phrasing the XmlVTI in terms of varargs and moving it into the product so that we can use it for internal table functions. There is no rush to expose XmlVTI as part of Derby's public api, but we could consider doing that if other people find this table function to be useful. > The XmlVTI is a table function which turns an xml file into a tabular data set which you can query via sql. When you declare an XmlVTI, you state the following arguments: > 1) The url of an xml file. > 2) The name of the element in the xml file which you want to treat as a record or row. > 3) The names of the attributes and subelements of that record which you want to treat as columns. Now that we have varargs, it is possible to represent this trailing argument as a variable length argument list. -- This message was sent by Atlassian JIRA (v6.1.4#6159)