-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing test_connection
in TableAsset.test_connection
for uppercase schema name defined in SQL Server / mssql
#10499
Comments
I believe the SQLAlchemy behavior is to always treat lowercase identifiers as cases insensitive. |
hi @amirulmenjeni can you confirm if using a lowercase |
@adeola-ak, I've tried that as well. Sorry I failed to mention that in the original post. But that also didn't work. |
@amirulmenjeni just to confirm, your schema was created with quotations to preserve the uppercase form? therefore the schema name is "S_EC", including the quotes? |
@adeola-ak, yes I've tried several variations, i.e., |
Hi there. It turns out that MSSQL is actually a community-supported integration, meaning that while we welcome contributions, we typically do not fully test or support it. Since you were able to pinpoint where the issue might originate in our codebase, I encourage you to submit a PR contribution if you're interested, which we will promptly review. I understand this may not be the outcome you were hoping for, but I want to thank you for your patience as I investigated the matter. I will be keeping this issue open. |
Using GX Core version: 1.1.1
Currently I'm not able to create a table data asset from the
SQLDatasource
'sadd_table_asset
method when the schema of the table I'm trying to connect to is defined in the database in the uppercase form (e.g.,MY_SCHEMA
):Instead I got the following error:
Looking at the lines below it seems that the
self.schema_name not in inspector.get_schema_names()
check doesn't do case insensitive comparison.great_expectations/great_expectations/datasource/fluent/sql_datasource.py
Lines 908 to 912 in f9aa879
Attempting to bracket the schema with quote characters (e.g.,
'MY_SCHEMA'
) does persist the uppercase, but the test fails as well, complaining:I can still create query asset with
add_query_asset
method, though.The text was updated successfully, but these errors were encountered: