-
Notifications
You must be signed in to change notification settings - Fork 96
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
feat: generic sql based on spark sql #324
base: next
Are you sure you want to change the base?
Conversation
|
能否支持 insert into/overwrite db.tab [(column list)] select *, 目前db-sql-parser语法不报错需要去掉column list, 但是sparksql是支持这个语法的,https://spark.apache.org/docs/latest/sql-ref-syntax-dml-insert-table.html |
@tcodehuber 你好,能提供下你写的 SQL 吗,我这边验证的 SQL 没有语法飘红报错: INSERT INTO TABLE my_table (col1, col2, col3)
SELECT colA, colB, colC
FROM source_table
WHERE condition = 'value'; 另外我看了下语法文件,官方的 和我们的都支持了 |
@tcodehuber 看下你依赖的版本是多少,我这边是 |
估计是依赖的版本问题,目前还是vue2。我们再排查下,感谢🙏 |
ba9c2b3
to
7338423
Compare
* feat: add mysql errorListener and commonErrorListener * feat: improve other sql error msg * feat: support i18n for error msg * feat: add all sql errorMsg unit test * feat: update locale file and change i18n funtion name * test: upate error unit test
* feat(flinksql): collect comment, type attribute for entity * feat(flinksql): delete console log * fix(DTStack#305): delete function ctxToWord,using ctxToText instead of ctxToWord * feat: update attribute's type * feat(flinksql): update flinksql's entitycollect unit test * feat: optimize interface and update unit test * feat: update collect attr detail * feat: optimize interface and some function's arguments * feat: add comment and update params' name * feat: collect alias in select statement * feat: update collect attribute function and update unit test --------- Co-authored-by: zhaoge <>
Co-authored-by: liuyi <[email protected]>
* feat(trinosql): collect trino sql's attribute(comment,alias,colType) * feat(hivesql): collect hive sql's attribute(comment,alias,colType) * feat(impalasql): collect attribute(comment, colType, alias) * feat(sparksql): collect entity's attribute (comment,alias, colType) * feat: update endContextList of collect attribute * feat(postgresql): collect hive sql's attribute(alias,colType) * feat: update interface of attrInfo and alter entitycollect ts file * feat(mysql): collect entity's attribute(comment,colType,alias) * ci: fix check-types problem --------- Co-authored-by: zhaoge <>
7338423
to
6b05f94
Compare
6b05f94
to
2358d95
Compare
这一个基础sql的修改,为何里面有对 sparkSql 的变更? |
18aeabc
to
d1b1429
Compare
d1b1429
to
4062a56
Compare
基于 SparkSQL 改动,发现了一些问题,已经单独提 PR,这里应该是构建时不小心添加上来的 |
考虑基于 postgresql |
简介
添加通用 SQL 的语法文件,内容基于 spark sql 改动
参考资料