[ https://issues.apache.org/jira/browse/PHOENIX-2299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15051588#comment-15051588 ]
Cody Marcel commented on PHOENIX-2299: -------------------------------------- [~karan.singhal] I did a little cleanup on the patch. It looks like the tests are failing though. Can you fix the failing test and make it it works completely? Also please use the new patch I am uploading so I don't have to do the clean up again. Running org.apache.phoenix.pherf.RuleGeneratorTest Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.394 sec <<< FAILURE! - in org.apache.phoenix.pherf.RuleGeneratorTest testCurrentDateGenerator(org.apache.phoenix.pherf.RuleGeneratorTest) Time elapsed: 0.209 sec <<< ERROR! java.lang.IllegalArgumentException: Invalid format: "2015-12-10 12:21:57.446 PST" is malformed at " PST" at org.apache.phoenix.pherf.RuleGeneratorTest.assertDateBetween(RuleGeneratorTest.java:319) at org.apache.phoenix.pherf.RuleGeneratorTest.testCurrentDateGenerator(RuleGeneratorTest.java:106) Running org.apache.phoenix.pherf.TestHBaseProps Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec - in org.apache.phoenix.pherf.TestHBaseProps Results : Tests in error: RuleGeneratorTest.testCurrentDateGenerator:106->assertDateBetween:319 ยป IllegalArgument Tests run: 23, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Phoenix ..................................... SUCCESS [ 1.802 s] [INFO] Phoenix Core ....................................... SUCCESS [ 43.197 s] [INFO] Phoenix - Flume .................................... SUCCESS [ 1.160 s] [INFO] Phoenix - Pig ...................................... SUCCESS [ 4.842 s] [INFO] Phoenix Query Server Client ........................ SUCCESS [ 1.077 s] [INFO] Phoenix Query Server ............................... SUCCESS [ 2.176 s] [INFO] Phoenix - Pherf .................................... FAILURE [ 8.901 s] > Support CURRENT_DATE() in Pherf data upserts > -------------------------------------------- > > Key: PHOENIX-2299 > URL: https://issues.apache.org/jira/browse/PHOENIX-2299 > Project: Phoenix > Issue Type: Improvement > Affects Versions: 4.6.0 > Reporter: James Taylor > Assignee: Karan Singhal > Labels: performance > Fix For: 4.6.0, 4.7.0 > > Attachments: > 0001-PHOENIX-2299-Support-CURRENT_DATE-in-Pherf-data-upse.patch, > PHOENIX-2299-Support-CURRENT_DATE_1.patch > > > 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)