[
https://issues.apache.org/jira/browse/PHOENIX-3643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15849068#comment-15849068
]
Maryann Xue commented on PHOENIX-3643:
--------------------------------------
Thank you very much for identifying the issue, [~rajeshbabu]! I think this one
was most likely caused by column-family support check-in, and I forgot that we
were not yet able to handle views in CALCITE-1425.
> Not able resolve columns in predicate while querying views in Phoenix-Calcite
> -----------------------------------------------------------------------------
>
> Key: PHOENIX-3643
> URL: https://issues.apache.org/jira/browse/PHOENIX-3643
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Rajeshbabu Chintaguntla
> Assignee: Rajeshbabu Chintaguntla
> Labels: calcite
>
> There are around 180 queries failing "Column x not found in any table" while
> resolving columns in the view query predicates.
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)