Skip to content

Commit 9c82a5d

Browse files
author
mumiao
authored
feat: support trino(presto) sql language (#105)
* feat(trino): intergrate prestoGrammar to dt-sql-parser * feat(trino): add trinoSQl test framework * feat(trino): intergrate test files for trinoSQL * test(trino): support alterStatement test * test(trino): support alter table set authorization statement * feat(trino): complete trinosql alter unit tests * test(trino): complete dropStatement unit cases for trinosql * test(trino): complete create statement unit cases for trinoSQL * test(trino): complete insertStatement unit cases for trinoSQl * test(trino): dropStatement test files changed to short line split * test(trino): complete selectStatement unit cases and grammar check * test(trino): complete commentStatement unit case for trinoSQL * test(trino): complete analyze commit and call clause unit case * test(trino): complete delete deny and describe statement unit case * test(trino): complete explain execute and grant statement unit case * feat(trino): improve GRANT Role grammar * test(trino): complete show statement unit case * test(trino): complete truncateTable startTransaction update and values statement unit case * test(trino): improve update statement test cases * test(trino): complete revoke revoke roles and rollback statement unit case * test(trino): add set statement test case * feat: generator new trino parser and lexer file * feat(trino): improve alter statement grammar * test(trino): complete alter statement unit cases * feat(trino): support case-insensitive lexers * fix(trino): rm unless gen files * test(trino): complete merge and reset session statement unit cases * test(trino): complete merge anduse statement unit cases * test(trino): complete prepare and refresh materialized view statement unit cases * test(trino): improve statement unit cases * test(trino): complete match recognize statement unit cases * test(trino): complete window with row pattern recognition statement unit cases
1 parent 0924acf commit 9c82a5d

119 files changed

Lines changed: 35039 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/antlr4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const entry = [
1313
'plsql',
1414
'spark',
1515
'flinksql',
16+
'trinosql',
1617
];
1718

1819
function compile(language) {

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module.exports = {
182182
},
183183

184184
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
185-
transformIgnorePatterns: ["/node_modules/(?!antlr4)"],
185+
transformIgnorePatterns: ["/node_modules/.pnpm/(?!antlr4)"],
186186

187187
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
188188
// unmockedModulePathPatterns: undefined,
@@ -196,6 +196,6 @@ module.exports = {
196196
// Whether to use watchman for file crawling
197197
// watchman: true,
198198
moduleNameMapper: {
199-
"^antlr4$": "<rootDir>/node_modules/antlr4/src/antlr4/index.web.js",
199+
"^antlr4$": "<rootDir>/node_modules/antlr4/dist/antlr4.web.js",
200200
},
201201
};

0 commit comments

Comments
 (0)