-
Notifications
You must be signed in to change notification settings - Fork 30
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
Create rule S7195: PySpark lit(None) should be used when populating empty columns #4638
base: master
Are you sure you want to change the base?
Conversation
54179e8
to
fbb298d
Compare
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.
LGTM! Clear and concise
rules/S7195/python/rule.adoc
Outdated
|
||
== Why is this an issue? | ||
|
||
In PySpark, when populating a DataFrame columns with empty or null values, it is recommended to use `lit(None)`. |
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.
In PySpark, when populating a DataFrame columns with empty or null values, it is recommended to use `lit(None)`. | |
In PySpark, when populating a DataFrame column with empty or null values, it is recommended to use `lit(None)`. |
rules/S7195/python/metadata.json
Outdated
"quickfix": "unknown", | ||
"code": { | ||
"impacts": { | ||
"MAINTAINABILITY": "MEDIUM", |
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.
subjective May be I would remove maintainability or set it LOW
, but it is really a matter of taste. As you wish!
"MAINTAINABILITY": "MEDIUM", | |
"MAINTAINABILITY": "LOW", |
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.
I think you are right! I am not sure it impacts the maintainability really.
Quality Gate passed for 'rspec-tools'Issues Measures |
Quality Gate passed for 'rspec-frontend'Issues Measures |
You can preview this rule here (updated a few minutes after each push).
Review
A dedicated reviewer checked the rule description successfully for: