This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new d3882cc0c04 Remove useless MySQLStatisticsAppender (#34391)
d3882cc0c04 is described below
commit d3882cc0c0401f96598a258f9e359098b52907b0
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Jan 18 23:05:31 2025 +0800
Remove useless MySQLStatisticsAppender (#34391)
* Refactor MetaDataContextsFactoryTest
* Remove useless MySQLStatisticsAppender
---
.../builder/dialect/MySQLStatisticsAppender.java | 37 ----------------------
...ta.statistics.builder.DialectStatisticsAppender | 1 -
2 files changed, 38 deletions(-)
diff --git
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLStatisticsAppender.java
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLStatisticsAppender.java
deleted file mode 100644
index 04aaf1081a3..00000000000
---
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLStatisticsAppender.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.infra.metadata.statistics.builder.dialect;
-
-import
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
-import
org.apache.shardingsphere.infra.metadata.statistics.ShardingSphereDatabaseData;
-import
org.apache.shardingsphere.infra.metadata.statistics.builder.DialectStatisticsAppender;
-
-/**
- * Statistics appender for MySQL.
- */
-public final class MySQLStatisticsAppender implements
DialectStatisticsAppender {
-
- @Override
- public void append(final ShardingSphereDatabaseData databaseData, final
ShardingSphereDatabase database) {
- }
-
- @Override
- public String getDatabaseType() {
- return "MySQL";
- }
-}
diff --git
a/infra/common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.metadata.statistics.builder.DialectStatisticsAppender
b/infra/common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.metadata.statistics.builder.DialectStatisticsAppender
index 4a1ec578b81..54f21e3a806 100644
---
a/infra/common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.metadata.statistics.builder.DialectStatisticsAppender
+++
b/infra/common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.metadata.statistics.builder.DialectStatisticsAppender
@@ -15,5 +15,4 @@
# limitations under the License.
#
-org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.MySQLStatisticsAppender
org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.PostgreSQLStatisticsAppender