Skip to main content

delete_expr

Function delete_expr 

Source
pub async fn delete_expr(dataset: &mut Dataset, expr: Expr) -> Result<u64>
Expand description

Delete the rows that match expr, a DataFusion filter on the Lance table columns.

Lance gets expr with no change. Unlike crate::NdScanner::filter_expr, a delete does not change value parts into stats filters, because a stats filter keeps rows that do not match. Returns the number of deleted rows.