Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1335#discussion_r138007579
--- Diff: core/src/main/java/org/apache/carbondata/core/keygenerator/directdictionary/timestamp/TimeStampDirectDictionaryGenerator.java ---
@@ -188,11 +188,7 @@ private int getDirectSurrogateForMember(String memberStr) {
return null;
}
long timeStamp = 0;
- if (cutOffTimeStamp >= 0) {
- timeStamp = ((key - 2) * granularityFactor + cutOffTimeStamp);
- } else {
- timeStamp = (key - 2) * granularityFactor;
- }
+ timeStamp = ((key - 2) * granularityFactor + cutOffTimeStamp);
--- End diff --
Keep line 190 and 191 in single line
---