pub fn check_not_null_constraints(
batch: RecordBatch,
column_indices: &Vec<usize>,
) -> Result<RecordBatch, DataFusionError>Expand description
Checks a RecordBatch for not null constraints on specified columns.
§Arguments
batch- TheRecordBatchto be checkedcolumn_indices- A vector of column indices that should be checked fornot nullconstraints.
§Returns
Result<RecordBatch>- The originalRecordBatchif 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.