Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3104 Enable Phoenix test cases with Calcite-Phoenix
  3. PHOENIX-3643

Not able resolve columns in predicate while querying views in Phoenix-Calcite

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      There are around 180 queries failing "Column x not found in any table" while resolving columns in the view query predicates.

      Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 6.657 sec <<< FAILURE! - in org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest
      testOrderByOptimizedOutWithoutPredicateInView(org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest)  Time elapsed: 1.024 sec  <<< ERROR!
      java.sql.SQLException: Error while executing SQL "EXPLAIN SELECT * FROM v1 ORDER BY k1, k2, k3": From line 1, column 35 to line 1, column 36: Column 'K1' not found in any table
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.assertExplainPlanIsCorrect(TenantSpecificViewIndexCompileTest.java:249)
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testOrderByOptimizedOutWithoutPredicateInView(TenantSpecificViewIndexCompileTest.java:70)
      Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1, column 35 to line 1, column 36: Column 'K1' not found in any table
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.assertExplainPlanIsCorrect(TenantSpecificViewIndexCompileTest.java:249)
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testOrderByOptimizedOutWithoutPredicateInView(TenantSpecificViewIndexCompileTest.java:70)
      Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'K1' not found in any table
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.assertExplainPlanIsCorrect(TenantSpecificViewIndexCompileTest.java:249)
      	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testOrderByOptimizedOutWithoutPredicateInView(TenantSpecificViewIndexCompileTest.java:70)
      

      Attachments

        Activity

          People

            rajeshbabu Rajeshbabu Chintaguntla
            rajeshbabu Rajeshbabu Chintaguntla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: