Skip to content

Commit

Permalink
[SPARK-32887][DOC] Correct the typo for SHOW TABLE
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Correct the typo in Show Table document

### Why are the changes needed?
Current Document of Show Table returns in parse error, so it is misleading to users

### Does this PR introduce _any_ user-facing change?
Yes, the document of show table is corrected now

### How was this patch tested?
NA

Closes apache#29758 from Udbhav30/showtable.

Authored-by: Udbhav30 <u.agrawal30@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
Udbhav30 authored and dongjoon-hyun committed Sep 17, 2020
1 parent 482a79a commit 88e87bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/sql-ref-syntax-aux-show-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ SHOW TABLE EXTENDED LIKE 'employee';
+--------+---------+-----------+--------------------------------------------------------------+

-- showing the multiple table details with pattern matching
SHOW TABLE EXTENDED LIKE `employe*`;
SHOW TABLE EXTENDED LIKE 'employe*';
+--------+---------+-----------+--------------------------------------------------------------+
|database|tableName|isTemporary| information |
+--------+---------+-----------+--------------------------------------------------------------+
Expand Down Expand Up @@ -146,7 +146,7 @@ SHOW TABLE EXTENDED LIKE `employe*`;
+--------+---------+----------+---------------------------------------------------------------+

-- show partition file system details
SHOW TABLE EXTENDED IN default LIKE `employee` PARTITION (`grade=1`);
SHOW TABLE EXTENDED IN default LIKE 'employee' PARTITION (grade=1);
+--------+---------+-----------+--------------------------------------------------------------+
|database|tableName|isTemporary| information |
+--------+---------+-----------+--------------------------------------------------------------+
Expand All @@ -169,7 +169,7 @@ SHOW TABLE EXTENDED IN default LIKE `employee` PARTITION (`grade=1`);
+--------+---------+-----------+--------------------------------------------------------------+

-- show partition file system details with regex fails as shown below
SHOW TABLE EXTENDED IN default LIKE `empl*` PARTITION (`grade=1`);
SHOW TABLE EXTENDED IN default LIKE 'empl*' PARTITION (grade=1);
Error: Error running query: org.apache.spark.sql.catalyst.analysis.NoSuchTableException:
Table or view 'emplo*' not found in database 'default'; (state=,code=0)
```
Expand Down

0 comments on commit 88e87bc

Please sign in to comment.