taozhi8833998 / node-sql-parser

Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
https://taozhi8833998.github.io/node-sql-parser/
Apache License 2.0
818 stars 181 forks source link

Support ClickHouse Dialect #1835

Open abraithwaite opened 8 months ago

abraithwaite commented 8 months ago

ClickHouse is an up-and-coming columnar OLAP database with a fairly standard SQL interface.

It would be awesome to see it supported in this project!

https://clickhouse.com/docs/zh

Fantastic work on this BTW. What you're doing is really challenging and I didn't think anybody was up to the task!

pkthomsen commented 7 months ago

I second that.

We actually currently use it to sanitize user-queries to ClickHouse. We use it in "Postgres" mode which is sufficiently compatible for most things. But it does lack support for all the special joins of ClickHouse, and also for the convenience notations for tuples and arrays that ClickHouse support.

So it would definitely be great to see native support for ClickHouse.

In any case thanks for the great work on this library.

taozhi8833998 commented 7 months ago

@abraithwaite @pkthomsen I will support the ClickHouse dialect based on PostgresQL in the next version. Sorry for waiting so long

razsightfull commented 6 months ago

+1 Also need that!

ThomasSertorio commented 6 months ago

Great news ! Awesome work. Thanks.

HitendraSinghRathore commented 5 months ago

Thanks a lot, really need this

digipigeon commented 4 months ago

+1 for needing this feature.

johnnyfish commented 1 month ago

+1 for needing this feature.

guyb1 commented 1 month ago

+1, also need it. @taozhi8833998 Do you have any idea when it might be added?

johnnyfish commented 1 month ago

@taozhi8833998 hey there! Any plans to support it soon? 🙂