You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,16 @@ When generating Rust code for DataFusion, follow these guidelines:
47
47
48
48
3. Follow the standard Rust style conventions from rustfmt
49
49
50
-
## Rust-backed Classes
50
+
## Rust-Python Integration
51
51
52
-
Some Python classes in this project are thin wrappers around Rust
53
-
implementations. If a change affects such a class, update the Rust code
54
-
first and then adjust the Python wrappers accordingly.
52
+
**Important:** Some classes in this repository have their core implementations in Rust with Python bindings. For any changes related to these classes in Python:
53
+
54
+
1.**Always update the Rust implementation first** before making corresponding changes to the Python bindings
55
+
2. Ensure the Rust changes are properly tested in Rust before updating Python code
56
+
3. Update Python bindings to reflect the new Rust API
57
+
4. Add or update Python tests to cover the new functionality
58
+
59
+
This ensures consistency between the Rust core and Python interface, and prevents binding mismatches.
55
60
56
61
## Code Organization
57
62
- Keep functions focused and under about 50 lines.
0 commit comments