adriangb commented on issue #15192: URL: https://github.com/apache/datafusion/issues/15192#issuecomment-2777223602
We do something along these lines. Not for security per-se so I'm not going to vouch for it being secure but I think in principle it is: ```rust fn register_filtered_view( &self, ctx: &SessionContext, kind_field: Option<&str>, table_name: &str, provider: Arc<dyn TableProvider>, ) -> DataFusionResult<()> { let mut df = ctx.read_table(provider)?; df = apply_filters(ctx, df, &self.filters, table_name)?; ctx.register_table(table_name, df.into_view())?; Ok(()) } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org