priyankporwal commented on a change in pull request #733: PHOENIX-5732:
Implement starttime, endtime in IndexTool for rebuild a…
URL: https://github.com/apache/phoenix/pull/733#discussion_r391878733
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/PhoenixServerBuildIndexInputFormat.java
##########
@@ -85,14 +89,17 @@ protected QueryPlan getQueryPlan(final JobContext
context, final Configuration
Long scn = (currentScnValue != null) ?
Long.valueOf(currentScnValue) : EnvironmentEdgeManager.currentTimeMillis();
configuration.set(PhoenixConfigurationUtil.CURRENT_SCN_VALUE,
Long.toString(scn));
+
+ Long startTime = startTimeValue == null ? 0L :
Long.valueOf(startTimeValue);
Review comment:
Nit: Please use parenthesis on these two lines for better readability and
defensive coding.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services