phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Mahonin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3636) CurrentSCN doesn't work with phoenix-spark plugin
Date Wed, 13 Dec 2017 15:34:00 GMT

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

Josh Mahonin commented on PHOENIX-3636:
---------------------------------------

Looks like it to me. Good catch [~cskrabak]

> CurrentSCN doesn't work with phoenix-spark plugin
> -------------------------------------------------
>
>                 Key: PHOENIX-3636
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3636
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.6.0
>            Reporter: Suhas Nalapure
>
> Specifying CurrentSCN property while creating a Spark DataFrame as shown below doesn't
give the expected results.
> E.g. below code doesn't return those records from Hbase that have row timestamp >
current system timestamp  
> Map<String, String> params = new HashMap<String, String>();
> params.put("table", tableName);
> params.put("zkUrl", zkUrl);
> Calendar cal = Calendar.getInstance();
> cal.set(2017, 3, 15);
> params.put("CurrentSCN", Long.toString(cal.getTime().getTime()));
> 			df = sqlContext.read().format(hbaseFormat).options(params).load();
> df.show()



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

Mime
View raw message