Investigate if OptimizerEstimate types can be declared constexpr

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

      We have many estimate constants defined in code which can't can marked as constexpr because their constructor invokes assertValid which invokes tassert which is not allowed in constexpr context. Maybe we could have a constexpr constructor which uses static_assert or similar to verify the estimate is valid rather than tassert.

              Assignee:
              Unassigned
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: