SHOW TABLE EXTENDED
Description
SHOW TABLE EXTENDED
will show information for all tables matching the given regular expression.
Output includes basic table information and file system information like Last Access
,
Created By
, Type
, Provider
, Table Properties
, Location
, Serde Library
, InputFormat
,
OutputFormat
, Storage Properties
, Partition Provider
, Partition Columns
and Schema
.
If a partition specification is present, it outputs the given partition’s file-system-specific
information such as Partition Parameters
and Partition Statistics
. Note that a table regex
cannot be used with a partition specification.
Syntax
Parameters
IN|FROM database_name
- Specifies database name. If not provided, will use the current database.
LIKE string_pattern
-
Specifies the regular expression pattern that is used to filter out unwanted tables.
- Except for `*` and `|` character, the pattern works like a regex.
- `*` alone matches 0 or more characters and `|` is used to separate multiple different regexes, any of which can match.
- The leading and trailing blanks are trimmed in the input pattern before processing.
partition_spec
-
An optional parameter that specifies a comma separated list of key and value pairs
for partitions. Note that a table regex cannot be used with a partition specification.
Syntax:PARTITION ( partition_col_name [ = partition_col_val ] [ , ... ] )