Consolidate PlanExecutor::DEAD and PlanExecutor::FAILURE

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2019-01-28
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      PlanExecutor::getNext() has two return codes to indicate that an error occurred during query execution: DEAD and FAILURE. These two return codes don't have a strong conceptual distinction, and nearly all callers handle them in the same way. Furthermore, there are only a few known ways in which a PlanExecutor can produce DEAD:

      As a simplification, we could change the PlanExecutor to return FAILURE in all cases, which would prevent callers from having to remember to handle multiple getNext() error codes.

            Assignee:
            Pawel Terlecki (Inactive)
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: