Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8237

Limit is not pushed down to scan for MSSQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.20.2
    • None
    • None

    Description

      dzamo has noticed that the following test case will fail

        @Test
        public void testLimitPushDownWithOffset() throws Exception {
          String query = "select person_id, first_name from mssql.dbo.person limit 100 offset 10";
          queryBuilder()
            .sql(query)
            .planMatcher()
            .include("Jdbc\\(.*SELECT TOP \\(110\\)")
            .include("Limit\\(")
            .match();
        }
      

      because the limit wasn't pushed down.

      Attachments

        Activity

          People

            volodymyr Vova Vysotskyi
            volodymyr Vova Vysotskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: