mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-14 03:10:38 +00:00
Extend SHOW TABLES, DESCRIBE and SHOW COLUMNS to support table identifiers not just SQL LIKE pattern. This allows both Elasticsearch-style multi-index patterns and SQL LIKE. To disambiguate between the two (as the " vs ' can be easy to miss), the grammar now requires LIKE keyword as a prefix for all LIKE-like patterns. Also added some docs comparing the two types of patterns. Fix #33294
28 lines
442 B
Plaintext
28 lines
442 B
Plaintext
[role="xpack"]
|
|
[testenv="basic"]
|
|
[[sql-syntax-describe-table]]
|
|
=== DESCRIBE TABLE
|
|
|
|
.Synopsis
|
|
[source, sql]
|
|
----
|
|
DESCRIBE [table identifier<1>|[LIKE pattern<2>]]
|
|
----
|
|
|
|
or
|
|
|
|
[source, sql]
|
|
----
|
|
DESC [table identifier<1>|[LIKE pattern<2>]]
|
|
----
|
|
|
|
|
|
.Description
|
|
|
|
`DESC` and `DESCRIBE` are aliases to <<sql-syntax-show-columns>>.
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs.csv-spec[describeTable]
|
|
----
|