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

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

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

Rajeshbabu Chintaguntla commented on PHOENIX-6130:
--------------------------------------------------

[~brfrn169] +1 on the  patch.
pushed to master and 4.x branch.

> 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
>          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)