DTStack / dt-sql-parser

SQL Parsers for BigData, built with antlr4.
https://dtstack.github.io/monaco-sql-languages/
MIT License
286 stars 93 forks source link

Check Data Types #96

Closed wewoor closed 11 months ago

mumiao commented 1 year ago

我会参考 https://help.aliyun.com/apsara/enterprise/v_3_13_0_20201215/oceanbase/enterprise-user-guide/interval-day-to-second-data-type.html 结合FlinkSQL官方文档一起去完善掉DataType, columnType 以及其他很多类型都直接用DataType约束,已经确认过。

mumiao commented 1 year ago

image

用户可以自定义类型,这个关于type,要不要放在grammar需要讨论

wewoor commented 1 year ago

先保留在 grammar 文件中的实现,考虑在 language 做提示即可