This is an automated email from the ASF dual-hosted git repository. zabetak pushed a commit to branch branch-1.21 in repository https://gitbox.apache.org/repos/asf/calcite.git
commit faeb6d0ea16c493157a1159c49cb970790c10cc1 Author: 沈洪 <yuling...@alipay.com> AuthorDate: Wed Sep 4 11:02:50 2019 +0800 [CALCITE-3322] Remove duplicate test case in RelMetadataTest (沈洪) Alter testcase RelMetadataTest.testRowCountSortLimit0, adding LIMIT 0 so that it is not the same as testRowCountSortLimit. Close apache/calcite#1439 --- core/src/test/java/org/apache/calcite/test/RelMetadataTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java b/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java index f4e4f97..b877680 100644 --- a/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java +++ b/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java @@ -644,8 +644,8 @@ public class RelMetadataTest extends SqlToRelTestBase { } @Test public void testRowCountSortLimit0() { - final String sql = "select * from emp order by ename limit 10"; - checkRowCount(sql, 10d, 0D, 10d); + final String sql = "select * from emp order by ename limit 0"; + checkRowCount(sql, 1d, 0D, 0d); } @Test public void testRowCountSortLimitOffset() {