LucaCappelletti94 opened a new pull request, #3072: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3072
`SELECT a OPERATOR(pg_catalog.=) ANY (ARRAY[1, 2])` failed with `Expected one of [=, >, <, =>, =<, !=, ~, ~*, !~, !~*, ~~, ~~*, !~~, !~~*] as comparison operator`. PostgreSQL takes any operator before `ANY`, `SOME` and `ALL` and only later checks that it returns a boolean (https://www.postgresql.org/docs/current/functions-comparisons.html). This PR adds `supports_arbitrary_operator_in_quantified_comparison` lifts the allowlist for PostgreSQL and Generic. Since in ClickHouse, Spark and Databricks `a + any(b)` calls the `any` aggregate, which would then parse as a quantified comparison, the other dialects keep the allowlist. Closes #1841 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
