You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Hong Shen (Jira)" <ji...@apache.org> on 2019/09/04 02:55:02 UTC

[jira] [Created] (CALCITE-3322) There are two same testcase in RelMetadataTest

Hong Shen created CALCITE-3322:
----------------------------------

             Summary: There are two same testcase in RelMetadataTest
                 Key: CALCITE-3322
                 URL: https://issues.apache.org/jira/browse/CALCITE-3322
             Project: Calcite
          Issue Type: Test
          Components: core
    Affects Versions: 1.20.0
            Reporter: Hong Shen


When I read the code, I found two identical testcases, except for the different names, which might need to be changed to limit 0, or just need to keep one.
<code>
  @Test public void testRowCountSortLimit() {
    final String sql = "select * from emp order by ename limit 10";
    checkRowCount(sql, 10d, 0D, 10d);
  }

  @Test public void testRowCountSortLimit0() {
    final String sql = "select * from emp order by ename limit 10";
    checkRowCount(sql, 10d, 0D, 10d);
  }
<code>



--
This message was sent by Atlassian Jira
(v8.3.2#803003)