Jefffrey commented on issue #17964:
URL: https://github.com/apache/datafusion/issues/17964#issuecomment-3540596695

   This is interesting; I checked on PySpark (4.0.1) and it seems it should be 
a void (aka null) type:
   
   ```python
   >>> spark.sql("select array()").printSchema()
   root
    |-- array(): array (nullable = false)
    |    |-- element: void (containsNull = false)
   ```
   
   So the behaviour of setting it to `Int32` when no columns are provided isn't 
consistent with Spark 🤔 


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