drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aditya Kishore (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-4607) Add a split function that allows to separate string by a delimiter
Date Thu, 02 Jun 2016 18:08:59 GMT

     [ https://issues.apache.org/jira/browse/DRILL-4607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aditya Kishore resolved DRILL-4607.
-----------------------------------
       Resolution: Fixed
         Reviewer: Sudheesh Katkam
    Fix Version/s: 1.7.0

Resolved by [3186217e|https://fisheye6.atlassian.com/changelog/incubator-drill?cs=3186217e5abe3c6c2c7e504cdb695567ff577e4c].

> Add a split function that allows to separate string by a delimiter
> ------------------------------------------------------------------
>
>                 Key: DRILL-4607
>                 URL: https://issues.apache.org/jira/browse/DRILL-4607
>             Project: Apache Drill
>          Issue Type: New Feature
>          Components: Functions - Drill
>    Affects Versions: 1.6.0
>            Reporter: Alicia Alvarez
>            Assignee: Alicia Alvarez
>             Fix For: 1.7.0
>
>
> Ex: Let's say I have records in a CSV file with the following schema
> {noformat}
> user_name, friend_list_separated_by_a_delimiter,other_fields
> ali,sam;adi;tom,45,...
> {noformat}
> I want to run a query which returns the friend list files as a repeated value.
> {noformat}
> select user_name, split(friend_list, ';') friends from userdata;
> {noformat}
> This should return the records in the following format
> {noformat}
> ---------------------------------
> | user_name |       friends     |
> ---------------------------------
> |   ali     |  [sam, adi, tom]  |
> ---------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message