Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 02/12/2013
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final / Raijin
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 6
Often I find myself looking to get all of the values for a single column of a query result, as an array. Right now I generally use this syntax:
listToArray(valueList(query.column));
This is generally functional, except when the column in question is free-form text entered by users and could contain your delimiter, even if you use a custom delimiter like a pipe.
Aside from the above edge case, string manipulation is generally regarded as slow, at least when compared to other data structures like arrays and queries.
I'd like to see the addition of a new function, valueArray() that returns an array of the column values from a query object, exactly like valueList -- except there will be no need for delimiters. This would eliminate all room for error with delimiters, and could potentially make dealing with large datasets much faster.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3499033
External Customer Info:
External Company:
External Customer Name: Adam.Tuttle
External Customer Email:
External Test Config: My Hardware and Environment details: N/A
Attachments:
Comments: