Skip to content
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 config validation id column check case-insensitive #41

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

riley-harper
Copy link
Contributor

Fixes #39.

This PR lowercases both the id column and the list of datasource column names before checking that the list contains the id column. This prevents spurious errors when there are case differences between the config file and the datasource column names.

Right now this just uses str.lower() as much of the rest of hlink does. If we encounter some non-ASCII parquet column names, we may be better off using str.casefold() or something more complicated. But this should do for now at least.

@riley-harper riley-harper merged commit e571491 into main Sep 13, 2022
@riley-harper riley-harper deleted the id_column_case branch September 13, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for id column in config validation should be case-insensitive
1 participant