Skip to content
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

refactor: optimize spark grammar #360

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 135 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
Loading