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

Clarify datatype of virtual property $count

    XMLWordPrintable

    Details

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

      Applied

    • Proposal:
      Hide

      If no argument speaks for keeping Edm.Decimal, the proposal is to align both features by assigning Edm.Int64 also to the virutal property $count.

      Show
      If no argument speaks for keeping Edm.Decimal, the proposal is to align both features by assigning Edm.Int64 also to the virutal property $count.

      Description

      In the Data Aggregation extension, the virtual property $count has type Edm.Decimal (http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs02/odata-data-aggregation-ext-v4.0-cs02.html#_Toc435016573). In contrast the JSON Format specification states that the result of the system query option has type Edm.Int64 (http://docs.oasis-open.org/odata/odata-json-format/v4.0/os/odata-json-format-v4.0-os.html#_Toc372793054).

      Since aggregation rather reduces the number of entities in a result collection, question is whether there is some unmentioned reason for this discrepancy.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: