Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30782

Column resolution doesn't respect current catalog/namespace for v2 tables.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.1.0
    • 3.0.0
    • SQL
    • None

    Description

      For v1 tables, you can perform the following:

      SELECT default.t.id FROM t;
      

      For v2 tables, the following fails:

      USE testcat.ns1.ns2;
      SELECT testcat.ns1.ns2.t.id FROM t;
      
      org.apache.spark.sql.AnalysisException: cannot resolve '`testcat.ns1.ns2.t.id`' given input columns: [t.id, t.point]; line 1 pos 7;
      

      Attachments

        Issue Links

          Activity

            People

              imback82 Terry Kim
              imback82 Terry Kim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: