[ https://issues.apache.org/jira/browse/LENS-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15088983#comment-15088983 ]
Rajat Khandelwal commented on LENS-913: --------------------------------------- Taking patch from reviewboard and attaching > Seeing DateUtil exception in all cube tests > ------------------------------------------- > > Key: LENS-913 > URL: https://issues.apache.org/jira/browse/LENS-913 > Project: Apache Lens > Issue Type: Bug > Components: cube > Affects Versions: 2.5 > Reporter: Amareshwari Sriramadasu > Assignee: Rajat Khandelwal > Priority: Minor > Fix For: 2.5 > > Attachments: LENS-913.01.patch, LENS-913.02.patch > > > Seeing following exception when any cube.parse test is run, all the logs are > filled with this. > {noformat} > 05 Jan 2016 10:52:40 [main] ERROR org.apache.lens.cube.metadata.DateUtil 164 > - Invalid date format. expected only yyyy-MM-dd-HH:mm:ss,SSS date > provided:null > java.lang.NullPointerException: null > at > com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) > ~[hive-exec-0.13.3-inm.jar:0.13.3-inm] > at com.google.common.cache.LocalCache.get(LocalCache.java:3964) > ~[hive-exec-0.13.3-inm.jar:0.13.3-inm] > at > com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764) > ~[hive-exec-0.13.3-inm.jar:0.13.3-inm] > at > org.apache.lens.cube.metadata.DateUtil.resolveAbsoluteDate(DateUtil.java:157) > ~[classes/:na] > at > org.apache.lens.cube.metadata.CubeFactTable.getAbsoluteStartTime(CubeFactTable.java:327) > [classes/:na] > at > org.apache.lens.cube.metadata.CubeFactTable.getStartTime(CubeFactTable.java:342) > [classes/:na] > at > org.apache.lens.cube.parse.CandidateFact.isValidForTimeRange(CandidateFact.java:103) > [classes/:na] > at > org.apache.lens.cube.parse.TimerangeResolver.doFactRangeValidation(TimerangeResolver.java:249) > [classes/:na] > at > org.apache.lens.cube.parse.TimerangeResolver.rewriteContext(TimerangeResolver.java:59) > [classes/:na] > at > org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:229) > [classes/:na] > at > org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:199) > [classes/:na] > at > org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:215) > [classes/:na] > at > org.apache.lens.cube.parse.TestQueryRewrite.rewriteCtx(TestQueryRewrite.java:92) > [test-classes/:na] > at > org.apache.lens.cube.parse.TestQueryRewrite.rewrite(TestQueryRewrite.java:83) > [test-classes/:na] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)