in python/src/internal.rs [341:361]
fn get_file_slices_splits_as_of(
&self,
n: usize,
timestamp: &str,
filters: Option<Vec<(String, String, String)>>,
py: Python,
) -> PyResult<Vec<Vec<HudiFileSlice>>> {
py.allow_threads(|| {
let file_slices = rt()
.block_on(self.inner.get_file_slices_splits_as_of(
n,
timestamp,
filters.unwrap_or_default(),
))
.map_err(PythonError::from)?;
Ok(file_slices
.iter()
.map(|inner_vec| inner_vec.iter().map(HudiFileSlice::from).collect())
.collect())
})
}