albertusk95 commented on a change in pull request #25531: [SPARK-28806][DOC]
Document SHOW COLUMNS in SQL Reference
URL: https://github.com/apache/spark/pull/25531#discussion_r316077332
##########
File path: docs/sql-ref-syntax-aux-show-columns.md
##########
@@ -18,5 +18,26 @@ license: |
See the License for the specific language governing permissions and
limitations under the License.
---
+### Description
+Return the list of columns in a table. If the table does not exist, an
exception is thrown.
-**This page is under construction**
+### Syntax
+{% highlight sql %}
+SHOW COLUMNS {IN | FROM} [db.]table {IN | FROM} database
+{% endhighlight %}
+**Note**
+- You can list the columns of a table in a database other than current
database in one of following
Review comment:
I think this should be `You can list the columns of a table in a database
other than current database in one of the following ways:`
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]