-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from singlestore-labs/PLAT-7159
Added tests, fixed bugs
- Loading branch information
Showing
4,426 changed files
with
296,311 additions
and
69 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
export class AliasGenerator { | ||
abstract class AliasGenerator { | ||
private aliasCounter: number = 0 | ||
protected abstract prefix: string | ||
|
||
newAlias() { | ||
return `table_${++this.aliasCounter}`; | ||
return `${this.prefix}_${++this.aliasCounter}`; | ||
} | ||
} | ||
|
||
export class RowsetAliasGenerator extends AliasGenerator { | ||
prefix = "rowset" | ||
} | ||
|
||
export class ColumnAliasGenerator extends AliasGenerator { | ||
prefix = "column" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.1.2", | ||
"capabilities": { | ||
"query": { | ||
"aggregates": {}, | ||
"variables": {}, | ||
"explain": {} | ||
}, | ||
"mutation": { | ||
"transactional": {}, | ||
"explain": {} | ||
}, | ||
"relationships": { | ||
"relation_comparisons": {}, | ||
"order_by_aggregate": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
{ | ||
"rows": [] | ||
} | ||
] |
Oops, something went wrong.