pub fn check_not_null_contraits(
batch: RecordBatch,
column_indices: &Vec<usize>,
) -> Result<RecordBatch>
Expand description
Checks a RecordBatch
for not null
constraints on specified columns.
§Arguments
batch
- TheRecordBatch
to be checkedcolumn_indices
- A vector of column indices that should be checked fornot null
constraints.
§Returns
Result<RecordBatch>
- The originalRecordBatch
if all constraints are met
This function iterates over the specified column indices and ensures that none of the columns contain null values. If any column contains null values, an error is returned.