Closed chris-codaio closed 1 month ago
@chris-codaio In some dialects, there is no schema. To maintain a constant white list check, I can include the schema name, which might be [ 'select::foo.bar::baz' ]
.
@chris-codaio In some dialects, there is no schema. To maintain a constant white list check, I can include the schema name, which might be
[ 'select::foo.bar::baz' ]
.
Sounds reasonable; or you could accept an opts
parameter which specifies the format of this field? Let users opt-in to [ 'select::foo.bar.baz' ]
if they want?
Describe the bug When retrieving the tableList from parsing, table references should be of the form
dbName:schemaName:tableName
Database Engine Snowflake
To Reproduce parser.tableList(
SELECT * from foo.bar.baz
, {database: 'Snowflake'});Expected behavior parser.tableList(
SELECT * from foo.bar.baz
, {database: 'Snowflake'});Additional context Schema is an important part of enforcing table whitelisting since skipping this means one could target a schema other than the one desired to be whitelisted.