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

Hudson commented on PHOENIX-62:
-------------------------------

FAILURE: Integrated in Apache Phoenix - Branch:master #111 (See 
[https://builds.apache.org/job/Phoenix/111/])
Add test case (ignored) for PHOENIX-62 Precision loss for decimal type when 
creation of Immutable Index happens after the record insertion (maryannxue: rev 
3747e8afe3b7fdd456a855f1905c9084ca9228de)
* 
phoenix-core/src/test/java/org/apache/phoenix/end2end/index/MutableIndexTest.java
* 
phoenix-core/src/test/java/org/apache/phoenix/end2end/index/BaseMutableIndexTest.java
Add @Ignore("PHOENIX-62") (maryannxue: rev 
3ba6537ecc9a94a839f521be4ab26ef0357616c2)
* 
phoenix-core/src/test/java/org/apache/phoenix/end2end/index/MutableIndexTest.java


> Precision loss for decimal type (no scale specified) when creation of index 
> happens after the record insertion
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-62
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-62
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 2.2.3
>            Reporter: Maryann Xue
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Sql script:
> CREATE TABLE IF NOT EXISTS "Items"
> ("ItemID" VARCHAR(10) NOT NULL PRIMARY KEY,
>  "ItemName" VARCHAR(50),
>  "Price" DECIMAL)
> IMMUTABLE_ROWS=true;
> UPSERT INTO "Items" ("ItemID", "ItemName", "Price")
> VALUES ('I001', 'BX016', 15.96);
> CREATE INDEX IF NOT EXISTS "iItems" ON "Items"
> ("ItemName")
> INCLUDE
> ("Price");
> SELECT "ItemName", "Price" FROM "Items";
> Output:
> ItemName        Price 
> ---------- ---------- 
> BX016              15 
> But if we put "CREATE INDEX ..." in front of "UPSERT INTO ...", the result 
> comes out right as:
> ItemName        Price 
> ---------- ---------- 
> BX016              15.96 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to