Skip to content

Support drop_table and list_offsets methods in python bindings #148

@fresh-borzoni

Description

@fresh-borzoni

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Python bindings are missing two admin operations that C++ bindings have.

Missing Methods

1. Admin.drop_table()

admin.drop_table(table_path, ignore_if_not_exists=False)
  1. Admin.list_offsets()
offsets = admin.list_offsets(
    table_path,
    bucket_ids=[0, 1, 2],
    offset_type=1,  # 0=Earliest, 1=Latest, 2=Timestamp
    timestamp=None
)
# Returns: dict[int, int]

Solution

Implements them :)

Anything else?

No response

Willingness to contribute

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions