[PDI-10022] Some valid aggregate data queries return error with get fields.
Merge pull request #22 from m-a-hall/master-getFieldsBug

[PDI-10022] Some valid aggregate data queries return error with get fields.