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

Josh Mahonin resolved PHOENIX-3636.
-----------------------------------
    Resolution: Duplicate

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

Reply via email to