Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-968

3.1.4: add example for from in aggregate() with multiple arguments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD03
    • Fix Version/s: V4.0_CSD04
    • Component/s: Data Aggregation
    • Labels:
      None
    • Environment:

      Applied

    • Proposal:
      Hide

      require that all explicitly mentioned "from" properties appear in the same order in all arguments

      Show
      require that all explicitly mentioned "from" properties appear in the same order in all arguments

      Description

      Explain how in aggregate() with multiple arguments the "from" keyword can be resolved into a groupby/aggregate sequence by initially grouping by all "from" properties appearing in any argument.

      Will probably work only if all "from" chains are compatible, i.e. there exists a "super-chain" so that any from chain is a sub-chain of this super-chain.

      1) from A from B from D,from A from C from D works with super-chain from A from B from C from D (B and C can be swapped to get another possible super-chain.

      2) from A from B, from B from A won't work

        Attachments

          Activity

          Hide
          handl Ralf Handl added a comment -

          Give rationale why the "from" syntax is helpful, given that it can alternatively be expressed as a chain of groupby/aggregate operations which forces clients to explicitly specify the "super-chain" they want to be used for the aggregation.

          Show
          handl Ralf Handl added a comment - Give rationale why the "from" syntax is helpful, given that it can alternatively be expressed as a chain of groupby/aggregate operations which forces clients to explicitly specify the "super-chain" they want to be used for the aggregation.
          Hide
          mikep Michael Pizzo (Inactive) added a comment -

          Resolved as proposed 2018-7-19.

          Show
          mikep Michael Pizzo (Inactive) added a comment - Resolved as proposed 2018-7-19.
          Hide
          heiko.theissen Heiko Theissen added a comment - - edited

          TC 2022-08-04: The uniformity requirement for from properties is dropped during the walkthrough of OData-Aggr CSD04.

          Show
          heiko.theissen Heiko Theissen added a comment - - edited TC 2022-08-04: The uniformity requirement for  from properties is dropped during the walkthrough of OData-Aggr CSD04.

            People

            • Assignee:
              Unassigned
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: