Inluding query available columns in the meta data.
Merge pull request #1117 from opf/bug-5771-groupby-available-columns

Inluding query available columns in the meta data.