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

Spurious UBSAN failure when casting large double to float in column store index encoder

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Execution
    • ALL
    • QE 2022-09-19, QE 2022-10-03, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28, QE 2022-12-12, QE 2022-12-26, QE 2023-01-09

      It looks like we need to check whether a double is within float's numeric limits before casting to a float to see if we lose precision here: https://github.com/mongodb/mongo/blob/044d2f734e0dba40b9dfb02cc49c2bff8f575cd5/src/mongo/db/index/column_cell.cpp#L86

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: