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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.15.0
    • Component/s: None
    • Labels:

      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

              People

              • Assignee:
                KazydubB Bohdan Kazydub
                Reporter:
                denysord88 Denys Ordynskiy
                Reviewer:
                Vitalii Diravka
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: