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

Need a SHOW FILES query to allow browsing of the file system.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      SHOW FILES [

      {FROM | IN}

      db_name] [LIKE 'pattern' | WHERE expr]

      Where -

      db_name is schema name.

      pattern is path with wildcards . The wildcard character is ‘%’

      where are other conditions.

      Example:

      SHOW FILES IN dfs.`/myfiles/logs` LIKE 'happy%' WHERE isDirectory = true;

      The columns returned are

      name VARCHAR
      isDirectory BOOLEAN
      isFile BOOLEAN
      isSymlink BOOLEAN
      length BIGINT
      owner VARCHAR
      group VARCHAR
      modificationTime TIMESTAMP
      accessTime TIMESTAMP
      permissions VARCHAR

      The syntax mirrors the show tables command

      Attachments

        1. DRILL-601.patch
          23 kB
          Mehant Baid

        Activity

          People

            mehant Mehant Baid
            parthc Parth Chandra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: