JingsongLi commented on code in PR #307:
URL: https://github.com/apache/paimon-rust/pull/307#discussion_r3471532939
##########
bindings/python/python/pypaimon_rust/datafusion.pyi:
##########
@@ -36,10 +36,59 @@ class TableSchema:
def options(self) -> Dict[str, str]: ...
def comment(self) -> Optional[str]: ...
+class Snapshot:
+ def id(self) -> int: ...
+ def commit_time_ms(self) -> int: ...
+ def total_record_count(self) -> Optional[int]: ...
+ def delta_record_count(self) -> Optional[int]: ...
+ def commit_kind(self) -> str: ...
+
+class Tag:
+ def name(self) -> str: ...
+ def snapshot_id(self) -> int: ...
+
+class PartitionStat:
+ def partition(self) -> Dict[str, str]: ...
+ def record_count(self) -> int: ...
+ def file_count(self) -> int: ...
+ def total_size_bytes(self) -> int: ...
+
class Table:
def identifier(self) -> str: ...
def location(self) -> str: ...
def schema(self) -> TableSchema: ...
+ def latest_snapshot(self) -> Optional[Snapshot]:
+ """
+ Warning: This method blocks on a DataFusion runtime.
+ Calling this from an active asyncio event loop will result in a panic.
+ """
+ ...
+ def list_snapshots(self) -> List[Snapshot]:
+ """
+ Returns all snapshots ordered newest first (descending by ID).
+
Review Comment:
This line has trailing whitespace, which makes `git diff --check
origin/main...HEAD` fail. Please remove it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]