Allow BinData vector conversions with INT values outside of INT8 range

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the following fails:

       

      db.c.aggregate([{$project: {_id: 1, output: {$convert: {to: {type: "binData", subtype: 9}, input: [NumberInt(200)], format: "base64"}}}}]); 

      Because 200 is outside the range of an INT8.

      We can support this by creating a new BinData vector type that allows for int types larger than INT8, or by implicitly converting to float32 (with possible loss of precision).

       

            Assignee:
            Unassigned
            Reporter:
            Finley Lau
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: