Details

    Description

      Feature request for Oracle/DB2 migration compatibility:

      We are using the window function "ROW_NUMBER() OVER()" to generate the row sequence number required for pagination across the pages. For example:

      SELECT ROW_NUMBER() OVER() as RN, COL1, COL2 FROM MYTABLE;
      

      Since there is no expression given in the OVER() clause, DB2 will just assign sequential numbers to the output. The column RN returned from the query will have numbers in perfect order.

      However, MariaDB does not guarantee the numbers in order without an explicit ORDER BY.

      This will require query re-writing in order to migrate.

      Attachments

        Issue Links

          Activity

            wfong Will Fong created issue -
            wfong Will Fong made changes -
            Field Original Value New Value
            psergei Sergei Petrunia made changes -
            Description Feature request for Oracle/DB2 migration compatibility:

            We are using the window function "ROW_NUMBER() ORDER()" to generate the row sequence number required for pagination across the pages. For example:

            {code}
            SELECT ROW_NUMBER() OVER() as RN, COL1, COL2 FROM MYTABLE;
            {code}

            Since there is no expression given in the OVER() clause, DB2 will just assign sequential numbers to the output. The column RN returned from the query will have numbers in perfect order.

            However, MariaDB does not guarantee the numbers in order without an explicit ORDER BY.

            This will require query re-writing in order to migrate.
            Feature request for Oracle/DB2 migration compatibility:

            We are using the window function "ROW_NUMBER() OVER()" to generate the row sequence number required for pagination across the pages. For example:

            {code}
            SELECT ROW_NUMBER() OVER() as RN, COL1, COL2 FROM MYTABLE;
            {code}

            Since there is no expression given in the OVER() clause, DB2 will just assign sequential numbers to the output. The column RN returned from the query will have numbers in perfect order.

            However, MariaDB does not guarantee the numbers in order without an explicit ORDER BY.

            This will require query re-writing in order to migrate.
            elenst Elena Stepanova made changes -
            Affects Version/s 10.2.5 [ 22117 ]
            Issue Type Bug [ 1 ] Task [ 3 ]
            elenst Elena Stepanova made changes -
            Assignee Rasmus Johansson [ ratzpo ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Parent MDEV-10879 [ 58199 ]
            Issue Type Task [ 3 ] Technical task [ 7 ]
            serg Sergei Golubchik made changes -
            Affects Version/s 10.2 [ 14601 ]
            serg Sergei Golubchik made changes -
            Assignee Rasmus Johansson [ ratzpo ] Vicentiu Ciorbaru [ cvicentiu ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2 [ 14601 ]
            julien.fritsch Julien Fritsch made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            julien.fritsch Julien Fritsch made changes -
            Reporter Will Fong [ wfong ] Chris Calender [ ccalender ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Summary FR: Oracle/DB2 Compatibility Implicit Ordering for ROW_NUMBER OVER Oracle/DB2 Compatibility Implicit Ordering for ROW_NUMBER OVER
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            cvicentiu Vicențiu Ciorbaru made changes -
            Component/s Optimizer - Window functions [ 13502 ]
            Fix Version/s 10.3.11 [ 23141 ]
            Fix Version/s 10.2.19 [ 23207 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Support case ID 14189 14189 not-26307
            ralf.gebhardt Ralf Gebhardt made changes -
            NRE Projects AC-2610/TDS-2
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 80726 ] MariaDB v4 [ 152144 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 118324

            People

              cvicentiu Vicențiu Ciorbaru
              ccalender Chris Calender (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.