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

fix: Add not-null string to accepted date types in append_pre_agg_calc_field() #980

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

nj1973
Copy link
Contributor

@nj1973 nj1973 commented Sep 11, 2023

We were getting an exception from column validation when attempting a min or max validation on a non-null string column:

ValueError: Unsupported column type: !string

I've added a test for this to test_config_manager.py. I needed to add a new mock class MockIbisColumn so I could control the returned data type for a specific column.

I've also changed data_validation/config_manager.py to treat !string in the same way as string.

@nj1973 nj1973 requested a review from a team as a code owner September 11, 2023 16:41
@nj1973 nj1973 linked an issue Sep 11, 2023 that may be closed by this pull request
Copy link
Collaborator

@nehanene15 nehanene15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nj1973 nj1973 merged commit 76fcfc6 into develop Sep 13, 2023
5 checks passed
@nj1973 nj1973 deleted the minmax-nn-string-exception branch September 13, 2023 08:07
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.

validate column: Exception from min/max on not null string column
2 participants