pub fn table_predicates(
        &self,
        table_info: &dyn QueryDatabaseMeta,
    ) -> DataFusionResult<Vec<(String, Predicate)>> {
        let table_names = match &self.table_names {
            Some(table_names) => itertools::Either::Left(table_names.iter().cloned()),
            None => itertools::Either::Right(table_info.table_names().into_iter()),
        };

        table_names
            .map(|table| {
                let schema = table_info.table_schema(&table);
                let predicate = normalize_predicate(&table, schema, &self.inner)?;

                Ok((table, predicate))
            })
            .collect()
    }
/// Convert to a list of [`Predicate`] to apply to specific tables
///
/// Returns a list of [`Predicate`] and their associated table name
Convert to a list of [`Predicate`] to apply to specific tables
Returns a list of [`Predicate`] and their associated table name
Convert to a list of [ ` Predicate ` ] to apply to specific tables Returns a list of [ ` Predicate ` ] and their associated table name
pub fn table_predicates(
        &self,
        table_info: &dyn QueryDatabaseMeta,
    ) -> DataFusionResult<Vec<(String, Predicate)>> {
        let table_names = match &self.table_names {
            Some(table_names) => itertools::Either::Left(table_names.iter().cloned()),
            None => itertools::Either::Right(table_info.table_names().into_iter()),
        };
        table_names
            .map(|table| {
                let schema = table_info.table_schema(&table);
                let predicate = normalize_predicate(&table, schema, &self.inner)?;
                Ok((table, predicate))
            })
            .collect()
    }
pub fn table_predicates ( & self , table_info : & dyn QueryDatabaseMeta , ) -> DataFusionResult < Vec < ( String , Predicate ) > > { let table_names = match & self . table_names { Some ( table_names ) => itertools :: Either :: Left ( table_names . iter ( ) . cloned ( ) ) , None => itertools :: Either :: Right ( table_info . table_names ( ) . into_iter ( ) ) , } ; table_names . map ( | table | { let schema = table_info . table_schema ( & table ) ; let predicate = normalize_predicate ( & table , schema , & self . inner ) ? ; Ok ( ( table , predicate ) ) } ) . collect ( ) }
Convert to a list of [`Predicate`] to apply to specific tables
Returns a list of [`Predicate`] and their associated table name
Convert to a list of [ ` Predicate ` ] to apply to specific tables Returns a list of [ ` Predicate ` ] and their associated table name
&self
table_info
&dyn QueryDatabaseMeta
&self
table_info
&dyn QueryDatabaseMeta