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

[BUG] Fix high priority violations detected by code analysis tools #2109

Closed
gerashegalov opened this issue Apr 9, 2021 · 0 comments · Fixed by #2168, #2172 or #2222
Closed

[BUG] Fix high priority violations detected by code analysis tools #2109

gerashegalov opened this issue Apr 9, 2021 · 0 comments · Fixed by #2168, #2172 or #2222
Assignees
Labels
audit_3.2.0 bug Something isn't working P0 Must have for release

Comments

@gerashegalov
Copy link
Collaborator

Describe the bug
Running IDEA's code analysis tool uncovers sources of potential bugs such as using map instead of foreach.

Steps/Code to reproduce bug
IDEA->Analyze->Inspect Code

Expected behavior
No semantic errors

Environment details (please complete the following information)
Source code

Additional context
See apache/spark@830249284d

@gerashegalov gerashegalov added bug Something isn't working ? - Needs Triage Need team to review and classify audit_3.2.0 labels Apr 9, 2021
@sameerz sameerz added P0 Must have for release and removed ? - Needs Triage Need team to review and classify labels Apr 13, 2021
@sameerz sameerz added this to the Apr 12 - Apr 23 milestone Apr 15, 2021
@gerashegalov gerashegalov linked a pull request Apr 16, 2021 that will close this issue
gerashegalov added a commit to gerashegalov/spark-rapids that referenced this issue Apr 17, 2021
gerashegalov added a commit to gerashegalov/spark-rapids that referenced this issue Apr 17, 2021
@gerashegalov gerashegalov linked a pull request Apr 17, 2021 that will close this issue
gerashegalov added a commit that referenced this issue Apr 19, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Contributes to #2109. Replaces unnecessary typechecks for AutoCloseable with `withResourceIfAllowed`
@gerashegalov gerashegalov reopened this Apr 19, 2021
@gerashegalov gerashegalov reopened this Apr 20, 2021
gerashegalov added a commit that referenced this issue Apr 21, 2021
Contributes to #2109 
- unnecessary toSeq
- .size on Array or String causes conversion to SeqLike
- use mnemonic isEmpty/nonEmpty where possible
- substitute map for unzip

Signed-off-by: Gera Shegalov <[email protected]>
gerashegalov added a commit that referenced this issue Apr 21, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Fix simple collection operations. Contributes to #2109 
- replace map with foreach when the return value is not used
- forall where appropriate
- access head elements without specifying indices.
- simplify index iteration
@gerashegalov gerashegalov linked a pull request Apr 21, 2021 that will close this issue
gerashegalov added a commit that referenced this issue Apr 21, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Minor maven cleanup. Contributes to #2109
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Contributes to NVIDIA#2109. Replaces unnecessary typechecks for AutoCloseable with `withResourceIfAllowed`
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Contributes to NVIDIA#2109 
- unnecessary toSeq
- .size on Array or String causes conversion to SeqLike
- use mnemonic isEmpty/nonEmpty where possible
- substitute map for unzip

Signed-off-by: Gera Shegalov <[email protected]>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Fix simple collection operations. Contributes to NVIDIA#2109 
- replace map with foreach when the return value is not used
- forall where appropriate
- access head elements without specifying indices.
- simplify index iteration
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Minor maven cleanup. Contributes to NVIDIA#2109
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Contributes to NVIDIA#2109. Replaces unnecessary typechecks for AutoCloseable with `withResourceIfAllowed`
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Contributes to NVIDIA#2109 
- unnecessary toSeq
- .size on Array or String causes conversion to SeqLike
- use mnemonic isEmpty/nonEmpty where possible
- substitute map for unzip

Signed-off-by: Gera Shegalov <[email protected]>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Fix simple collection operations. Contributes to NVIDIA#2109 
- replace map with foreach when the return value is not used
- forall where appropriate
- access head elements without specifying indices.
- simplify index iteration
nartal1 pushed a commit to nartal1/spark-rapids that referenced this issue Jun 9, 2021
Signed-off-by: Gera Shegalov <[email protected]>

Minor maven cleanup. Contributes to NVIDIA#2109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment