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

Drop table is not working if path within workspace starts with '/'

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • None

    Description

      Drill works incorrectly if path to the table within workspace starts with '/'

      Request "drop table s3.tmp.`drill/transitive_closure/tab1`" works fine,
      but if I add '/' in the begining of the tables path "drop table s3.tmp.`/drill/transitive_closure/tab1`", Drill is trying to find table in the root directory but not in workspace path.

      Actual result:
      Drill returns successfully response
      "Table [/drill/transitive_closure/tab1] dropped"
      but table was not dropped.

       

      Expected result:

      Table was droped.

      Bug can be reproduced on S3 and DFS storages. On FileSystem storage Drill successfully returns error message if "drop table" query starts with '/' in table path.

      Attachments

        Issue Links

        Activity

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

          People

            bohdan Bohdan Kazydub
            denysord88 Denys Ordynskiy
            Vitalii Diravka Vitalii Diravka
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment