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

Cody Marcel commented on PHOENIX-2299:
--------------------------------------

[~karan.singhal] is looking into adding this support. I wanted to clarify a 
little as to the goal. Please correct me if I am wrong.

I think what's intended here is on upsert we take the present time instead of a 
static or completely random time for DATE types. Then on queries where 
CURRENT_DATE is used, we get get back some data. If this is correct, I think 
the impl is pretty straight forward. It does have some potentially odd side 
effects though. The query results will differ based on when you run them. So if 
you upsert data today, it will be stale tomorrow. It will also means tests 
using this functionality will not be repeatable. You will have to do the "drop 
table ->load data -> query" process every time with new values each time.
[~mujtabachohan] [~samarth.j...@gmail.com]


> 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