zhengruifeng commented on PR #43369:
URL: https://github.com/apache/spark/pull/43369#issuecomment-1776506123

   Do we need to mention related configs like 
`spark.sql.pyspark.inferNestedDictAsStruct.enabled` and 
`spark.sql.timestampType`?
   
   In createDataFrame, `spark.sql.pyspark.inferNestedDictAsStruct.enabled` 
controls whether a dict be treated as a map or struct.
   
   
   BTW, I think we may need to mention nested rows and numpy arrays:
   ```
   In [25]: spark.createDataFrame(np.zeros([3,3], "int8"))
   Out[25]: DataFrame[_1: tinyint, _2: tinyint, _3: tinyint]
   
   In [26]: spark.createDataFrame(np.zeros([3,3], "int64"))
   Out[26]: DataFrame[_1: bigint, _2: bigint, _3: bigint]
   
   In [27]: spark.createDataFrame([Row(a=1, b=Row(c=2))])
   Out[27]: DataFrame[a: bigint, b: struct<c:bigint>]
   ```


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

Reply via email to