-
Notifications
You must be signed in to change notification settings - Fork 766
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
Specification of Datafuse SQL #1492
Comments
IMHO, it's a nice choice to follow some SQL standards of mainstream Database(e.g. Postgres, MySQL), so users can get up with Datafuse easier. PostgreSQL is widely used in Data Warehousing thanks to its rich OLAP features and strict type system. Both AWS Redshift, Pivotal Greenplum, AliCloud Hologres are based on PostgreSQL. Therefore, I suggest that we can build Datafuse SQL specification based on PostgreSQL. |
Thanks for the sharing, it's OK to me. |
In general, I agree with your point. However, there is something other than a standardized draft.
|
It's ok to me. Seems |
This part is a little bit tricky, that is, unless a database directly use code of
Almost every XxxDB-compatible database get their customers by implementing common/core features of corresponding database to achieve basicly compatible. Generally speaking, the features about SQL can be catagorized as: functions, SQL operators, data types. For Datafuse, we can basically follow PostgreSQL's grammar(maybe only the ANSI SQL part) and only ensure limited compatibility by providing common data types(e.g. NUMERIC, DATE/DATETIME, STRING, JSON) and some common functions. With these functionality, PostgreSQL users can get up with Datafuse quickly. Then we can add our own extensions based on this, and no longer need to concern about the compatibility issue. |
It's ok to me. as you said, maybe we need to consider compatibility with other DB(in future), perhaps we should consider it in the design |
Some functions need to add Currently, I'll create a pr in The function expr will be:
|
Closed by #4916 |
We need a standard and stable SQL specification to guide Datafuse developers and users.
This specification should involve:
Welcome to comment and give your advice.
The text was updated successfully, but these errors were encountered: