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)