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

use of assert with side-effect in Schemas

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment