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

ORDER BY DESC is not working for JDBC mariadb storage plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • 1.19.0
    • None
    • Storage - JDBC
    • None

    Description

      If I try to use a ORDER BY DESC clause for my jdbc mariadb storage plugin, it always fails with the attached error message.

      ORDER BY ASC is working perfectly.

       

      I am using mariadb-java-client-3.0.3.jar and mariadb v 10.5.4{}

      edit: If I add a where clause the query is also working, although the result set contains all results like without the clause:

      SELECT * FROM `sql.medat`.`measurement` as m  WHERE TO_DATE( m.`begin`)  >= TO_DATE( '08.02.1970', 'dd.MM.yyyy') AND TO_DATE( m.`begin`) <= TO_DATE( '08.02.2030', 'dd.MM.yyyy') ORDER BY `begin` DESC

      while this one produces the same error:

      SELECT * FROM `sql.medat`.`measurement` as m  WHERE `begin` > DATE_SUB(NOW(), interval '1' month)  ORDER BY `begin` DESC

      Attachments

        1. drill_error.png
          20 kB
          Matthias Rosenthaler
        2. drillbit_log.png
          123 kB
          Matthias Rosenthaler

        Activity

          People

            Unassigned Unassigned
            matthros Matthias Rosenthaler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: