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] Remove unused imports #305

Merged
merged 4 commits into from
Jul 24, 2023

Conversation

MitchellGale
Copy link

Description

Removes unused imports through spotless.

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 20, 2023

Codecov Report

Merging #305 (0d3527e) into integ/sl_removeUnusedImports (dade5d5) will not change coverage.
The diff coverage is n/a.

@@                       Coverage Diff                       @@
##             integ/sl_removeUnusedImports     #305   +/-   ##
===============================================================
  Coverage                           97.39%   97.39%           
  Complexity                           4608     4608           
===============================================================
  Files                                 401      401           
  Lines                               11408    11408           
  Branches                              843      843           
===============================================================
  Hits                                11111    11111           
  Misses                                290      290           
  Partials                                7        7           
Flag Coverage Δ
sql-engine 97.39% <ø> (ø)

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

Impacted Files Coverage Δ
...ain/java/org/opensearch/sql/analysis/Analyzer.java 100.00% <ø> (ø)
...alysis/DataSourceSchemaIdentifierNameResolver.java 100.00% <ø> (ø)
...rg/opensearch/sql/analysis/ExpressionAnalyzer.java 100.00% <ø> (ø)
...ensearch/sql/analysis/NamedExpressionAnalyzer.java 100.00% <ø> (ø)
...search/sql/planner/logical/LogicalFetchCursor.java 100.00% <ø> (ø)
...arch/sql/planner/physical/AggregationOperator.java 100.00% <ø> (ø)
...nsearch/data/value/OpenSearchExprValueFactory.java 100.00% <ø> (ø)
...pensearch/sql/opensearch/mapping/IndexMapping.java 100.00% <ø> (ø)
...l/opensearch/storage/scan/OpenSearchIndexScan.java 100.00% <ø> (ø)
...ge/scan/OpenSearchIndexScanAggregationBuilder.java 100.00% <ø> (ø)
... and 9 more

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


import java.io.IOException;

import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DATE;
import static org.opensearch.sql.util.MatcherUtils.rows;
import static org.opensearch.sql.util.MatcherUtils.schema;
import static org.opensearch.sql.util.MatcherUtils.verifyDataRows;
import static org.opensearch.sql.util.MatcherUtils.verifySchema;
import static org.opensearch.sql.util.MatcherUtils.verifySchema;

Choose a reason for hiding this comment

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

Do you know why this import is indented?

Copy link
Author

@MitchellGale MitchellGale Jul 21, 2023

Choose a reason for hiding this comment

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

Not sure. Fixed here: afd157b


import java.io.IOException;

import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DATE;
import static org.opensearch.sql.util.MatcherUtils.rows;
import static org.opensearch.sql.util.MatcherUtils.schema;
import static org.opensearch.sql.util.MatcherUtils.verifyDataRows;
import static org.opensearch.sql.util.MatcherUtils.verifySchema;
import static org.opensearch.sql.util.MatcherUtils.verifySchema;

Choose a reason for hiding this comment

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

Suggested change
import static org.opensearch.sql.util.MatcherUtils.verifySchema;
import static org.opensearch.sql.util.MatcherUtils.verifySchema;

Copy link
Author

Choose a reason for hiding this comment

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

Fixed here: afd157b

@@ -6,7 +6,6 @@

package org.opensearch.sql.legacy.esdomain;

import static org.opensearch.common.settings.Settings.EMPTY;

Choose a reason for hiding this comment

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

Suggested change

Copy link
Author

Choose a reason for hiding this comment

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

0d3527e Fixed here

@MitchellGale MitchellGale merged commit c6a68b2 into integ/sl_removeUnusedImports Jul 24, 2023
15 of 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.

5 participants