-
Notifications
You must be signed in to change notification settings - Fork 134
pipelines: warn about unknown attributes #4325
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
base: main
Are you sure you want to change the base?
Conversation
|
Commit: 4dd02a2
18 interesting tests: 7 KNOWN, 5 SKIP, 4 RECOVERED, 2 flaky
Top 46 slowest tests (at least 2 minutes):
|
7a3a6fc to
a910de6
Compare
cmd/pipelines/generate.go
Outdated
| if librariesDyn.Kind() == dyn.KindNil { | ||
| librariesDyn = dyn.V([]dyn.Value{}) |
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 code would benefit from a comment and/or a helper function that just gets librariesDyn.
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.
Makes sense, fixed
| Catalog string `json:"catalog,omitempty"` | ||
| Database string `json:"database,omitempty"` | ||
| Libraries []sdpPipelineLibrary `json:"libraries,omitempty"` | ||
| Storage string `json:"storage,omitempty"` |
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.
Are you using this?
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.
It's needed to avoid warnings about unknown attributes
|
@lennartkats-db please take a look again |
Changes
Warn about unknown attributes in spark-pipeline.yml
Why
It avoids cases when spark-pipeline.yml is incorrectly formatted and "pipelines generate" command produces incorrect output.
Tests
Acceptance tests