nevin_morgan
08/06/2020, 2:28 PMdouwe_maan
08/06/2020, 3:35 PMnevin_morgan
08/06/2020, 3:48 PMCRITICAL (snowflake.connector.errors.ProgrammingError) 002003 (02000): SQL compilation error:
CRITICAL Schema 'TEST."bingads"' does not exist or not authorized.
CRITICAL [SQL: GRANT USAGE ON SCHEMA "TEST"."bingads" TO ROLE MELTANO;]
CRITICAL (Background on this error at: <http://sqlalche.me/e/13/f405>)nevin_morgan
08/06/2020, 3:49 PMdouwe_maan
08/06/2020, 4:02 PMschema setting to an all-caps BINGADS ? You can use the SF_SCHEMA env var if you like.douwe_maan
08/06/2020, 4:02 PMself.table.schema should be in caps, even though the target never calls upper to make sure that's the case.nevin_morgan
08/06/2020, 4:03 PMdouwe_maan
08/06/2020, 4:03 PMnevin_morgan
08/06/2020, 4:04 PMdouwe_maan
08/06/2020, 4:08 PMvalue_processor: upper setting property (we already have value_processor: nest_object , so adding "upper" or "upcase_string" or something to that effect wouldn't be too difficult)douwe_maan
08/06/2020, 4:08 PMnevin_morgan
08/06/2020, 4:21 PMSnowflake uses Standard (case-sensitive) SQL comparison semantics. Snowflake automatically converts unquoted, case-insensitive identifiers to uppercase internally, so an unquoted object name appears in upper case in the Information Schema views.
nevin_morgan
08/06/2020, 4:21 PMdouwe_maan
08/06/2020, 4:24 PMself.table.schema unquoted, ignoring the lower case and actually creating an uppercase schema, while https://gitlab.com/meltano/target-snowflake/-/blob/master/target_snowflake/snowflake_loader.py#L394 quotes self.table.schema , expecting it to exist in the lowercase versiondouwe_maan
08/06/2020, 4:25 PMself.table.schema , or make sure that it gets created exactly as provided, with quotes. The former will probably lead to fewer headaches, since self.table.schema is passed along to a few different methods that I'm not sure all respect the casingdouwe_maan
08/06/2020, 4:27 PMnevin_morgan
08/06/2020, 5:22 PMnevin_morgan
08/06/2020, 5:23 PMdouwe_maan
08/06/2020, 10:03 PM