keboola / db-writer-snowflake

Snowflake database writer
MIT License
0 stars 1 forks source link

Error on getUserDefaultWarehouse when user's NAME != LOGIN_NAME #30

Closed MiroCillik closed 6 years ago

MiroCillik commented 6 years ago

https://github.com/keboola/db-writer-snowflake/blame/master/src/Keboola/DbWriter/Writer/Snowflake.php#L336

DESC USER works with NAME not LOGIN_NAME, which might not be the same.

If their not the same and warehouse is not filled in explicitly, this function fails with error: NAME = miro LOGIN_NAME = mirotest(at)keboola.com

DESC USER "mirotest(at)keboola.com"

user '"miro@keboola.com"' does not exist