Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3104

Explore shouldn't throw an exception if a Table dataset does not set schema.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Explore
    • Labels:
      None
    • Rank:
      1|hzywl3:

      Description

      Users may intentionally not provide a Schema for a Table dataset, since they do not want it to be explorable. Explore shouldn't throw exceptions in this scenario.

      Logs:

      2015-07-27 19:17:31,548 - ERROR [executor-7:c.c.c.e.c.ExploreFacade@162] - enable explore did not finish successfully for dataset instance lda.
      2015-07-27 19:17:31,551 - ERROR [executor-7:c.c.c.d.d.d.s.DatasetInstanceService@299] - Cannot enable exploration of dataset instance namespace:default/datasetinstance:lda of type {}: Cannot enable explore on dataset lda. Reason: Response code: 400, message: 'Bad Request', body: 'Unable to enable exploration on dataset lda because the schema property is not set.'
      co.cask.cdap.explore.service.ExploreException: Cannot enable explore on dataset lda. Reason: Response code: 400, message: 'Bad Request', body: 'Unable to enable exploration on dataset lda because the schema property is not set.'
      	at co.cask.cdap.explore.client.ExploreHttpClient.doEnableExploreDataset(ExploreHttpClient.java:147) ~[classes/:na]
      	at co.cask.cdap.explore.client.AbstractExploreClient$2.getHandle(AbstractExploreClient.java:99) ~[classes/:na]
      	at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:292) ~[classes/:na]
      	at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:289) ~[classes/:na]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_80]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_80]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_80]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[na:1.7.0_80]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[na:1.7.0_80]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_80]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_80]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_80]
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              bhooshan Bhooshan Mogal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: