Skip to content

Commit

Permalink
feat: suggest multiple tables with same name and different aliases (#182
Browse files Browse the repository at this point in the history
)

* chore: update deps

* feat(YQL): suggest column aliases and multiple tables with same name and different aliases

* fix: code-review

* feat: support not unique table names for all databases
  • Loading branch information
Raubzeug authored May 2, 2024
1 parent 7e4a390 commit 1d3fb82
Show file tree
Hide file tree
Showing 20 changed files with 178 additions and 1,760 deletions.
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@gravity-ui/tsconfig": "^1.0.0",
"@types/jest": "^29.5.11",
"antlr-format-cli": "^1.2.3",
"antlr4ng-cli": "^1.0.7",
"antlr4ng-cli": "^2.0.0",
"esbuild": "^0.20.0",
"eslint-plugin-filenames": "^1.3.2",
"husky": "^8.0.3",
Expand All @@ -57,8 +57,8 @@
"ts-jest": "^29.1.2"
},
"dependencies": {
"antlr4-c3": "~3.3.5",
"antlr4ng": "^2.0.10"
"antlr4-c3": "^3.4.1",
"antlr4ng": "^3.0.4"
},
"nano-staged": {
"*.{md,yaml,yml,json}": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ClickHouseSymbolTableVisitor

constructor() {
super();
this.symbolTable = new c3.SymbolTable('', {});
this.symbolTable = new c3.SymbolTable('', {allowDuplicateSymbols: true});
this.scope = this.symbolTable.addNewSymbolOfType(c3.ScopedSymbol, undefined);
}

Expand Down
Loading

0 comments on commit 1d3fb82

Please sign in to comment.