Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-28508

Support for range frame+row frame in the same query

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 3.1.0
    • None
    • SQL
    • None

    Description

      Currently, looks like some queries does not works if both, a range frame and a row frame are given. However, PgSQL is able to handle them:

      select last(salary) over(order by enroll_date range between 1 preceding and 1 following), lag(salary) over(order by enroll_date range between 1 preceding and 1 following),
      salary, enroll_date from empsalary;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            DylanGuedes Dylan Guedes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: