This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 40a386e12f [python] Document serialized LeRobot appends with Ray 
parallelism (#11095)
40a386e12f is described below

commit 40a386e12f663fa7429785b436cf4fb4a4f4347c
Author: XiaoHongbo <[email protected]>
AuthorDate: Wed Nov 11 17:01:17 2026 +0800

    [python] Document serialized LeRobot appends with Ray parallelism (#11095)
---
 docs/docs/pypaimon/lerobot.md                   | 19 +++++++++++++++++--
 paimon-python/pypaimon/multimodal/connection.py |  7 ++++++-
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/docs/docs/pypaimon/lerobot.md b/docs/docs/pypaimon/lerobot.md
index 01abb3bc90..63f39d5aea 100644
--- a/docs/docs/pypaimon/lerobot.md
+++ b/docs/docs/pypaimon/lerobot.md
@@ -316,16 +316,31 @@ conn.load_from_lerobot("robot_merged", ["/data/source_a", 
"/data/source_b"])
 conn.append_to_lerobot("robot_merged", "/data/source_c", 
tag_name="after-append")
 ```
 
+One driver submits and commits the entire append; Ray workers can prepare its
+sources concurrently. Do not run separate `append_to_lerobot` calls against the
+same table group at the same time. The three component tables do not share a
+transaction, so interleaved appends can leave the group inconsistent. Queue
+additional appends through the same driver. To append multiple sources with
+Ray-parallel preparation:
+
+```python
+import ray
+
+ray.init(address="auto")
+conn.append_to_lerobot("robot_merged", ["/data/source_d", "/data/source_e"],
+                       parallelism=2)
+```
+
 If source C adds `humidity`, the append adds that column to `_frames`, keeps A
 and B, and reads their humidity values as null. New `extra_dataset_fields` 
columns
 are added to `_datasets` in the same way; omitted extra fields receive nulls.
 Pass `schema_evolution=False` to `append_to_lerobot` to reject new columns.
 
-If a process stops between component commits, call
+If the sole writer stops between component commits, call
 `conn.recover_lerobot_append("robot_merged")` before retrying. This rolls
 unfinished Frame and Episode commits back to the Dataset metadata boundary.
 Nullable columns added before a failed append remain in the schema and are
-reused on retry.
+reused on retry. This recovery is not a repair mechanism for concurrent 
appends.
 
 For FileIO URIs, pass credentials through `source_options`:
 
diff --git a/paimon-python/pypaimon/multimodal/connection.py 
b/paimon-python/pypaimon/multimodal/connection.py
index 1ccb22ec8d..d47d13f2ca 100644
--- a/paimon-python/pypaimon/multimodal/connection.py
+++ b/paimon-python/pypaimon/multimodal/connection.py
@@ -177,7 +177,12 @@ class MultimodalConnection:
             dataset_name=None,
             extra_dataset_fields=None,
             schema_evolution=True) -> None:
-        """Append LeRobot v3 datasets to a source-local three-table group."""
+        """Append LeRobot v3 datasets to a source-local three-table group.
+
+        Pass multiple sources in one call for Ray-parallel preparation. Only
+        one append call may commit to a given group at a time; its three tables
+        do not share a transaction.
+        """
         from pypaimon.multimodal.lerobot import load_from_lerobot
         load_from_lerobot(
             self, table_name, source, batch_size=batch_size,

Reply via email to