Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/19792#discussion_r153132348 --- Diff: python/pyspark/sql/types.py --- @@ -1108,19 +1109,23 @@ def _has_nulltype(dt): return isinstance(dt, NullType) -def _merge_type(a, b): +def _merge_type(a, b, path=''): --- End diff -- Maybe, just printing the string in SQL could be an option too to be consistent .. it's a bit messy for deeply nested schema though.: ``` TypeError: struct<f1:array<map<int,string>>> and struct<f1:array<map<int,int>>> Can not blabla ```
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org