Skip to content

fix: #432 remove error rule #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/grammar/postgresql/PostgreSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,6 @@ primaryExpression
| OPEN_PAREN expression COMMA exprList CLOSE_PAREN
| row KW_OVERLAPS row
| columnNamePath
| qualifiedName
| primaryExpression TYPECAST typename
| (PLUS | MINUS) primaryExpression
| primaryExpression qualOp primaryExpression?
Expand Down
2 changes: 1 addition & 1 deletion src/lib/postgresql/PostgreSqlParser.interp

Large diffs are not rendered by default.

4,728 changes: 2,359 additions & 2,369 deletions src/lib/postgresql/PostgreSqlParser.ts

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion test/parser/flink/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ SELECT
TIMESTAMP '2019-12-23 09:00:00' as time2,
INTERVAL '10 00:00:00.004' DAY TO SECOND as time3
from
MyTable;
MyTable;


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
6 changes: 5 additions & 1 deletion test/parser/hive/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,8 @@ EXPLAIN select sum(hash(key)), sum(hash(value)) from src_orc_merge_test_part whe
-- FROM xx SELECT
FROM table_name_1 SELECT col1, col2;

FROM a JOIN b ON (a.id = b.id AND a.department = b.department) SELECT a.*;
FROM a JOIN b ON (a.id = b.id AND a.department = b.department) SELECT a.*;


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
6 changes: 5 additions & 1 deletion test/parser/impala/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,8 @@ select true and null;

select c_first_name, c_last_name from customer where lower(trim(c_last_name)) regexp '^de.*';

select c_first_name, c_last_name from customer where lower(trim(c_last_name)) rlike '^de.*';
select c_first_name, c_last_name from customer where lower(trim(c_last_name)) rlike '^de.*';


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
4 changes: 4 additions & 0 deletions test/parser/mysql/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ SELECT ID ,SUM(COL_1) AS SUM_COL_1 FROM (
UNION ALL
(SELECT ID ,COL_1 FROM TEST_AUTO_INC TAI)
)SS GROUP BY 1 ORDER BY 1;


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
6 changes: 5 additions & 1 deletion test/parser/postgresql/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,8 @@ SELECT f1[1][-2][3] AS e1, f1[1][-1][5] AS e2
SELECT int4range(10, 20) @> 3;

-- Object Identifier Types
SELECT * FROM pg_attribute WHERE attrelid = 'mytable'::regclass;
SELECT * FROM pg_attribute WHERE attrelid = 'mytable'::regclass;


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
4 changes: 4 additions & 0 deletions test/parser/spark/syntax/fixtures/selectClusterBy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ SELECT name, age FROM person;
-- persons with age 16 are in the second partition. The rows are sorted based
-- on age within each partition.
SELECT age, name FROM person CLUSTER BY age;


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;
4 changes: 4 additions & 0 deletions test/parser/trino/syntax/fixtures/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,7 @@ SELECT 123 INTERSECT DISTINCT SELECT 123 INTERSECT ALL SELECT 123;
-- substring_built_in_function
SELECT substring('string' FROM 2);
SELECT substring('string' FROM 2 FOR 3);


SELECT COALESCE(SUM(c.amount), 0) AS total_amount FROM cust c;
SELECT SUM(c.amount) AS total_amount FROM cust c;