jkosh44 commented on issue #14633: URL: https://github.com/apache/datafusion/issues/14633#issuecomment-2656884987
As an aside, it looks like the PostgreSQL dialect and actual PostgreSQL have different behaviors w.r.t. a dangling `FILTER` clause. ``` DataFusion CLI v45.0.0 > SET datafusion.sql_parser.dialect = 'PostgreSQL'; 0 row(s) fetched. Elapsed 0.002 seconds. > CREATE TABLE t (a INT); 0 row(s) fetched. Elapsed 0.006 seconds. > SELECT SUM(a) FILTER FROM t; +----------+ | sum(t.a) | +----------+ | NULL | +----------+ 1 row(s) fetched. Elapsed 0.006 seconds. ``` ``` psql (17.2 (Ubuntu 17.2-1.pgdg24.04+1)) SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off, ALPN: postgresql) Type "help" for help. postgres=# CREATE TEMP TABLE t (a INT); CREATE TABLE postgres=# SELECT SUM(a) FILTER FROM t; ERROR: syntax error at or near "FROM" LINE 1: SELECT SUM(a) FILTER FROM t; ^ postgres=# ``` -- 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