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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   Currently when the sql query contains `is not true/false`, the following 
error will be thrown:
   ```
   thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: 
SQL(ParserError("Expected [NOT] NULL or [NOT] DISTINCT FROM after IS, found: 
NOT"))'
   ```
   
   **Describe the solution you'd like**
   `col is not true(false)` should have the same result with `col is NULL or 
col = false(true)`. For example in postgres, it works like follow:
   <img width="720" alt="image" 
src="https://user-images.githubusercontent.com/5569610/163853092-79e660d7-13d6-4bff-801f-cc83034ab577.png";>
   
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features 
you've considered.
   
   **Additional context**
   It looks like the error happens when parsing the query at 
[here](https://github.com/sqlparser-rs/sqlparser-rs/blob/main/src/parser.rs#L1116).
 Might need to support this syntax in `sqlparser` first.
   


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