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
{{ message }}
Repository navigation
Commit 022c4a5
Browse filesBrowse the repository at this point in the historyBrowse files
- Updated the documentation for schema normalization to clarify the conditions under which the batch is returned unchanged.
- Added a test to verify that schema normalization correctly strips metadata from the RecordBatch when the expected schema does not contain it.
- Provided additional assertions to ensure zero-copy behavior in schema normalization.
- Improved code comments for better clarity on the usage of the `normalize_batch_schema` function across various modules.
Copy file name to clipboardExpand all lines: datafusion/physical-plan/src/common.rs
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ pub(crate) type SharedMemoryReservation = Arc<Mutex<MemoryReservation>>;
51
51
///
52
52
/// | Case | Result |
53
53
/// |---|---|
54
-
/// | `batch.schema() == expected_schema` | Returns the batch unchanged (fast path, zero copies). |
54
+
/// | `batch` schema is structurally equal to `expected_schema` | Returns the batch unchanged (fast path, zero copies). |
55
55
/// | Column count and data types match positionally | Returns a new `RecordBatch` that shares the original data buffers (zero-copy) but carries `expected_schema`. |
56
56
/// | Column count or data types are incompatible | Returns `Err(internal_err!(...))`. |
0 commit comments