Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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