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

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