Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4337

Support PARTITION BY clause in table function call

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.26.0
    • None
    • core

    Description

      An example from the SQL standard 2016 Polymorphic Table Functions:

      SELECT W.wstart, W.wend, OI.customer, SUM(OI.price)
      FROM TABLE(SESSION(
        data => TABLE(order_item) AS OI PARTITION BY customer, 
        timecol => DESCRIPTOR(order_time),
        timeout => INTERVAL '10' MINUTE)) W
      GROUP BY 1, 2, 3
      

      Attachments

        1. image-2021-09-30-11-04-33-474.png
          280 kB
          Jing Zhang
        2. image-2021-09-30-11-05-12-400.png
          72 kB
          Jing Zhang
        3. image-2021-09-30-11-05-42-033.png
          117 kB
          Jing Zhang
        4. image-2021-10-13-20-19-55-855.png
          94 kB
          Jing Zhang
        5. image-2021-10-13-20-22-42-675.png
          251 kB
          Jing Zhang
        6. image-2021-10-13-20-23-26-890.png
          405 kB
          Jing Zhang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            danny0405 Danny Chen
            danny0405 Danny Chen

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h

                Slack

                  Issue deployment