This is an automated email from the ASF dual-hosted git repository.

zhonghongsheng 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 a4c735de1aa Remove PipelineUnexpectedDataRecordOrderException (#25510)
a4c735de1aa is described below

commit a4c735de1aaf40e3d32d3b30f520d35e769c7a91
Author: Hongsheng Zhong <[email protected]>
AuthorDate: Mon May 8 09:57:27 2023 +0800

    Remove PipelineUnexpectedDataRecordOrderException (#25510)
    
    * Remove PipelineUnexpectedDataRecordOrderException
    
    * Update sql error code
---
 .../user-manual/error-code/sql-error-code.cn.md    |  1 -
 .../user-manual/error-code/sql-error-code.en.md    |  1 -
 ...PipelineUnexpectedDataRecordOrderException.java | 34 ----------------------
 3 files changed, 36 deletions(-)

diff --git a/docs/document/content/user-manual/error-code/sql-error-code.cn.md 
b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
index fa767be4801..f8877a3fedd 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.cn.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
@@ -116,7 +116,6 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 | HY000     | 18020       | Failed to get DDL for table \`%s\`.                
                                |
 | 42S01     | 18030       | Duplicate storage unit names \`%s\`.               
                                |
 | 42S02     | 18031       | Storage units names \`%s\` do not exist.           
                                |
-| HY000     | 18050       | Before data record is \`%s\`, after data record is 
\`%s\`.                         |
 | 08000     | 18051       | Data check table \`%s\` failed.                    
                                |
 | 0A000     | 18052       | Unsupported pipeline database type \`%s\`.         
                                |
 | 0A000     | 18053       | Unsupported CRC32 data consistency calculate 
algorithm with database type \`%s\`.  |
diff --git a/docs/document/content/user-manual/error-code/sql-error-code.en.md 
b/docs/document/content/user-manual/error-code/sql-error-code.en.md
index dd314d92beb..4707f1ab1ae 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.en.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.en.md
@@ -116,7 +116,6 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 | HY000     | 18020       | Failed to get DDL for table \`%s\`.                
                                |
 | 42S01     | 18030       | Duplicate storage unit names \`%s\`.               
                                |
 | 42S02     | 18031       | Storage units names \`%s\` do not exist.           
                                |
-| HY000     | 18050       | Before data record is \`%s\`, after data record is 
\`%s\`.                         |
 | 08000     | 18051       | Data check table \`%s\` failed.                    
                                |
 | 0A000     | 18052       | Unsupported pipeline database type \`%s\`.         
                                |
 | 0A000     | 18053       | Unsupported CRC32 data consistency calculate 
algorithm with database type \`%s\`.  |
diff --git 
a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/exception/data/PipelineUnexpectedDataRecordOrderException.java
 
b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/exception/data/PipelineUnexpectedDataRecordOrderException.java
deleted file mode 100644
index 1ceb466e31e..00000000000
--- 
a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/exception/data/PipelineUnexpectedDataRecordOrderException.java
+++ /dev/null
@@ -1,34 +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.data.pipeline.core.exception.data;
-
-import org.apache.shardingsphere.data.pipeline.api.ingest.record.DataRecord;
-import 
org.apache.shardingsphere.data.pipeline.core.exception.PipelineSQLException;
-import 
org.apache.shardingsphere.infra.util.exception.external.sql.sqlstate.XOpenSQLState;
-
-/**
- * Pipeline unexpected data record order exception.
- */
-public final class PipelineUnexpectedDataRecordOrderException extends 
PipelineSQLException {
-    
-    private static final long serialVersionUID = 6023695604738387750L;
-    
-    public PipelineUnexpectedDataRecordOrderException(final DataRecord 
beforeDataRecord, final DataRecord afterDataRecord) {
-        super(XOpenSQLState.GENERAL_ERROR, 50, String.format("Before data 
record is `%s`, after data record is `%s`.", beforeDataRecord, 
afterDataRecord));
-    }
-}

Reply via email to