wangyum opened a new pull request #32563:
URL: https://github.com/apache/spark/pull/32563


   ### What changes were proposed in this pull request?
   
   Change `information` column to map type for `SHOW TABLE EXTENDED` command.
   
   ### Why are the changes needed?
   
   Usually not all information is what we need and it has poor readability. 
After SPARK-35283 and this PR. We can get the need information by key:
   ```sql
   WITH s AS (SHOW TABLE EXTENDED LIKE '*') SELECT tableName, 
information['Provider'] FROM s
   ```
   ```
   +------------+---------------------+
   |tableName   |information[Provider]|
   +------------+---------------------+
   |test_delta  |delta                |
   |test_parquet|parquet              |
   +------------+---------------------+
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The `information` column type changed.
   
   ### How was this patch tested?
   
   Unit test.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to