phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hanzhi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-4163) type BIGINT DEFAULT COLUMN unexpect value in the covered index column
Date Wed, 06 Sep 2017 04:09:00 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-4163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

hanzhi updated PHOENIX-4163:
----------------------------
    Description: 

the result should be 1000,but it is an expected value. below is an example


CREATE TABLE PHOENIX.TEST_DEFAULT (
    A INTEGER NOT NULL,
    B VARCHAR NOT NULL DEFAULT 'AB',
    C BIGINT DEFAULT 200,
    D BIGINT DEFAULT 200,
    E BIGINT DEFAULT 200,
    F VARCHAR DEFAULT 'AB',
    CONSTRAINT DOS_PK PRIMARY KEY (A,B));

CREATE INDEX IDX_TEST_DEFAULT ON PHOENIX.TEST_DEFAULT(C, F) INCLUDE(D,E);

upsert into PHOENIX.TEST_DEFAULT values(1000);

select A from PHOENIX.TEST_DEFAULT;



  was:

the result should be 1000,but it is an expected value. below is an example


CREATE TABLE PHOENIX.TEST_DEFAULT (
A INTEGER NOT NULL,
B VARCHAR NOT NULL DEFAULT 'AB',
C BIGINT DEFAULT -200,
D BIGINT DEFAULT -200,
E BIGINT DEFAULT -200,
F VARCHAR DEFAULT 'AB',
CONSTRAINT DOS_PK PRIMARY KEY (A,B));

CREATE INDEX IDX_TEST_DEFAULT ON PHOENIX.TEST_DEFAULT(C, F) INCLUDE(B,C);

upsert into PHOENIX.TEST_DEFAULT values(1000);

select A from PHOENIX.TEST_DEFAULT;




> type BIGINT DEFAULT COLUMN unexpect value in the covered index column
> ---------------------------------------------------------------------
>
>                 Key: PHOENIX-4163
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4163
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.11.0
>            Reporter: hanzhi
>
> the result should be 1000,but it is an expected value. below is an example
> CREATE TABLE PHOENIX.TEST_DEFAULT (
>     A INTEGER NOT NULL,
>     B VARCHAR NOT NULL DEFAULT 'AB',
>     C BIGINT DEFAULT 200,
>     D BIGINT DEFAULT 200,
>     E BIGINT DEFAULT 200,
>     F VARCHAR DEFAULT 'AB',
>     CONSTRAINT DOS_PK PRIMARY KEY (A,B));
> CREATE INDEX IDX_TEST_DEFAULT ON PHOENIX.TEST_DEFAULT(C, F) INCLUDE(D,E);
> upsert into PHOENIX.TEST_DEFAULT values(1000);
> select A from PHOENIX.TEST_DEFAULT;



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message