You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Rajeshbabu Chintaguntla (Jira)" <ji...@apache.org> on 2020/09/14 17:04:00 UTC

[jira] [Resolved] (PHOENIX-6130) StatementContext.subqueryResults should be thread safe

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

Rajeshbabu Chintaguntla resolved PHOENIX-6130.
----------------------------------------------
    Fix Version/s: 4.16.0
                   5.1.0
       Resolution: Fixed

> StatementContext.subqueryResults should be thread safe
> ------------------------------------------------------
>
>                 Key: PHOENIX-6130
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6130
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Toshihiro Suzuki
>            Assignee: Toshihiro Suzuki
>            Priority: Major
>             Fix For: 5.1.0, 4.16.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Steps to reproduce this issue are as follows:
> 1. Create a table:
> {code:java}
> create table test (
>   id varchar primary key,
>   ts varchar
> );
> {code}
> 2. Upsert a row into the table created in the step 1:
> {code:java}
> upsert into test values ('id', '1596067200000');
> {code}
> 3. The following query should always return the upserted row in the step 2, but sometimes it returns nothing:
> {code:java}
> 0: jdbc:phoenix:> select ts from test where ts <= (select to_char(cast(to_number(to_date('2020-07-30 00:00:00')) as BIGINT), '#############')) and ts >= (select to_char(cast(to_number(to_date('2020-07-29 00:00:00')) as BIGINT), '#############'));
> +-----+
> | TS  |
> +-----+
> +-----+
> No rows selected (0.015 seconds)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)