Closed randerzander closed 2 years ago
cc @ayushdg as a possible good first Calcite issue for you to work on
We currently support SHOW TABLES FROM
:
import pandas as pd
from dask_sql import Context
c = Context()
df = pd.DataFrame({"id": [0, 1]})
c.create_table('test', df)
c.sql('SHOW TABLES FROM "root"').compute()
Table
0 test
Are you looking specifically for support for SHOW TABLES
alone?
Are you looking specifically for support for
SHOW TABLES
alone?
Thanks for the quick response. I edited the issue description above to make clearer I was looking for "SHOW TABLES" in the context of the current database/schema.
It's common to create tables programmatically using names derived from filenames or other non-static source.
It would be nice to support "SHOW TABLES" (from Hive & Spark) as a way to query Dask-SQL for the list of tables in the default database:
Result:
Edit: Now I see the doc page shows a way to achieve this. It'd still be nice for Dask-SQL to "USE root" by default, and have "show tables" list the tables in that schema.