Skip to content

[Improve] implicitUtil improvement#4243

Merged
wolfboys merged 2 commits into
devfrom
utils
May 28, 2025
Merged

[Improve] implicitUtil improvement#4243
wolfboys merged 2 commits into
devfrom
utils

Conversation

@wolfboys

Copy link
Copy Markdown
Member

[Improve] implicitUtil improvement

Contribution Checklist

  1. implicit method autoClose rename to using
  2. remove catalog module

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (yes / no)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR makes two key improvements: it renames the implicit autoClose method to using in the Scala code and removes the catalog module along with several related classes and controllers.

  • Renamed autoClose to using in streampark-common to improve clarity.
  • Removed catalog-related modules including service, mapper, entity, and controller classes.

Reviewed Changes

Copilot reviewed 81 out of 81 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/FlinkCatalogBase.java Removed catalog service implementation.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/DistributedTaskService.java Removed distributed task service interface.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/service/DatabaseService.java Removed database service interface.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/runner/EnvInitializer.java Removed initialization for RegistryService.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/mapper/* Removed mappers associated with catalog and task modules.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/entity/* Removed entity classes related to catalog, database, and distributed tasks.
streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/controller/* Removed controllers for table, catalog, and database operations.
streampark-console/streampark-console-service/pom.xml Removed dependency on streampark-flink-connector-plugin from test scope.
streampark-common/src/main/scala/org/apache/streampark/common/util/Implicits.scala Renamed implicit conversion method from autoClose to using.
streampark-common/src/test/scala/org/apache/streampark/common/util/ImplicitsTest.scala Updated tests to use the new using method.
streampark-common/src/main/scala/org/apache/streampark/common/util/Utils.scala, FileUtils.scala Revised usage of autoClose to using.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Al-assad

Copy link
Copy Markdown
Member

LGTM

@wolfboys wolfboys merged commit 7983e0a into dev May 28, 2025
41 of 43 checks passed
@wolfboys wolfboys deleted the utils branch May 28, 2025 12:16
@Gianzie Gianzie mentioned this pull request May 30, 2025
3 tasks
Gianzie pushed a commit to Gianzie/streampark that referenced this pull request Jun 4, 2025
* [Improve] implicitUtil improvement

* Update Implicits.scala
Gianzie pushed a commit to Gianzie/streampark that referenced this pull request Jun 4, 2025
* [Improve] implicitUtil improvement

* Update Implicits.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants