xinrong-databricks commented on PR #36640:
URL: https://github.com/apache/spark/pull/36640#issuecomment-1139758806

   Sorry I should've attached an example first.
   
   `[[], []]` input in Scala side is as below
   ```scala
   scala> val rdd=sc.parallelize(List(List(), List()))
   rdd: org.apache.spark.rdd.RDD[List[Nothing]] = ParallelCollectionRDD[11] at 
parallelize at <console>:23
   
   scala> val df = spark.createDataFrame(rdd=rdd)
   df: org.apache.spark.sql.DataFrame = [value: array<void>]
   
   scala> df.show()
   +-----+
   |value|
   +-----+
   |   []|
   |   []|
   +-----+
   ```
   
   I may add a test. Let me know if you have other concerns. Thanks 
@zhengruifeng .


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