GitHub user ArvindSridhar opened a pull request:
https://github.com/apache/madlib/pull/291
Feature: Vector to Columns
JIRA: MADLIB-1240
The vec2cols function enables users to split up a single column into
multiple columns, given that the input column contains array entries. For
example, if the input column contained ARRAY[1, 2, 3] in one of its rows, the
output table will contain 3 different columns, one for each element of the
array.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/madlib/madlib feature/vector-to-columns
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/madlib/pull/291.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 #291
----
commit 3237acb45c553fc4fc2c20b6e7c9a0b6bec2ffe8
Author: Arvind Sridhar <asridhar@...>
Date: 2018-07-06T00:18:55Z
Utilities: Create new function to convert vector to columns
JIRA: MADLIB-1240
The vec2cols function enables users to split up a single column
into multiple columns, given that the input column contains array
entries. For example, if the input column contained ARRAY[1, 2, 3]
in one of its rows, the output table will contain 3 different
columns, one for each element of the array.
Co-authored-by: Nikhil Kak <[email protected]>
Co-authored-by: Nandish Jayaram <[email protected]>
commit 0100da245555333fda01fe2b0428d80da2ba5ab9
Author: Arvind Sridhar <arvindsridhar@...>
Date: 2018-07-09T23:12:28Z
Internal: Add function to check column type for 1D array
Co-authored-by: Nikhil Kak <[email protected]>
commit 1e8bc328824ea57a0d253834f36e7ca4b0eff26a
Author: Arvind Sridhar <arvindsridhar@...>
Date: 2018-07-09T23:14:48Z
Utilities: Add check for whether type is of any array variant
Co-authored-by: Nikhil Kak <[email protected]>
----
---