You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2024/11/06 15:18:36 UTC
(shardingsphere) branch master updated: Add more tests on ColumnValueMatchedShadowAlgorithm (#33575)
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 aa793061d42 Add more tests on ColumnValueMatchedShadowAlgorithm (#33575)
aa793061d42 is described below
commit aa793061d420aa1553d846554c47beb6f03b14e8
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Wed Nov 6 23:18:29 2024 +0800
Add more tests on ColumnValueMatchedShadowAlgorithm (#33575)
---
.../algorithm/shadow/column/PreciseColumnShadowValueFixtureBuilder.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/algorithm/shadow/column/PreciseColumnShadowValueFixtureBuilder.java b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/algorithm/shadow/column/PreciseColumnShadowValueFixtureBuilder.java
index 2499858d761..09d3281f3cf 100644
--- a/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/algorithm/shadow/column/PreciseColumnShadowValueFixtureBuilder.java
+++ b/features/shadow/core/src/test/java/org/apache/shardingsphere/shadow/algorithm/shadow/column/PreciseColumnShadowValueFixtureBuilder.java
@@ -50,6 +50,7 @@ final class PreciseColumnShadowValueFixtureBuilder {
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.INSERT, shadowColumn, '2'));
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.INSERT, shadowColumn, new BigInteger("2")));
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.INSERT, shadowColumn, new BigDecimal("2")));
+ result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.INSERT, "invalid_col", new BigDecimal("2")));
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.UPDATE, shadowColumn, 1));
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.UPDATE, shadowColumn, 1L));
result.add(new PreciseColumnShadowValue<>(shadowTable, ShadowOperationType.UPDATE, shadowColumn, "1"));