ERROR: GROUP BY position 0 is not in select list , when using catalyst parser i am using spark 3.3.1 here is the sql_string to query a ds partitioned table