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

use of assert with side-effect in Schemas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • core
    • None

    Description

      Schemas#path(CalciteSchema,Iterable<String>) method has the following code:

      if (!rootSchema.name.isEmpty()) {
        assert rootSchema.name.equals(iterator.next());
      }
      

      Depending if assertions are enabled or not, iterator state might be different

      Attachments

        Issue Links

          Activity

            People

              laurent Laurent Goujon
              laurent Laurent Goujon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: