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

Example query on customer_city_name failing

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • cube, examples
    • None

    Description

      Query:cube select customer_city_name, store_sales from sales where time_range_in(delivery_time, '2015-04-12-00', '2015-04-13-00')
      Total time for running examples(in millis) :1216047
      Exception in thread "main" LensAPIException(errorResult=LensAPIResult(apiVersion=null, id=8f82a87d-249c-41ef-9e26-80fd6aef1355, data=null, lensErrorTO=LensErrorTO(code=1001, message=Internal Server Error., stackTrace=org.apache.lens.server.api.error.LensException: Driver :org.apache.lens.driver.jdbc.JDBCDriver Cause :No dimension table has the queried columns for customer, columns: [id, city_id]
      Driver :org.apache.lens.driver.hive.HiveDriver Cause :No dimension table has the queried columns for customer, columns: [id, city_id]
      at org.apache.lens.server.query.QueryExecutionServiceImpl.rewriteAndSelect(QueryExecutionServiceImpl.java:1283)
      at org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsyncInternal(QueryExecutionServiceImpl.java:1696)
      at org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsync(QueryExecutionServiceImpl.java:1647)
      at org.apache.lens.server.query.QueryServiceResource.query(QueryServiceResource.java:226)
      at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
      at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
      at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
      at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
      at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
      at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
      at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
      at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)
      at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
      at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
      at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
      at java.lang.Thread.run(Thread.java:722)
      , payload=null, childErrors=null), httpStatusCode=null))
      at org.apache.lens.client.LensStatement.executeQuery(LensStatement.java:309)
      at org.apache.lens.client.LensStatement.executeQuery(LensStatement.java:99)
      at org.apache.lens.examples.SampleQueries.runQueries(SampleQueries.java:135)
      at org.apache.lens.examples.SampleQueries.queryAll(SampleQueries.java:105)
      at org.apache.lens.examples.SampleQueries.main(SampleQueries.java:85)

      Attachments

        1. LENS-756.patch
          0.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: