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

use of assert with side-effect in Schemas

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0
    • Component/s: core
    • Labels:
      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

              • Assignee:
                laurentgo Laurent Goujon
                Reporter:
                laurentgo Laurent Goujon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: