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

Schemas.path does not traverse schemas with empty-string name

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11.0
    • None
    • None

    Description

      Schemas.path does not traverse schemas with empty-string name but the parsed schema path may be relative to some nested schema with an empty name rather than been relative to the input root-schema.

      ie.
      rootSchema is "CATALOG"
      the view table full-path is "CATALOG".""."VIEW" (the schema name is empty)
      names is ("VIEW")

      Schemas.path will fail as it tries to find "VIEW" relative to rootSchema but does not try to traverse the intermediate schema.

      If the first value in names is not found, we should try to traverse all prepending schema with empty-string name.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            kliew Kevin Liew

            Dates

              Created:
              Updated:

              Slack

                Issue deployment