GitHub user rashmi815 opened a pull request:
https://github.com/apache/incubator-madlib/pull/116
Unnest 2d array
Array Operations: Add function to unnest 2-D arrays into rows of 1-D arrays
JIRA: MADLIB-1086
Function to unnest 2-D array by one level (i.e. into rows of 1-D arrays).
This is needed, for instance, in K-means, so that we can get one centroid
per row for follow on operations.
- Added function to array operations
- Added an example in k-means to demonstrate usage
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rashmi815/incubator-madlib unnest_2d_array
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-madlib/pull/116.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 #116
----
commit 18e562813702d12d620594598f471161a990fbbd
Author: Rashmi Raghu <[email protected]>
Date: 2017-04-15T00:08:17Z
Unnest function, install-check tests completed. Initial docs included
commit 2a4baffa29c8f976d3260931c1790cfc125e91f4
Author: Rashmi Raghu <[email protected]>
Date: 2017-04-15T06:20:01Z
Refactored names of function output columns
commit a3eae964adc84382fa674e4d95c486f472b14099
Author: Rashmi Raghu <[email protected]>
Date: 2017-04-17T23:45:32Z
Updated docs (array_ops and k-means) and minor update to install-check tests
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---