Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-884

[C-API] Align `realm_results_average` and `Query::average_X` functions

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • Q2-24FY
    • Affects Version/s: None
    • Component/s: None

      I have spotted a discrepancy between how the Query API and the Results APIs compute the average value after testing some use cases for aggregators in both the Java SDK and Kotlin SDK: the Query API returns 0 when there are no objects in a particular table whilst the results API returns a null Mixed.

      We should find a way on how to align both APIs.

            Assignee:
            jorgen.edelbo@mongodb.com Jørgen Edelbo
            Reporter:
            eduardo.lopezgutierrez@mongodb.com Eduardo López Gutiérrez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: