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

[Spotless] Applying Google Code Format for core/src/main files #3 #314

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

MitchellGale
Copy link

Description

This PR applies Spotless on Java code for:
core/src/main/java/org/opensearch/sql/planner
core/src/main/java/org/opensearch/sql/storage
core/src/main/java/org/opensearch/sql/utils

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #314 (d52b65c) into integ/sl_GoogleJavaFormat3 (d00dc4d) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@                       Coverage Diff                        @@
##             integ/sl_GoogleJavaFormat3     #314      +/-   ##
================================================================
- Coverage                         97.42%   97.42%   -0.01%     
  Complexity                         4647     4647              
================================================================
  Files                               408      408              
  Lines                             11526    11522       -4     
  Branches                            839      837       -2     
================================================================
- Hits                              11229    11225       -4     
  Misses                              290      290              
  Partials                              7        7              
Flag Coverage Δ
sql-engine 97.42% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...n/java/org/opensearch/sql/planner/PlanContext.java 100.00% <ø> (ø)
...a/org/opensearch/sql/planner/SerializablePlan.java 100.00% <ø> (ø)
.../org/opensearch/sql/planner/logical/LogicalAD.java 100.00% <ø> (ø)
...search/sql/planner/logical/LogicalAggregation.java 100.00% <ø> (ø)
...search/sql/planner/logical/LogicalCloseCursor.java 100.00% <ø> (ø)
.../opensearch/sql/planner/logical/LogicalDedupe.java 100.00% <ø> (ø)
...rg/opensearch/sql/planner/logical/LogicalEval.java 100.00% <ø> (ø)
...search/sql/planner/logical/LogicalFetchCursor.java 100.00% <ø> (ø)
.../opensearch/sql/planner/logical/LogicalFilter.java 100.00% <ø> (ø)
...ensearch/sql/planner/logical/LogicalHighlight.java 100.00% <ø> (ø)
... and 70 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@GumpacG
Copy link

GumpacG commented Jul 25, 2023

Checkstyle fails for some of the changes.

@MitchellGale
Copy link
Author

Checkstyle fails for some of the changes.

Yeah, sadly I think I'll have to disable checkstyle. I'm looking into making Spotless have the same rules as checkstyles to see if that works.

* "out of nothing" which is corresponding with VALUES clause in SQL.
* Mostly all rows must have the same number of literals and each column should
* have same type or can be converted implicitly.
* In particular, typical use cases include:

Choose a reason for hiding this comment

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

can we ignore spotless here?
or add list tags...

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

* 1> Optimize the current node with all the rules.
* 2> Optimize the all the child nodes with all the rules.
* 3) In case the child node could change, Optimize the current node again.
* {@link LogicalPlan} Optimizer. The Optimizer will run in the TopDown manner. 1> Optimize the

Choose a reason for hiding this comment

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

can we ignore spotless here or add list tags?

Copy link
Author

Choose a reason for hiding this comment

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

Done!

…ensearch/sql/planner core/src/main/java/org/opensearch/sql/storage core/src/main/java/org/opensearch/sql/utils

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
… fixes files.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
…ava OperatorUtils.java Planner.java

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
@MitchellGale MitchellGale changed the base branch from integ/sl_GoogleJavaFormat3 to Integ-clean_up August 2, 2023 17:10
@MitchellGale MitchellGale changed the base branch from Integ-clean_up to integ/sl_GoogleJavaFormat3 August 2, 2023 17:11
* row = comments: {
* likes: 2
* }
* <p>Sample input: keys = ['comments.likes'] row = comments: { likes: 2 }

Choose a reason for hiding this comment

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

Add pre or few br

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! added pre in d52b65c

…re tag.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
@MitchellGale MitchellGale merged commit ae39e70 into integ/sl_GoogleJavaFormat3 Aug 3, 2023
20 checks passed
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.

4 participants