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

Support no measurement fields in $_internalUnpackBucket

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-10-02, QI 2023-10-16, QI 2023-10-30, QI 2023-11-13

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: