Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1685

MongoDB plugin - Drill not showing correct error when using the wrong MongoDB database

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6.0
    • Future
    • Storage - MongoDB
    • None
    • Drill 0.6, MongoDB 2.6.5

    Description

      When connecting to MongoDB with multiple databases and collections drill fails to recognize the use of unavailable tables/collections.

      Example:
      In the reviews database there are review, user, business collections/tables.
      In the twitter database there is a tweets collection/table.

      When connecting to the reviews database (use mongo.reviews and then incorrectly trying to access the tweets table in the twitter database sqlline returns the following error:

      Query failed: Failure while setting up Foreman. Internal error: Error while applying rule DrillPushProjIntoScan, args [rel#5522:ProjectRel.NONE.ANY([]).[](child=rel#5521:Subset#0.ENUMERABLE.ANY([]).[],date=SUBSTRING($1, 1, 10)), rel#5510:EnumerableTableAccessRel.ENUMERABLE.ANY([]).[](table=[mongo, reviews, tweets])] [68adba1a-3f55-4f95-ad61-be3a7550a26d]

      Instead of simply identifying that the tweets table/collection is not in the current database.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            aengelbrecht Andries Engelbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment