spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [spark] MaxGekk opened a new pull request #29308: [SPARK-32499][SQL] Use `{}` in conversions maps and structs to strings
Date Thu, 30 Jul 2020 15:36:00 GMT

MaxGekk opened a new pull request #29308:
URL: https://github.com/apache/spark/pull/29308


   ### What changes were proposed in this pull request?
   Change casting of map and struct values to strings by using the `{}` brackets instead of
`[]`.
   
   ### Why are the changes needed?
   - To distinguish structs/maps from arrays.
   - To make `show`'s output consistent with Hive and conversions to Hive strings.
   - To display dataframe content in the same form by `spark-sql` and `show`
   - To be consistent with the `*.sql` tests
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   ### How was this patch tested?
   By existing test suite `CastSuite`.


----------------------------------------------------------------
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:
users@infra.apache.org



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


Mime
View raw message