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

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

    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

          People

            Unassigned Unassigned
            kliew Kevin Liew
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: