Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2255

support ORDER BY clause

Details

    • New Feature
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • dsl-sql
    • None

    Description

      Currently Beam does not have `global sort` support[1]. So we will implement a limited version of `ORDER BY` using `org.apache.beam.sdk.transforms.Top` for now. So it will support sql like:

      select * from t order by id desc limit 10;
      

      but not support `ORDER BY` without a `limit`:

      select * from t order by id desc
      

      and also not support `ORDER BY` with a `offset`:

      select * from t order by id desc limit 10, 10;
      

      [1]. https://lists.apache.org/thread.html/bc0e65a3bb653b8fd0db96bcd4c9da5af71a71af5a5639a472167808@1464278191@%3Cdev.beam.apache.org%3E

      Attachments

        Issue Links

          Activity

            People

              xumingming James Xu
              xumingming James Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: