Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-955

Litmus, continuation-passing style applied to validation methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      Calcite has several methods that check internal consistency that have a 'boolean fail' argument indicating whether the method should throw or just return false if a consistency error is detected.

      We propose to add a class Litmus:

      interface Litmus {
        boolean fail(String message);
        boolean succeed();
      }

      and replace those boolean fail with Litmus litmus, so that the caller can determine policy on how to handle failures.

      Methods affected include:

      • RelNode.isValid(boolean)

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: