Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4634

Looking up a parent index table of a tenant child view fails in BaseColumnResolver createTableRef()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.14.0
    • None
    • None

    Description

      If we are looking up a parent table index of a child view , we need to resolve the view which will load the parent table indexes (instead of trying to resolve the parent table index directly). 

       

      org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=Schema.Schema.Index#Schma.View
      
      org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createTableRef(FromCompiler.java:577)
      at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.<init>(FromCompiler.java:391)
      at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:228)
      at org.apache.phoenix.compile.FromCompiler.getResolverForQuery(FromCompiler.java:206)
      at org.apache.phoenix.optimize.QueryOptimizer.addPlan(QueryOptimizer.java:226)
      at org.apache.phoenix.optimize.QueryOptimizer.getApplicablePlans(QueryOptimizer.java:146)
      at org.apache.phoenix.optimize.QueryOptimizer.getApplicablePlans(QueryOptimizer.java:103)
      at org.apache.phoenix.compile.DeleteCompiler.compile(DeleteCompiler.java:501)
      at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.compilePlan(PhoenixStatement.java:770)
      at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.compilePlan(PhoenixStatement.java:758)
      at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:386)
      at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:376)
      

      Attachments

        1. PHOENIX-4634-4.x-HBase-0.98.patch
          12 kB
          Thomas D'Silva
        2. PHOENIX-4634-v2.patch
          13 kB
          Thomas D'Silva
        3. PHOENIX-4634-v3.patch
          6 kB
          Thomas D'Silva
        4. PHOENIX-4634-v4.patch
          6 kB
          James R. Taylor
        5. PHOENIX-4634-v5.patch
          11 kB
          Thomas D'Silva
        6. PHOENIX-4634-v6.patch
          11 kB
          Thomas D'Silva
        7. PHOENIX-4634-v7.patch
          12 kB
          Thomas D'Silva

        Issue Links

          Activity

            People

              tdsilva Thomas D'Silva
              tdsilva Thomas D'Silva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: