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

Annotation to describe supported aggregation methods

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD03
    • Fix Version/s: V4.0_CSD04
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Add annotation terms:

      <Term Name="SupportedAggregationMethods" Type="Collection(Edm.String)" AppliesTo=”Property”>
      <Annotation Term="Core.Description">
      <String>Standard and custom aggregation methods than can be applied to the property. If omitted, all aggregation methods can be applied</String>
      </Annotation>
      </Term>

       

      <Term Name="RecommendedAggregationMethod" Type="Edm.String" AppliesTo=”Property”>
      <Annotation Term="Core.Description">
      <String>Recommended method for aggregating values of the property</String>
      </Annotation>
      </Term>

       

      Show
      Add annotation terms: <Term Name="SupportedAggregationMethods" Type="Collection(Edm.String)" AppliesTo=”Property”> <Annotation Term="Core.Description"> <String>Standard and custom aggregation methods than can be applied to the property. If omitted, all aggregation methods can be applied</String> </Annotation> </Term>   <Term Name="RecommendedAggregationMethod" Type="Edm.String" AppliesTo=”Property”> <Annotation Term="Core.Description"> <String>Recommended method for aggregating values of the property</String> </Annotation> </Term>  

      Description

      A service may support only a subset of all standard and custom aggregation methods advertised in annotation ApplySupported/CustomAggregationMethods for certain aggregatable properties. If deviations from the full set could be annotated at property level, clients would be able to recognize them and avoid requests that will be rejected by the server. In particular, this would also support the special case of an aggregatable property that does not support any aggregation method, but there is a CustomAggregate annotation with the name of the property as qualifier. Then, the property could still be used in the aggregate transformation without "with", and could also be annotated with further terms.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gerald.krause1 Gerald Krause
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: