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

add check that GCS output begins with gs:// #162

Merged
merged 2 commits into from
Aug 19, 2019

Conversation

anne-decusatis
Copy link
Contributor

We received a user report that Ratatool succeeded in running a diff but they didn't know where the result was output to. We should fail fast if the output location is invalid.

@@ -504,6 +505,13 @@ object BigDiffy extends Command {
case m => throw new IllegalArgumentException(s"output mode $m not supported")
}

if (om == GCS && !output.startsWith("gs://")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is it in scope to fail fast similarly for BQ?

@anne-decusatis anne-decusatis merged commit e1b4e41 into spotify:master Aug 19, 2019
@anne-decusatis anne-decusatis deleted the fail_on_bad_gcs branch August 19, 2019 21:04
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.

2 participants