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 #5 #1942

Closed
wants to merge 2 commits into from

Conversation

MitchellGale
Copy link
Contributor

Description

Based off #1930, #1931. #1932. #1933 and applies spotless to entire core project. Covers remaining fixes not covered by PR 1-4.

NOTE: should be reviewed after PRs spotless 1-4 PRs are approved.
#1930
#1931
#1932
#1933

Issues Resolved

#1101

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.

Adding core final GJF fix.

Signed-off-by: Mitchell Gale <[email protected]>
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #1942 (cc0fe58) into main (d144706) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #1942      +/-   ##
============================================
+ Coverage     97.42%   97.51%   +0.08%     
- Complexity     4647     4658      +11     
============================================
  Files           408      408              
  Lines         11526    11932     +406     
  Branches        839      832       -7     
============================================
+ Hits          11229    11635     +406     
  Misses          290      290              
  Partials          7        7              
Flag Coverage Δ
sql-engine 97.51% <100.00%> (+0.08%) ⬆️

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

Files Changed Coverage Δ
...a/org/opensearch/sql/analysis/AnalysisContext.java 100.00% <ø> (ø)
...org/opensearch/sql/analysis/HighlightAnalyzer.java 100.00% <ø> (ø)
...ensearch/sql/analysis/NamedExpressionAnalyzer.java 100.00% <ø> (ø)
.../org/opensearch/sql/analysis/symbol/Namespace.java 100.00% <ø> (ø)
...search/sql/data/model/AbstractExprNumberValue.java 100.00% <ø> (ø)
...g/opensearch/sql/data/model/AbstractExprValue.java 100.00% <ø> (ø)
...rg/opensearch/sql/data/model/ExprBooleanValue.java 100.00% <ø> (ø)
...a/org/opensearch/sql/data/model/ExprByteValue.java 100.00% <ø> (ø)
...org/opensearch/sql/data/model/ExprDoubleValue.java 100.00% <ø> (ø)
.../org/opensearch/sql/data/model/ExprFloatValue.java 100.00% <ø> (ø)
... and 192 more

* Fixing strings change from main OS repo.

Signed-off-by: Mitchell Gale <[email protected]>

* Fixing issues.

Signed-off-by: Mitchell Gale <[email protected]>

* Fixing changed syntax to toStirng.

Signed-off-by: Mitchell Gale <[email protected]>

* Fixing changed syntax to toStirng.

Signed-off-by: Mitchell Gale <[email protected]>

* add tosttring fix to RestSQLQueryActionCursorFallbackTest

Signed-off-by: Mitchell Gale <[email protected]>

* added unused function

Signed-off-by: Mitchell Gale <[email protected]>

---------

Signed-off-by: Mitchell Gale <[email protected]>
@MitchellGale MitchellGale marked this pull request as draft August 8, 2023 22:29
* Agg(Alias("AVG(age)", aggExpr), Alias("length(name)", groupExpr))
*
* <ol>
* <li>1. SELECT name, AVG(age) FROM s BY name -> Project(Alias("name", expr), Alias("AVG(age)",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove 1. here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed in #1930.

* WHEN search_condition THEN result_expr
* [WHEN search_condition THEN result_expr] ...
* [ELSE result_expr]
* CASE<br>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not just use <pre> here similar to line 263 below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced with pre in #1930.

* <li>Define a public no-arg constructor.
* </ul>
* <li>Overwrite {@link #getPlanForSerialization} to return another instance of {@link
* SerializablePlan}.
Copy link
Collaborator

@GumpacG GumpacG Aug 8, 2023

Choose a reason for hiding this comment

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

Missed closing </li>

@MitchellGale MitchellGale marked this pull request as ready for review August 9, 2023 22:05
@MitchellGale MitchellGale changed the base branch from main to 2.x August 9, 2023 22:06
@MitchellGale MitchellGale changed the base branch from 2.x to main August 9, 2023 22:06
@Yury-Fridlyand
Copy link
Collaborator

Why?

@Yury-Fridlyand
Copy link
Collaborator

Superseded by #1951

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.

3 participants