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 opensearch directory (pt 2/2) #17 #1978

Merged
merged 6 commits into from
Aug 18, 2023

Conversation

MitchellGale
Copy link
Contributor

@MitchellGale MitchellGale commented Aug 16, 2023

Description

Applies spotless for opensearch directory in project. Sets checkstyle to not fail on failure for opensearch directory.

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.

@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #1978 (cc91d7c) into main (56aa572) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               main    #1978   +/-   ##
=========================================
  Coverage     97.33%   97.33%           
- Complexity     4656     4657    +1     
=========================================
  Files           408      408           
  Lines         12063    12097   +34     
  Branches        829      829           
=========================================
+ Hits          11741    11775   +34     
  Misses          315      315           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.33% <100.00%> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
...l/opensearch/data/type/OpenSearchGeoPointType.java 100.00% <ø> (ø)
...rch/sql/opensearch/data/type/OpenSearchIpType.java 100.00% <ø> (ø)
...l/opensearch/data/value/OpenSearchExprIpValue.java 100.00% <ø> (ø)
...opensearch/data/value/OpenSearchExprTextValue.java 100.00% <ø> (ø)
...ql/opensearch/executor/OpenSearchQueryManager.java 100.00% <ø> (ø)
...search/executor/protector/ResourceMonitorPlan.java 100.00% <ø> (ø)
...arch/sql/opensearch/request/OpenSearchRequest.java 100.00% <ø> (ø)
...earch/sql/opensearch/response/agg/StatsParser.java 100.00% <ø> (ø)
.../opensearch/sql/opensearch/response/agg/Utils.java 100.00% <ø> (ø)
...search/sql/opensearch/security/SecurityAccess.java 0.00% <ø> (ø)
... and 35 more

Signed-off-by: Mitchell Gale <[email protected]>
acarbonetto
acarbonetto previously approved these changes Aug 18, 2023
package org.opensearch.sql.opensearch.data.type;

import static org.opensearch.sql.data.type.ExprCoreType.UNKNOWN;

import lombok.EqualsAndHashCode;

/**
* The type of a geo_point value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/geo-point/">doc</a>
* The type of a geo_point value. See <a
Copy link
Collaborator

Choose a reason for hiding this comment

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

this isn't going to work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It works

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

package org.opensearch.sql.opensearch.data.type;

import static org.opensearch.sql.data.type.ExprCoreType.UNKNOWN;

import lombok.EqualsAndHashCode;

/**
* The type of an ip value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/ip/">doc</a>
* The type of an ip value. See <a
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

@@ -15,17 +15,16 @@
import org.opensearch.sql.data.type.ExprType;

/**
* The type of a text value. See
* <a href="https://opensearch.org/docs/latest/opensearch/supported-field-types/text/">doc</a>
* The type of a text value. See <a
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ditto

Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

@@ -67,8 +67,8 @@ protected OpenSearchDataType cloneEmpty() {
}

/**
* Text field doesn't have doc value (exception thrown even when you call "get")
* Limitation: assume inner field name is always "keyword".
* Text field doesn't have doc value (exception thrown even when you call "get") Limitation:
Copy link
Collaborator

@acarbonetto acarbonetto Aug 18, 2023

Choose a reason for hiding this comment

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

Please add </br>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
GumpacG
GumpacG previously approved these changes Aug 18, 2023
Signed-off-by: Mitchell Gale <[email protected]>
GumpacG
GumpacG previously approved these changes Aug 18, 2023
Yury-Fridlyand
Yury-Fridlyand previously approved these changes Aug 18, 2023
Signed-off-by: Mitchell Gale <[email protected]>
@GumpacG GumpacG merged commit b977f1e into opensearch-project:main Aug 18, 2023
15 checks passed
@MitchellGale MitchellGale deleted the dev/sl_GoogleJavaFormat17 branch August 18, 2023 21:06
MitchellGale added a commit to Bit-Quill/opensearch-project-sql that referenced this pull request Aug 22, 2023
…/2) #17 (opensearch-project#1978)

* spotless apply for OpenSearch P2.

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

* Spotlesss apply run

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

* Addressed PR comments

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

* Apply suggestions from code review

Co-authored-by: Guian Gumpac <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>

* spotless apply

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

* fixed json formatting in test.

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

---------

Signed-off-by: Mitchell Gale <[email protected]>
Signed-off-by: Mitchell Gale <[email protected]>
Co-authored-by: Guian Gumpac <[email protected]>
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