phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-5209) Cannot add non-PK column to table when the last PK column is of type VARBINARY or ARRAY
Date Tue, 11 Jun 2019 15:19:01 GMT

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

Hadoop QA commented on PHOENIX-5209:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12971481/PHOENIX-5209.4.x-HBase-1.5.v1.patch
  against 4.x-HBase-1.5 branch at commit 950331a1e5f8ac16e4b49ed857fe78b2ab9dc6fb.
  ATTACHMENT ID: 12971481

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified
tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:red}-1 javac{color}.  The patch appears to cause mvn compile goal to fail .

    Compilation errors resume:
    [ERROR] COMPILATION ERROR : 
[ERROR] /home/jenkins/jenkins-slave/workspace/PreCommit-PHOENIX-Build/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:[3595,80]
method references are not supported in -source 1.7
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
(default-compile) on project phoenix-core: Compilation failure
[ERROR] /home/jenkins/jenkins-slave/workspace/PreCommit-PHOENIX-Build/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java:[3595,80]
method references are not supported in -source 1.7
[ERROR]   (use -source 8 or higher to enable method references)
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :phoenix-core
    

Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/2664//console

This message is automatically generated.

> Cannot add non-PK column to table when the last PK column is of type VARBINARY or ARRAY
> ---------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5209
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5209
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Toshihiro Suzuki
>            Assignee: Toshihiro Suzuki
>            Priority: Major
>         Attachments: PHOENIX-5209.4.x-HBase-1.3.v1.patch, PHOENIX-5209.4.x-HBase-1.4.v1.patch,
PHOENIX-5209.4.x-HBase-1.5.v1.patch, PHOENIX-5209.master.v1.patch, PHOENIX-5209.master.v2.patch
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Let's see we have the following table:
> {code}
> CREATE TABLE tbl (id VARBINARY PRIMARY KEY, col1 INTEGER)
> {code}
> The type of the primary key of this table is VARBINARY.
> And when we alter this table to add a new column:
> {code}
> ALTER TABLE tbl ADD col2 INTEGER
> {code}
> we are facing the following error:
> {code}
> java.sql.SQLException: ERROR 1015 (42J04): Cannot add column to table when the last PK
column is of type VARBINARY or ARRAY. columnName=ID
> {code}
> I think we should be able to do it without the above error because we don't try to add
a PK column.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message