Wed Jun 29, 2022 1:59 pm
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl (https://stackoverflow.com/search?tab=newest&q=hpcc-ecl). This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.



Publishing half-keyed search query to Roxie

Questions and comments regarding the Online Lessons should be posted here.

Fri Oct 18, 2013 5:26 am Change Time Zone

In Lab Exercise No.12, we publish results of a half-keyed search query to Roxie.

What is the difference between RETURNing a dataset vs. returning OUTPUT(dataset), as function result, to Roxie?
Gayathri_Jayaraman
 
Posts: 75
Joined: Wed May 08, 2013 5:03 am

Fri Oct 18, 2013 12:20 pm Change Time Zone

What is the difference between RETURNing a dataset vs. returning OUTPUT(dataset), as function result, to Roxie?


Hi Gayathri,

RETURNing a DATASET will return all fields and all records of the DATASET unconditionally (unless you apply a filter to the DATASET itself).

OUTPUT is available to give you a little more flexibility, as you can control the format of the output in the second parameter.

So you can return a partial number of fields from the dataset, only the ones that are interesting to you, instead of all them.

HTH,

Bob :-)
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1006
Joined: Wed Jun 29, 2011 7:13 pm


Return to Online Classroom

Who is online

Users browsing this forum: No registered users and 1 guest