You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/06 23:01:00 UTC

[jira] [Commented] (TRAFODION-2680) CSV_FORMAT function

    [ https://issues.apache.org/jira/browse/TRAFODION-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077317#comment-16077317 ] 

ASF GitHub Bot commented on TRAFODION-2680:
-------------------------------------------

GitHub user DaveBirdsall opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/1169

    [TRAFODION-2680] Add CSV_FORMAT function to Trafodion SQL

    This change adds a new function, CSV_FORMAT, to Trafodion SQL.
    
    Syntax: CSV_FORMAT(argument1, ... ,argumentn)
    
    Semantics: The result of CSV_FORMAT is a VARCHAR string consisting of a comma-separated list of the argument values. If the argument itself contains a comma, it is surrounded with double quotes.
    
    This is a prototype for evaluation. For example, it does not escape double quotes within a double quoted string; the need for that is to be determined. Also, a regression test for this needs to be added.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/DaveBirdsall/incubator-trafodion CsvFormat

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/1169.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1169
    
----
commit 3d19d7bd03698cfd758eb0281a963e7b77c1bb7d
Author: Dave Birdsall <db...@apache.org>
Date:   2017-07-06T22:57:28Z

    [TRAFODION-2680] Add CSV_FORMAT function to Trafodion SQL

----


> CSV_FORMAT function
> -------------------
>
>                 Key: TRAFODION-2680
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2680
>             Project: Apache Trafodion
>          Issue Type: New Feature
>          Components: sql-cmp
>    Affects Versions: 2.2-incubating
>         Environment: All
>            Reporter: David Wayne Birdsall
>            Assignee: David Wayne Birdsall
>
> To make it easier to get Trafodion data into spreadsheets, add a CSV_FORMAT function to Trafodion SQL.
> Syntax: CSV_FORMAT(argument1, ... ,argumentn)
> Semantics: The result of CSV_FORMAT is a VARCHAR string consisting of a comma-separated list of the argument values. If the argument itself contains a comma, it is surrounded with double quotes.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)