iRakson commented on a change in pull request #27542: [SPARK-30790]The dataType 
of map() should be map<null,null>
URL: https://github.com/apache/spark/pull/27542#discussion_r378183603
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -216,7 +216,9 @@ license: |
 
   - Since Spark 3.0, the `size` function returns `NULL` for the `NULL` input. 
In Spark version 2.4 and earlier, this function gives `-1` for the same input. 
To restore the behavior before Spark 3.0, you can set 
`spark.sql.legacy.sizeOfNull` to `true`.
   
-  - Since Spark 3.0, when the `array` function is called without any 
parameters, it returns an empty array of `NullType`. In Spark version 2.4 and 
earlier, it returns an empty array of string type. To restore the behavior 
before Spark 3.0, you can set 
`spark.sql.legacy.arrayDefaultToStringType.enabled` to `true`.
+  - Since Spark 3.0, when the `array` function is called without any 
parameters, it returns an empty array of `NullType`. In Spark version 2.4 and 
earlier, it returns an empty array of string type. To restore the behavior 
before Spark 3.0, you can set 
`spark.sql.legacy.createEmptyCollectionUsingStringType.enabled` to `true`.
+
+  - Since Spark 3.0, when the `map` function is called without any parameters, 
it returns an empty map with `NullType` as key/value type. In Spark version 2.4 
and earlier, it returns an empty map of string type. To restore the behavior 
before Spark 3.0, you can set 
`spark.sql.legacy.createEmptyCollectionUsingStringType.enabled` to `true`.
 
 Review comment:
   Migration guide is updated.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to