Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19078

Support lateral derived tables

    XMLWordPrintable

    Details

      Description

      Currently MariaDB does not allow to use lateral derived tables in queries though it
      uses builds them internally for when employing split optimization.
      Consider the following query

      SELECT t.b FROM t1, LATERAL (SELECT * FROM t2 WHERE t1.a=t2.a) AS t 
      

      Here the reference t1.a in the WHERE condition of derived table t refers to the field a
      of the table t1 used in the same FROM list as t.

      SQL standard allows lateral derived tables and MySQL 8.0 supports them.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor Igor Babaev
              Reporter:
              igor Igor Babaev
              Votes:
              37 Vote for this issue
              Watchers:
              31 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration

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