Rachelint opened a new issue, #11460:
URL: https://github.com/apache/datafusion/issues/11460

   ### Is your feature request related to a problem or challenge?
   
   Similar to #6485 
   Now the `map` and `make_map` udfs only return `ColumnarValue::Array` result, 
that lead to some sql can't work(see example in following):
   ```sql
   SELECT make_map('type', 'test') FROM ordered_table
   ```
   The returned error is like:
   ```
   UDF returned a different number of rows than expected. Expected: x, Got: y
   ```
   
   
   ### Describe the solution you'd like
   
   Check if all inputs are constants in `map` and `make_map`, and return scalar 
result when they are.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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