Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli show columns command to describe tables #1231

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

jimexist
Copy link
Member

@jimexist jimexist commented Nov 3, 2021

Which issue does this PR close?

Closes #1232

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

> \?
+---------+---------------------+
| Command | Description         |
+---------+---------------------+
| \d      | list tables         |
| \d name | describe table      |
| \q      | quit datafusion-cli |
| \?      | help                |
+---------+---------------------+
4 rows in set. Query took 0.001 seconds.
> \d
+---------------+--------------------+------------+------------+
| table_catalog | table_schema       | table_name | table_type |
+---------------+--------------------+------------+------------+
| datafusion    | information_schema | tables     | VIEW       |
| datafusion    | information_schema | columns    | VIEW       |
+---------------+--------------------+------------+------------+
2 rows in set. Query took 0.005 seconds.
> \d information_schema.tables
0 rows in set. Query took 0.005 seconds.

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Nov 3, 2021
@jimexist jimexist changed the title Add cli show columns Add cli show columns command to describe tables Nov 3, 2021
@jimexist jimexist merged commit 308004e into apache:master Nov 4, 2021
@jimexist jimexist deleted the add-cli-show-columns branch November 4, 2021 01:28
@houqp houqp added the enhancement New feature or request label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add feature to allow datafusion cli to list columns from a table
2 participants