You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Rajeshbabu Chintaguntla (JIRA)" <ji...@apache.org> on 2017/04/28 11:49:04 UTC

[jira] [Created] (CALCITE-1768) Parser and Validator mostly throwing CalciteContextException/SqlValidatorException which are not SQLException

Rajeshbabu Chintaguntla created CALCITE-1768:
------------------------------------------------

             Summary: Parser and Validator mostly throwing CalciteContextException/SqlValidatorException which are not SQLException
                 Key: CALCITE-1768
                 URL: https://issues.apache.org/jira/browse/CALCITE-1768
             Project: Calcite
          Issue Type: Bug
            Reporter: Rajeshbabu Chintaguntla
            Assignee: Julian Hyde


In Phoenix-Calcite tests we are seeing CalciteContextException or SqlValidatorExceptions thrown from validator/parsers. These are RuntimeExceptions. We should change them to SQLException.
FYI [~julianhyde].
Here is an example for one of the failing test in Phoenix-Calcite.
{noformat}
	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testViewConstantsOptimizedOutOnReadOnlyView(TenantSpecificViewIndexCompileTest.java:229)
Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1, column 33 to line 1, column 34: Column 'V3' not found in any table
	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testViewConstantsOptimizedOutOnReadOnlyView(TenantSpecificViewIndexCompileTest.java:229)
Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'V3' not found in any table
	at org.apache.phoenix.compile.TenantSpecificViewIndexCompileTest.testViewConstantsOptimizedOutOnReadOnlyView(TenantSpecificViewIndexCompileTest.java:229)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)