Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-429

Examples failing with parallel estimate

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • cube
    • None

    Description

      Seeing Dateformat issues, because it is not thread local :

      20 Mar 2015 17:33:21,409 [estimate-2] WARN  org.apache.lens.driver.cube.RewriteUtil  - Driver : org.apache.lens.driver.hive.HiveDriver@83e40d1 Skipped for the query rewriting due to 
      java.lang.NumberFormatException: multiple points  
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1101)
        at java.lang.Double.parseDouble(Double.java:540)
        at java.text.DigitList.getDouble(DigitList.java:168)
        at java.text.DecimalFormat.parse(DecimalFormat.java:1321)
        at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1793)
        at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1455)
        at java.text.DateFormat.parse(DateFormat.java:355)
        at org.apache.lens.cube.parse.DateUtil.resolveDate(DateUtil.java:105)
        at org.apache.lens.cube.parse.TimerangeResolver.processTimeRangeFunction(TimerangeResolver.java:127)
        at org.apache.lens.cube.parse.TimerangeResolver.searchTimeRanges(TimerangeResolver.java:76)
        at org.apache.lens.cube.parse.TimerangeResolver.searchTimeRanges(TimerangeResolver.java:81)
        at org.apache.lens.cube.parse.TimerangeResolver.extractTimeRange(TimerangeResolver.java:66)
        at org.apache.lens.cube.parse.TimerangeResolver.rewriteContext(TimerangeResolver.java:54)
        at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:196)
        at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:171)
        at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:182)
        at org.apache.lens.driver.cube.RewriteUtil$DriverRewriterRunnable.run(RewriteUtil.java:293)
        at org.apache.lens.server.query.QueryExecutionServiceImpl$RewriteEstimateRunnable.run(QueryExecutionServiceImpl.java:1126)
      

      Attachments

        1. LENS-429.patch
          6 kB
          Amareshwari Sriramadasu

        Activity

          People

            amareshwari Amareshwari Sriramadasu
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: