dt-sql-parser icon indicating copy to clipboard operation
dt-sql-parser copied to clipboard

[Feature Request]: Add Missing PGSQL Functions

Open elliothomerwilkinson opened this issue 4 months ago • 1 comments

Topic

Support new SQL

Description

The PostgreSqlLexer.g4 is missing support for common Postgres functions TO_CHAR and DATE_TRUNC

Please can these be added.

This is an issue since basic postgres sql like below is marked as invalid:

SELECT
    TO_CHAR(DATE_TRUNC('week', "my_date"), 'YYYY-MM-DD') as x
FROM test_table;

elliothomerwilkinson avatar Jul 31 '25 19:07 elliothomerwilkinson