Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions paimon-python/pypaimon/daft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# limitations under the License.
################################################################################

from pypaimon.daft.daft_paimon import read_paimon, write_paimon
from pypaimon.daft.daft_paimon import explain_paimon_scan, read_paimon, write_paimon

__all__ = ["read_paimon", "write_paimon", "PaimonCatalog", "PaimonTable"]
__all__ = ["explain_paimon_scan", "read_paimon", "write_paimon", "PaimonCatalog", "PaimonTable"]


def __getattr__(name):
Expand Down
23 changes: 23 additions & 0 deletions paimon-python/pypaimon/daft/daft_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,29 @@ def read(self, **options: Any) -> DataFrame:
Table._validate_options("Paimon read", options, set())
return _read_table(self._inner, catalog_options=self._catalog_options)

def explain_scan(
self,
*,
filters: Any = None,
partition_filters: Any = None,
columns: list[str] | None = None,
limit: int | None = None,
io_config=None,
verbose: bool = False,
) -> Any:
from pypaimon.daft.daft_paimon import _explain_table

return _explain_table(
self._inner,
catalog_options=self._catalog_options,
filters=filters,
partition_filters=partition_filters,
columns=columns,
limit=limit,
io_config=io_config,
verbose=verbose,
)

def append(self, df: DataFrame, **options: Any) -> None:
from pypaimon.daft.daft_paimon import _write_table

Expand Down
Loading
Loading