Basically, the json column is flat map of string -> string and I am trying to do a group by in two different ways:
1. group by key1, key2
2. group by all other keys after excluding key1 and key2
where key1 and key2 are the field key names in the flat map like json column
The key names depend on the filter being used - so I cannot convert key1 and key2 to static columns.