phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lomore (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PHOENIX-3394) Fix getHTable unsupported operation
Date Tue, 25 Oct 2016 00:19:58 GMT

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

Eric Lomore edited comment on PHOENIX-3394 at 10/25/16 12:19 AM:
-----------------------------------------------------------------

It was my own test suite [~maryannxue], but the summary of it is:

{code}
@Test
    public void testX6() throws Exception{
        Connection conn = DriverManager.getConnection(getUrl());
        conn.createStatement().execute("CREATE TABLE T (k1 DATE not null, k2 VARCHAR not null,
k3 VARCHAR not null, v varchar, constraint pk primary key(k1,k2,k3)))";
        conn.createStatement().execute("SELECT * FROM T");
    }
{code}


was (Author: lomoree):
It was my own test suite [~maryannxue], but the summary of it is:

@Test
    public void testX6() throws Exception{
        Connection conn = DriverManager.getConnection(getUrl());
        conn.createStatement().execute("CREATE TABLE T (k1 DATE not null, k2 VARCHAR not null,
k3 VARCHAR not null, v varchar, constraint pk primary key(k1,k2,k3)))";
        conn.createStatement().execute("SELECT * FROM T");
    }

> Fix getHTable unsupported operation
> -----------------------------------
>
>                 Key: PHOENIX-3394
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3394
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Eric Lomore
>            Assignee: Eric Lomore
>
> Tons of unit tests have this same stack trace. It appears that this call shouldn't reach
ConnectionlessQueryServicesImpl.getTable?
> {code}
> Caused by: java.lang.UnsupportedOperationException
> 	at org.apache.phoenix.query.ConnectionlessQueryServicesImpl.getTable(ConnectionlessQueryServicesImpl.java:157)
> 	at org.apache.phoenix.query.DelegateConnectionQueryServices.getTable(DelegateConnectionQueryServices.java:70)
> 	at org.apache.phoenix.execute.MutationState.getHTable(MutationState.java:360)
> 	at org.apache.phoenix.iterate.TableResultIterator.<init>(TableResultIterator.java:101)
> 	at org.apache.phoenix.iterate.DefaultTableResultIteratorFactory.newIterator(DefaultTableResultIteratorFactory.java:33)
> 	at org.apache.phoenix.iterate.ParallelIterators.submitWork(ParallelIterators.java:104)
> 	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:871)
> 	... 71 more
> {code}



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

Mime
View raw message