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
go/adbc/driver/snowflake: GetObjects API inconsistent case sensitivity for patterns #1314
Comments
#1299 Found while working on adding more metadata tests |
The behavior is up to the vendor; Snowflake's case-sensitivity is odd so it may be best to be case-insensitive by default |
In my experience, most SQL dialects tend to be case-insensitive by default unless quotes are used to enforce the casing, so I agree with @lidavidm here. As long as we support allowing the user to include quotes in the value so that they can choose to enforce casing if they want, I think we're okay. |
Thanks, I will work on making the
|
Yes, please go ahead and file another issue - thanks! |
created issue for BigQuery here: #1321 |
Created PR: #1328 |
### Description: `GetObjects` API was inconsistent case sensitivity for patterns. `getObjectsDbSchemas` driver implementation used `LIKE` whereas `getObjectsTables` used `ILIKE` ### Solution: Based on discussion here: #1314 changed `GetObjects` API to use `ILIKE` throughout instead of `LIKE` ### Testing: Added tests for lowercase, uppercase and `_` wildcard Fixes #1314.
The spec doesn't seem clear for case-sensitivity.
Similarly, in the
getObjectsDbSchemas
driver implementation it usesLIKE
whereasgetObjectsTables
usesILIKE
. What should be the correct handling as per the spec? Should we allow the patterns to be case-insensitive?The text was updated successfully, but these errors were encountered: