jayzhan211 commented on PR #8331:
URL: 
https://github.com/apache/arrow-datafusion/pull/8331#issuecomment-1837648933

   > `Boolean Coercion` is a dangerous behavior. It will cause some strange 
behavior.
   > 
   > such as:
   > 
   > ```
   > If there is some implicit type cast:
   > 1. true = 'true'
   > 2. true = 1
   > 
   > But true = 1 = '1' is conflict with true = 'true'
   > ```
   > 
   > I suggest to we'd better to keep same behavior with `pg`.
   
   I agree it causes some confusing behavior.
   ```
   query ?
   select make_array(true, 1, 'true');
   ----
   [true, 1, true]
   
   query ?
   select make_array(true, 'true', 1);
   ----
   [true, true, 1]
   
   query ?
   select make_array(true, 1);
   ----
   [1, 1]
   ```
   
   Then, why do DuckDB introduce this 🤔 


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