-
Notifications
You must be signed in to change notification settings - Fork 116
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: yaml validation files in gcs #977
fix: yaml validation files in gcs #977
Conversation
/gcbrun |
Neha, Good question. I did a bit of research and understand the code better. Summary: I think the fix I proposed is in the right place and happy to hear another point of view. Here is my reasoning:
I looked at It is a good question, hopefully you find it helpful. Sundar Mudupalli |
return mgr.get_validation_config(validation_name) | ||
if validation_name.startswith("gs://"): | ||
obj_depth = len(validation_name.split("/")) | ||
gcs_prefix = "/".join(validation_name.split("/")[: obj_depth - 1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be easier than getting the depth - 1: "/".join(file.split("/")[:-1])
@sundar-mudupalli-work That makes sense. Seems like we need to clean up the StateManager functions a bit. |
This change fixes 972. When using
data-validation configs run -c gs://mudu-plex-pri-myb/db6rows/public.iowa_27rows/0001.yaml
was throwing an error.This fix does not have a test cases. We don't have any GCS based test cases in unit tests. Do the unit tests have access to a GCS bucket ? I tested the fix manually and it works. It would be nice for this to be tested in the test suite
Sundar Mudupalli