Skip to content

Commit

Permalink
reference guide
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jan 20, 2025
1 parent 80a6595 commit c66fcdf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
20 changes: 20 additions & 0 deletions py-polars/docs/source/reference/catalog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
=======
Catalog
=======
.. currentmodule:: polars


Unity Catalog
~~~~~~~~~~~~~

Interface with Unity catalogs.

.. autosummary::
:toctree: api/

Catalog
Catalog.list_catalogs
Catalog.list_schemas
Catalog.list_tables
Catalog.get_table_info
Catalog.scan_table
7 changes: 7 additions & 0 deletions py-polars/docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ methods. All classes and functions exposed in the ``polars.*`` namespace are pub

io

.. grid-item-card::

.. toctree::
:maxdepth: 2

catalog

.. grid-item-card::

.. toctree::
Expand Down
5 changes: 2 additions & 3 deletions py-polars/polars/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(
Bearer token to authenticate with. This can also be set to:
* "auto": Automatically retrieve bearer tokens from the environment.
* "databricks-sdk": Use the Databricks SDK to retrieve and use the
bearer token from the environment.
bearer token from the environment.
"""
from polars.polars import PyCatalogClient

Expand Down Expand Up @@ -160,7 +160,7 @@ def scan_table(
table_name
Name of the table.
delta_table_version
Version of the table to scan.
Version of the table to scan (Deltalake only).
delta_table_options
Additional keyword arguments while reading a Deltalake table.
storage_options
Expand All @@ -187,7 +187,6 @@ def scan_table(
at any point without it being considered a breaking change.
retries
Number of retries if accessing a cloud instance fails.
version
"""
table_info = self.get_table_info(catalog_name, schema_name, table_name)
Expand Down

0 comments on commit c66fcdf

Please sign in to comment.