Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17893

Window functions should also allow looking back in time

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.0.1
    • None
    • Spark Core
    • None

    Description

      This function should allow looking back. The current window(timestamp, duration) seems to be for looking forward in time.

      Example:

      dataFrame.groupBy(window("date", "7 days ago")).agg(min("col1"), max("col1"))

      For example, if date: 2013-01-07 then the window should be 2013-01-01 - 2013-01-07

      Attachments

        Activity

          People

            Unassigned Unassigned
            bond_ Raviteja Lokineni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: