Looking at [1] reminded me of something I've felt is missing from
Postgres arrays: the ability to perform arbitrary operations on arrays
on an element-by-element basis. You can sort-of simulate that with
unnest, but it's awkward and slow.
Instead of functions for specific per-element operations (ie:
array_add()), would a more generic function (ie: array_op('+', array1,
array2)) benefit MADlib? I suspect the Postgres community would accept
such a function in core.
[1]
https://github.com/apache/incubator-madlib/pull/22/files#diff-ed598467a50f51272f2a5ad73c503a34L702
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com