tracker issue : CF-4073787

select a category, or use search below
(searches all categories and all time range)
Title:

Add Support for Map/Reduce/Filter/Each Functions for Query Objects

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Abram Adams / Abram Adams (Abram Adams)

Created: 10/14/2015

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Linux

Vote Count: 4

Duplicate ID:	CF-3713323

Title says it all.  We should have Map/Reduce/Filter/Each member functions for query objects.

The query object should be treated like an array of structs, i.e:  [{id:1,name="bob"},{id:2,name="jill"}], and I would suggest adding a "returnType" argument here (at least to map) so that the query can be iterated and transformed, then return an array of structs.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4073787

External Customer Info:
External Company:  
External Customer Name: Abram Adams
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

For some functionality we have, we have to convert a query object to an array of structs, then pass that array to serializeJSON() in order to get JSON in the format expected by some UI controls. We also have tons of query of queries in our code base, using filter would eliminate a lot of unnecessary calls to CFQUERY.
Vote by External U.
5577 | October 14, 2015 12:42:54 PM GMT
+1 Use cases should be obvious, there are many.
Vote by External U.
5578 | October 14, 2015 12:48:56 PM GMT
This is a duplicate of https://bugbase.adobe.com/index.cfm?event=bug&id=CF-4022420 with the exception of the returntype concept. I will comment on that ticket and leave this to be closed as duplicate
Comment by External U.
5575 | October 14, 2015 01:01:18 PM GMT
This is kinda covered by https://bugbase.adobe.com/index.cfm?event=bug&id=CF-4073770, but *at the very least* all the work Abram mentions here should be done. It should *already* have been done.
Comment by External U.
5576 | October 14, 2015 01:05:13 PM GMT
+1 Vote must be between 25 and 4000 characters Vote must be between 25 and 4000 characters
Vote by External U.
5579 | October 14, 2015 01:05:49 PM GMT
+1111111111111111111111111
Vote by External U.
5580 | October 15, 2015 09:19:50 AM GMT