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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

            • Assignee:
              rajeshbabu Rajeshbabu Chintaguntla
              Reporter:
              rajeshbabu Rajeshbabu Chintaguntla

              Dates

              • Created:
                Updated:

                Issue deployment