SPARK-3329:  [SQL] Don't depend on Hive SET pair ordering.

This fixes some possible spurious test failures in `HiveQuerySuite` by comparing sets of key-value pairs as sets, rather than as lists.
Minor style nit: this could just be: `case Row(KV(key,value)) => ...` I believe.