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 2025/06/20 01:49:14 UTC
(shardingsphere) branch master updated: Add more assertions on RowNumberDecoratorMergedResultTest (#35756)
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 07d16776080 Add more assertions on RowNumberDecoratorMergedResultTest (#35756)
07d16776080 is described below
commit 07d1677608034b8f0b541011b259c0acd069fb33
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Jun 20 09:49:09 2025 +0800
Add more assertions on RowNumberDecoratorMergedResultTest (#35756)
---
.../merge/dql/pagination/RowNumberDecoratorMergedResultTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java
index 1231df74688..901e272731b 100644
--- a/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java
+++ b/features/sharding/core/src/test/java/org/apache/shardingsphere/sharding/merge/dql/pagination/RowNumberDecoratorMergedResultTest.java
@@ -65,6 +65,7 @@ class RowNumberDecoratorMergedResultTest {
when(binaryOperationExpression.getLeft()).thenReturn(new ColumnSegment(0, 0, new IdentifierValue("row_id")));
when(binaryOperationExpression.getRight()).thenReturn(new LiteralExpressionSegment(0, 0, Integer.MAX_VALUE));
when(binaryOperationExpression.getOperator()).thenReturn(">=");
+ when(binaryOperationExpression.getText()).thenReturn("");
when(whereSegment.getExpr()).thenReturn(binaryOperationExpression);
SubqueryTableSegment subqueryTableSegment = mock(SubqueryTableSegment.class);
SubquerySegment subquerySegment = mock(SubquerySegment.class);
@@ -112,6 +113,7 @@ class RowNumberDecoratorMergedResultTest {
when(binaryOperationExpression.getLeft()).thenReturn(new ColumnSegment(0, 0, new IdentifierValue("row_id")));
when(binaryOperationExpression.getRight()).thenReturn(new LiteralExpressionSegment(0, 0, 2));
when(binaryOperationExpression.getOperator()).thenReturn(">=");
+ when(binaryOperationExpression.getText()).thenReturn("");
when(whereSegment.getExpr()).thenReturn(binaryOperationExpression);
SubqueryTableSegment subqueryTableSegment = mock(SubqueryTableSegment.class);
SubquerySegment subquerySegment = mock(SubquerySegment.class);
@@ -146,6 +148,7 @@ class RowNumberDecoratorMergedResultTest {
when(binaryOperationExpression.getLeft()).thenReturn(new ColumnSegment(0, 0, new IdentifierValue("row_id")));
when(binaryOperationExpression.getRight()).thenReturn(new LiteralExpressionSegment(0, 0, 2));
when(binaryOperationExpression.getOperator()).thenReturn(">=");
+ when(binaryOperationExpression.getText()).thenReturn("");
when(whereSegment.getExpr()).thenReturn(binaryOperationExpression);
SubqueryTableSegment subqueryTableSegment = mock(SubqueryTableSegment.class);
SubquerySegment subquerySegment = mock(SubquerySegment.class);