[ 
https://issues.apache.org/jira/browse/PHOENIX-2313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14962625#comment-14962625
 ] 

James Taylor commented on PHOENIX-2313:
---------------------------------------

It seems like this change is breaking the following tests in 1.0 and master:

{code}
Tests run: 53, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 471.903 sec 
<<< FAILURE! - in org.apache.phoenix.end2end.AlterTableIT
testDropIndexedColumn(org.apache.phoenix.end2end.AlterTableIT)  Time elapsed: 
8.293 sec  <<< ERROR!
java.sql.SQLException: ERROR 2009 (INT11): Unknown error code 0
        at 
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:398)
        at 
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at 
org.apache.phoenix.exception.SQLExceptionCode.fromErrorCode(SQLExceptionCode.java:426)
        at 
org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:127)
        at 
org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerUtil.java:115)
        at 
org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:104)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1053)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1016)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.dropColumn(ConnectionQueryServicesImpl.java:1819)
        at 
org.apache.phoenix.schema.MetaDataClient.dropColumn(MetaDataClient.java:2880)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropColumnStatement$1.execute(PhoenixStatement.java:1147)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:322)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:314)
        at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:312)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1435)
        at 
org.apache.phoenix.end2end.AlterTableIT.testDropIndexedColumn(AlterTableIT.java:285)

testDropCoveredColumn(org.apache.phoenix.end2end.AlterTableIT)  Time elapsed: 
8.428 sec  <<< ERROR!
java.sql.SQLException: ERROR 2009 (INT11): Unknown error code 0
        at 
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:398)
        at 
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at 
org.apache.phoenix.exception.SQLExceptionCode.fromErrorCode(SQLExceptionCode.java:426)
        at 
org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:127)
        at 
org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerUtil.java:115)
        at 
org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:104)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1053)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1016)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.dropColumn(ConnectionQueryServicesImpl.java:1819)
        at 
org.apache.phoenix.schema.MetaDataClient.dropColumn(MetaDataClient.java:2880)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropColumnStatement$1.execute(PhoenixStatement.java:1147)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:322)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:314)
        at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:312)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1435)
        at 
org.apache.phoenix.end2end.AlterTableIT.testDropCoveredColumn(AlterTableIT.java:350)

testDropColumnsWithImutability(org.apache.phoenix.end2end.AlterTableIT)  Time 
elapsed: 14.768 sec  <<< ERROR!
java.sql.SQLException: ERROR 2009 (INT11): Unknown error code 0
        at 
org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:398)
        at 
org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:145)
        at 
org.apache.phoenix.exception.SQLExceptionCode.fromErrorCode(SQLExceptionCode.java:426)
        at 
org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.java:127)
        at 
org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerUtil.java:115)
        at 
org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:104)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1053)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1016)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.dropColumn(ConnectionQueryServicesImpl.java:1819)
        at 
org.apache.phoenix.schema.MetaDataClient.dropColumn(MetaDataClient.java:2880)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropColumnStatement$1.execute(PhoenixStatement.java:1147)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:322)
        at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:314)
        at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:312)
        at 
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1435)
        at 
org.apache.phoenix.end2end.AlterTableIT.testDropColumnsWithImutability(AlterTableIT.java:874)
{code}

> TypeMismatchException thrown while querying a table that has an index with a 
> Boolean
> ------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-2313
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2313
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.3.0, 4.4.0, 4.5.0
>            Reporter: Rajeshbabu Chintaguntla
>            Assignee: Rajeshbabu Chintaguntla
>             Fix For: 4.6.0
>
>         Attachments: PHOENIX-2313.patch
>
>
> Getting below exception scanning through index on boolean column.
> {noformat}
> java.lang.RuntimeException: org.apache.phoenix.schema.TypeMismatchException: 
> ERROR 203 (22005): Type mismatch. DECIMAL cannot be coerced to BOOLEAN 
> at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2440) 
> at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2074) 
> at sqlline.SqlLine.print(SqlLine.java:1735) 
> at sqlline.SqlLine$Commands.execute(SqlLine.java:3683) 
> at sqlline.SqlLine$Commands.sql(SqlLine.java:3584) 
> at sqlline.SqlLine.dispatch(SqlLine.java:821) 
> at sqlline.SqlLine.begin(SqlLine.java:699) 
> at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441) 
> at sqlline.SqlLine.main(SqlLine.java:424) 
> {noformat}
> Here are simple steps to reproduce
> {noformat}
> CREATE TABLE TABLE_TEST (PK INTEGER PRIMARY KEY, COL1 BOOLEAN);
> UPSERT INTO TABLE_TEST VALUES (1, true);
> UPSERT INTO TABLE_TEST VALUES (2, false);
> SELECT * FROM TABLE_TEST;
> CREATE INDEX TABLE_TEST_IDX ON TABLE_TEST(COL1);
> SELECT * FROM TABLE_TEST;
> DROP TABLE TABLE_TEST;
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to