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 integ-tests #8 #1962

Merged

Conversation

MitchellGale
Copy link
Contributor

Description

Spotless apply on integ-test (part 1 of 4 integ-test integration).

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.

add ignore failures for build.gradle.



Reverting ignore for checkstyle in integ-test



Addressed PR comments.



Addressed PR comments to expand jav doc.



fixed string formatting



Fixed string formatting.



Fixed string formatting in MatchPhrasePrefixIT

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #1962 (5eb9b87) into main (245c4f8) will decrease coverage by 0.01%.
Report is 3 commits behind head on main.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1962      +/-   ##
============================================
- Coverage     97.51%   97.51%   -0.01%     
+ Complexity     4657     4656       -1     
============================================
  Files           408      408              
  Lines         11933    11930       -3     
  Branches        829      829              
============================================
- Hits          11637    11634       -3     
  Misses          289      289              
  Partials          7        7              
Flag Coverage Δ
sql-engine 97.51% <ø> (-0.01%) ⬇️

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

see 2 files with indirect coverage changes

@@ -5,15 +5,16 @@

package org.opensearch.sql.sql;

import org.junit.Test;
Copy link
Collaborator

Choose a reason for hiding this comment

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

import order is incorrect

Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Yury-Fridlyand
Yury-Fridlyand previously approved these changes Aug 15, 2023
var query = String.format("SELECT * FROM %s", table);
ResultSet rs = stmt.executeQuery(query);
int rows = 0;
for (; rs.next(); rows++) ;
for (; rs.next(); rows++)
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: Maybe switch this to a while loop. Looks odd to have ; on a separate column.

GumpacG
GumpacG previously approved these changes Aug 15, 2023
Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
@Yury-Fridlyand Yury-Fridlyand merged commit c60a4f1 into opensearch-project:main Aug 16, 2023
14 of 15 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the integ/sl_GoogleJavaFormat8 branch August 16, 2023 20:34
MitchellGale added a commit to Bit-Quill/opensearch-project-sql that referenced this pull request Aug 22, 2023
…-project#1962)

* spotless apply for 81 integ-test files (#327)

add ignore failures for build.gradle.

Reverting ignore for checkstyle in integ-test

Addressed PR comments.

Addressed PR comments to expand jav doc.

fixed string formatting

Fixed string formatting.

Fixed string formatting in MatchPhrasePrefixIT

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

* Apply suggestions from code review

Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>

* address PR comments

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

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
Co-authored-by: Yury-Fridlyand <yury.fridlyand@improving.com>
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