You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Sandeep Guggilam (Jira)" <ji...@apache.org> on 2020/05/04 19:33:00 UTC
[jira] [Updated] (PHOENIX-5580) Wrong values seen when updating a
view for a table that has an index
[ https://issues.apache.org/jira/browse/PHOENIX-5580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sandeep Guggilam updated PHOENIX-5580:
--------------------------------------
Attachment: PHOENIX-5580.master.v1.patch
> Wrong values seen when updating a view for a table that has an index
> --------------------------------------------------------------------
>
> Key: PHOENIX-5580
> URL: https://issues.apache.org/jira/browse/PHOENIX-5580
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.15.0, 4.14.1, 4.14.3
> Reporter: Swaroopa Kadam
> Assignee: Sandeep Guggilam
> Priority: Major
> Labels: indexing, phoenix-hardening
> Fix For: 5.1.0, 4.15.1
>
> Attachments: PHOENIX-5580.4.x.v1.patch, PHOENIX-5580.4.x.v2.patch, PHOENIX-5580.4.x.v3.patch, PHOENIX-5580.master.v1.patch
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> {code:sql}
> CREATE TABLE IF NOT EXISTS TEST (ID INTEGER NOT NULL PRIMARY KEY, HOST VARCHAR(10));
> CREATE INDEX I ON TEST(HOST);
> -- create updatable view (equality condition in where clause)
> CREATE VIEW V1 (col1 INTEGER) AS SELECT * FROM TEST WHERE ID=15;
> UPSERT INTO V1(ID, HOST, col1) VALUES (15, 'this', 7);
> SELECT * FROM TEST;
> -- Wrong results, but correct results when using the NO_INDEX hint
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)