Skip to content

Commit

Permalink
refactor: optimize spark grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxy0551 committed Oct 21, 2024
1 parent 2358d95 commit 115bb6a
Show file tree
Hide file tree
Showing 7 changed files with 6,762 additions and 9,210 deletions.
412 changes: 137 additions & 275 deletions src/grammar/spark/SparkSqlParser.g4

Large diffs are not rendered by default.

34 changes: 1 addition & 33 deletions src/lib/spark/SparkSqlParser.interp

Large diffs are not rendered by default.

14,925 changes: 6,622 additions & 8,303 deletions src/lib/spark/SparkSqlParser.ts

Large diffs are not rendered by default.

365 changes: 0 additions & 365 deletions src/lib/spark/SparkSqlParserListener.ts

Large diffs are not rendered by default.

232 changes: 0 additions & 232 deletions src/lib/spark/SparkSqlParserVisitor.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/parser/spark/suggestion/suggestionWithEntity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const syntaxSql = fs.readFileSync(
'utf-8'
);

describe('PostgreSql Syntax Suggestion with collect entity', () => {
describe('Spark SQL Syntax Suggestion with collect entity', () => {
const spark = new SparkSQL();

test('select with no column', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/parser/spark/syntax/alter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const spark = new SparkSQL();

const features = {
alterDatabase: readSQL(__dirname, 'alterDatabase.sql'),
altertTable: readSQL(__dirname, 'alterTable.sql'),
alterTable: readSQL(__dirname, 'alterTable.sql'),
alterView: readSQL(__dirname, 'alterView.sql'),
alterMaterializedView: readSQL(__dirname, 'alterMaterializedView.sql'),
};
Expand Down

0 comments on commit 115bb6a

Please sign in to comment.