haohuaijin opened a new issue, #8965:
URL: https://github.com/apache/arrow-datafusion/issues/8965

   ### Describe the bug
   
   ```
   ❯ select not('hi');
   Internal error: NOT 'Literal { value: Utf8("hi") }' can't be evaluated 
because the expression's type is Utf8, not boolean or NULL.
   This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   ❯ select 1 and 2;
   Error during planning: Cannot infer common argument type for logical boolean 
operation Int64 AND Int64
   ```
   I think the return error message of NOT should like `And` operator, they 
both only work for boolean value.
   
   _Originally posted by @haohuaijin in 
https://github.com/apache/arrow-datafusion/pull/8957#discussion_r1463345264_
   
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to