Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80323

Support no measurement fields in $_internalUnpackBucket

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-10-02, QI 2023-10-16, QI 2023-10-30, QI 2023-11-13

      As of today, we can't lower the following pipeline

      db.ts2.explain().aggregate([{$group: {_id: "$tag", x: {$sum: "$tag"}}}, {$match: {_id: 1}}]);
      

      because $_internalUnpackBucket will not have any measurement fields to unpack and if the block_to_row / ts_bucket_to_cell_block stages in the SBE do not have any fields to unpack, then they can't know how many rows to produce according to the current implementation. We can probably map the meta field to a ScalarMonoCellBlock instead of mapping it to a scalar SBE value. In such case, we may need positional information for ScalarMonoCellBlock.

            Assignee:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: