Peng-Lei opened a new pull request #34666:
URL: https://github.com/apache/spark/pull/34666
### What changes were proposed in this pull request?
1. Migrate `SHOW TBLPROPERTIES` to use V2 command by default
2. Sort the result of V1 command of `SHOW TBLPROPERTIES`
3. handle the `output == 1` case for V2 command to match V1 behavior
### Why are the changes needed?
It's been a while since we introduced the v2 commands, and it seems
reasonable to use v2 commands by default even for the session catalog, with a
legacy config to fall back to the v1 commands.
### Does this PR introduce _any_ user-facing change?
For use V2 command:
if LEGACY_KEEP_COMMAND_OUTPUT_SCHEMA == true
change output `Row("key", "value")` => `Row("value")`
At now it is not supported for view that `SHOW TBLPROPERTIES` command by
default.
we can set `LEGACY_USE_V1_COMMAND` to use V1 command.
### How was this patch tested?
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly
*ShowTblPropertiesSuite"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]