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

James Taylor commented on PHOENIX-2299:
---------------------------------------

Seems ok as an initial fix to live with the data needing to be regenerated when 
CURRENT_DATE() is used in queries.

Then a follow up improvement could be for Pherf to provide its own 
implementation of org.apache.phoenix.util.EnvironmentEdge, the class in Phoenix 
that determines how a RS calculates current time. It's possible that Pherf 
could remember what the current time was when the data was finished being 
generated and then inject it's own EnvironmentEdge implementation that 
subtracts the delta between the actual current time and previous current time 
when calculating the current time.

> Support CURRENT_DATE() in Pherf data upserts
> --------------------------------------------
>
>                 Key: PHOENIX-2299
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2299
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: Karan Singhal
>
> Just replace the actual date with "NOW" in the xml. Then check the string for 
> that value in the generator. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to