comphead commented on PR #1680:
URL: 
https://github.com/apache/datafusion-comet/pull/1680#issuecomment-2825758696

   Now problem DF and Spark returns different value if count is null 
   DF returns empty array
   ```
   > select array_repeat(null, arrow_cast(null, 'Int32'));
   +---------------------------------------------------+
   | array_repeat(NULL,arrow_cast(NULL,Utf8("Int32"))) |
   +---------------------------------------------------+
   | []                                                |
   +---------------------------------------------------+
   ```
   
   Spark returns NULL
   
   ```
   scala> spark.sql("select array_repeat(1, null)").show(false)
   +---------------------+
   |array_repeat(1, NULL)|
   +---------------------+
   |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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to