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
Make Column Names Comparison Case Insensitive #234
Comments
Thanks for raising this. What database are you using? The most straightforward way would be to use lowercase column names as a rule, and have one or two tests for case preservation, which would be omitted/skipped in your case. |
I'm interfacing with Trino. Ultimately, the data is stored in AWS S3, but I believe it's Trino that imposes this requirement. Currently, my workaround is I've added a trace within my test setup that adds option 1. |
Thanks, interesting. Are you using odbc to interface with Trino? What's the easiest way to get access to, or deploy, an installation of Trino for testing? This looks related to #155, can you confirm? |
Amazon RedShift has the same feature/limitation. We could add a tweak that defines transformations to column names, or use only lowercase column names. |
Closed in #243. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
My database transforms all column names to lower case. This causes a failure when comparing to generated tables with upper case letters, i.e. iris dataset. I'm not sure how this affects all the other tests but options could be:
get_iris
change all columns to lower casenames(datasets_iris) <- tolower(names(datasets_iris))
testthat::expected_equivalent
which ignores attributesThe text was updated successfully, but these errors were encountered: