[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r333816964 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,90 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +The `SHOW TABLES` statement returns all the tables for an optionally specified database. +Additionally, the output of this statement may be filtered by an optional matching +pattern. If no database is specified then the tables are returned from the +current database. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the database name from which tables are listed. + + LIKE regex_pattern + + Specifies the regular expression pattern that is used to filter out unwanted tables. + + Except for * and | character, the pattern works like a regex. Review comment: Done. The same correction I also interested. thank you This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r22463 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -38,10 +38,13 @@ SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] LIKE 'regex_pattern' - Specifies the regex pattern that is used to filter out unwanted tables. -- The pattern is a regex except `*` and `|`characters -- `*` matches 0 or more characters and `|` used to provide more than one regex with OR condition -- The leading and trailing blanks are trimmed in the input pattern before processing. + Specifies the regular expression pattern that is used to filter out unwanted tables. + + Except `*` and `|` characters remaining characters will follow the regular expression convention. + `*` matches 0 or more characters and `|` used to provide more than one regex with OR condition. Review comment: comments handled Thanks for reviewing This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r332826762 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +The `SHOW TABLES` statement returns all the tables for an optionally specified database. +Additionally, the output of this statement may be filtered by an optional matching +pattern. If no database is specified then the tables are returned from the +current database. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- The pattern is a regex except `*` and `|`characters Review comment: done. used the html ul and li tags and added the description like below `Except `*` and `|` characters remaining characters will follow the regular expression convention.` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r331841959 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +The `SHOW TABLES` statement returns all the tables for an optionally specified `database`. Review comment: @srowen Done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r331841928 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +`SHOW TABLES` statement returns all the tables for an optionally specified `database`. +Additionally, the output of this statement may be filtered via an optional matching +pattern. If no database is specified then the tables are returned from the +current database. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- The pattern is a regex except that `*` and `|`characters Review comment: @dilipbiswal done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r331174699 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +`SHOW TABLES` statement returns all the tables for an optionally specified `database`. Review comment: Done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r330205529 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +`SHOW TABLES` statement returns all the tables for an optionally specified `database`. +Additionally, the output of this statement may be filtered via an optional matching +pattern. If no database is specified then the tables are returned from the +current database. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. Review comment: @srowen @dilipbiswal Thank you both for your time in reviewing. I updated according to your suggestion and screenshot also I updated. Now it will look like below. ![image](https://user-images.githubusercontent.com/7912929/65989006-847d0280-e4a6-11e9-9b9a-3e9ebcaf92f8.png) This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r329725449 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,86 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +`SHOW TABLES` statement returns all the tables for an optionally specified `database`. +Additionally, the output of this statement may be filtered via an optional matching +pattern. If no database is specified then the tables are returned from the +current database. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. Review comment: @dilipbiswal @srowen I also tesed, it is same behaviour you mentioned above. It will use the below method to handle, here they are handling "|" and "*" seperatly, remaining treating as regex https://github.com/apache/spark/blob/e1ea806b3075d279b5f08a29fe4c1ad6d3c4191a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/StringUtils.scala#L88 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326928600 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,83 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. Review comment: DOne This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326889872 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,82 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. +- Excluding `*` and `|` the remaining pattern follows the regex semantics. +- The leading and trailing blanks are trimmed in the input pattern before processing. + + + +### Example +{% highlight sql %} +-- List all tables in default database +SHOW TABLES; + +---++--+--+ + | database | tableName | isTemporary | + +---++--+--+ + | default | sam| false| + | default | sam1 | false| + | default | suj| false| + +---++--+--+ + +-- List all tables from userdb database +SHOW TABLES FROM userdb; + +---++--+--+ + | database | tableName | isTemporary | + +---++--+--+ + | userdb| user1 | false| + | userdb| user2 | false| + +---++--+--+ + +-- List all tables in userdb database +SHOW TABLES IN userdb; + +---++--+--+ + | database | tableName | isTemporary | + +---++--+--+ + | userdb| user1 | false| + | userdb| user2 | false| + +---++--+--+ + +-- List all tables from default database matching the pattern `sam*` +SHOW TABLES FROM default LIKE 'sam*'; + +---++--+--+ + | database | tableName | isTemporary | + +---++--+--+ + | default | sam| false| + | default | sam1 | false| + +---++--+--+ +-- List all tables matching the pattern `sam*|suj` Review comment: @dilipbiswal Done, updated the snap's also. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326881641 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. Review comment: @dilipbiswal Done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326881641 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. Review comment: done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326881634 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameters + + {FROM|IN} database_name + + Specifies the `database` name from which tables are listed. + + LIKE 'regex_pattern' + + Specifies the regex pattern that is used to filter out unwanted tables. +- Only `*` and `|` are allowed as wildcard pattern. +- Excluding `*` and `|` the remaining pattern follows the regex semantics. +- The leading and trailing blanks are trimmed in the input pattern before processing. + + + +### Example +{% highlight sql %} +-- List all tables in default database +SHOW TABLES; + +---++--+--+ Review comment: @dilipbiswal I just Copy and paste the actual output from the Beeline console Here is the beeline console snap ![image](https://user-images.githubusercontent.com/7912929/65381823-68df6280-dd16-11e9-873c-c49244e7aee7.png) In the UI it looks like below, i think it is normal ![image](https://user-images.githubusercontent.com/7912929/65381847-08045a00-dd17-11e9-9d3f-69ec058eaa98.png) Only in the git file editor, it shows inconsistent. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326856790 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameter Review comment: Done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326856781 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameter + + {FROM|IN} database_name + + Listing the tables from this `database`. + + LIKE 'regex_pattern' + + A regex pattern that is used to filter out unwanted functions. +- Only `*` and `|` are allowed as wildcard pattern. +- Excluding `*` and `|` the remaining pattern follows the regex semantics. +- The leading and trailing blanks are trimmed in the input pattern before processing. + + + +### Example +{% highlight sql %} +-- List all tables in default database +SHOW TABLES; ++---++--+--+ Review comment: Handled This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326856785 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameter + + {FROM|IN} database_name + + Listing the tables from this `database`. + + LIKE 'regex_pattern' + + A regex pattern that is used to filter out unwanted functions. +- Only `*` and `|` are allowed as wildcard pattern. +- Excluding `*` and `|` the remaining pattern follows the regex semantics. +- The leading and trailing blanks are trimmed in the input pattern before processing. + + + +### Example +{% highlight sql %} +-- List all tables in default database +SHOW TABLES; ++---++--+--+ +| database | tableName | isTemporary | ++---++--+--+ +| default | sam| false| +| default | sam1 | false| +| default | suj| false| ++---++--+--+ + +-- List all tables from userdb database +SHOW TABLES FROM userdb; ++---++--+--+ +| database | tableName | isTemporary | ++---++--+--+ +| userdb| user1 | false| +| userdb| user2 | false| ++---++--+--+ + +-- List all tables in userdb database +SHOW TABLES IN userdb; ++---++--+--+ +| database | tableName | isTemporary | ++---++--+--+ +| userdb| user1 | false| +| userdb| user2 | false| ++---++--+--+ + +-- List all tables from default database matching the pattern `sam*` +SHOW TABLES FROM default LIKE 'sam*'; ++---++--+--+ +| database | tableName | isTemporary | ++---++--+--+ +| default | sam| false| +| default | sam1 | false| ++---++--+--+ + +{% endhighlight %} + +### Related statements. Review comment: Done This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org
[GitHub] [spark] shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference.
shivusondur commented on a change in pull request #25561: [SPARK-28810][DOC][SQL] Document SHOW TABLES in SQL Reference. URL: https://github.com/apache/spark/pull/25561#discussion_r326856775 ## File path: docs/sql-ref-syntax-aux-show-tables.md ## @@ -18,5 +18,73 @@ license: | See the License for the specific language governing permissions and limitations under the License. --- +### Description -**This page is under construction** +List all the `tables` from the database with `database-name` and `is temporary table`. + +### Syntax +{% highlight sql %} +SHOW TABLES [{FROM|IN} database_name] [LIKE 'regex_pattern'] +{% endhighlight %} + +### Parameter + + {FROM|IN} database_name + + Listing the tables from this `database`. + + LIKE 'regex_pattern' + + A regex pattern that is used to filter out unwanted functions. Review comment: Handled This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org