Github user fmcquillan99 commented on the issue:
https://github.com/apache/madlib/pull/291
In cols2vec and vec2cols, ordering has been fixed so new columns are always
on the right of the source table columns in the output (if any).
In cols2vec, casting seems OK now. I tested:
* mixed `INT` and `DOUBLE PRECISION` works and creates vector `DOUBLE
PRECISION[]`
* mixed `VARCHAR` and `TEXT` works and creates vector `TEXT[]`
* `INT` columns create vector 'INT[]' , i.e., does not unnecessarily cast
to `DOUBLE PRECISION[]`
* `REAL` columns create vector 'REAL[]' , i.e., does not unnecessarily cast
to `DOUBLE PRECISION[]`
* `VARCHAR` columns create vector 'VARCHAR[]' , i.e., does not
unnecessarily cast to `TEXT[]`
---