Ted-Jiang commented on issue #9566:
URL: 
https://github.com/apache/arrow-datafusion/issues/9566#issuecomment-1990142219

   @alamb some situation like will block 
   ```
   ❯ SELECT sum(t)
   FROM
     (SELECT null AS t)
    ;
   Error during planning: No function matches the given name and argument types 
'SUM(Null)'. You might need to add explicit type casts.
        Candidate functions:
        SUM(Int8/Int16/Int32/Int64/UInt8/UInt16/UInt32/UInt64/Float32/Float64)
   ```
   subquery return null value without type referenece.
   this work fine in spark-sql:
   ```
   spark-sql (default)> SELECT sum(t)
                      > FROM
                      >   (SELECT null AS t)
                      >  ;
   NULL
   ```


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

Reply via email to