ozankabak commented on PR #14223:
URL: https://github.com/apache/datafusion/pull/14223#issuecomment-2613004105

   > 1. If it is relatively easy, we can do a quick follow-on PR to parse/type 
literals more intelligently. Maybe always parse as the smallest/narrowest 
datatype that will hold the constant. We will probably need to somehow decide 
whether to use a signed type for the constant as well. Coercion will then widen 
the type if necessary. However, I am not sure if this is possible to do in a 
straightforward way.
   
   Given that we are talking about coercions in the context of comparisons and 
unions, I think a flavor/improvement of the idea above may be simple to 
implement, achieve correctness and avoid the issue with this PR (which is 
basically incurring TD to fix the performance with no timeframe for the fix).
   
   Let's get more ideas in, and see if there is an even better solution. Once 
it shows, we can either: Create a PR for it if easy enough, or create an issue 
describing the approach and revert this if there is no volunteer for it.
   
   Someone from our team will take it on at some point if there is no takers, 
as the correctness issue is important even though it is a corner case. Thanks 
for bringing this into our attention @jonahgao


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