Skip to content

docs: add docstrings to InspectTable public methods (closes #1191)#3555

Open
ritesxh wants to merge 1 commit into
apache:mainfrom
ritesxh:add-docstrings-inspect-table
Open

docs: add docstrings to InspectTable public methods (closes #1191)#3555
ritesxh wants to merge 1 commit into
apache:mainfrom
ritesxh:add-docstrings-inspect-table

Conversation

@ritesxh

@ritesxh ritesxh commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Closes #1191

Added comprehensive Google-style docstrings to all public methods of InspectTable in pyiceberg/table/inspect.py.

Methods documented

Method Description
__init__ Parameters and ModuleNotFoundError
snapshots() Full PyArrow schema, example
entries() Schema, status value meanings, example
refs() Branch/tag schema, example
partitions() Partition stats, row_filter / case_sensitive args, example
manifests() Manifest file columns, example
metadata_log_entries() Metadata log schema, note on current entry, example
history() is_current_ancestor semantics, example
files() content column values (0/1/2), example
data_files() Convenience filter, example
delete_files() Position + equality deletes, example
all_manifests() Cross-snapshot, reference_snapshot_id, example
all_files() De-duplication behaviour, example
all_data_files() Cross-snapshot data files, example
all_delete_files() Cross-snapshot delete files, example

Private helpers (_get_snapshot, _get_files_from_manifest, _generate_manifests_table) also received brief docstrings for maintainability.

Changes

  • pyiceberg/table/inspect.py — docstrings only, no logic changes

Closes apache#1191

Added Google-style docstrings to all public methods of InspectTable
in pyiceberg/table/inspect.py:
- __init__: parameters and ModuleNotFoundError
- snapshots, entries, refs, partitions: full schema descriptions + examples
- manifests, metadata_log_entries, history: schema + examples
- files, data_files, delete_files: content column semantics + examples
- all_manifests, all_files, all_data_files, all_delete_files: cross-snapshot
  de-duplication behaviour documented

Private helpers (_get_snapshot, _get_files_from_manifest, _generate_manifests_table)
also received brief docstrings for maintainability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docstrings to pyiceberg/table/inspect.py

1 participant