andygrove commented on issue #353:
URL: https://github.com/apache/arrow-ballista/issues/353#issuecomment-1279890759

   This is where the `EmptyExec` comes from:
   
   ```
   impl TableProvider for ListingTable {
   
       async fn scan(
           &self,
           ctx: &SessionState,
           projection: &Option<Vec<usize>>,
           filters: &[Expr],
           limit: Option<usize>,
       ) -> Result<Arc<dyn ExecutionPlan>> {
           let (partitioned_file_lists, statistics) =
               self.list_files_for_scan(ctx, filters, limit).await?;
   
           // if no files need to be read, return an `EmptyExec`
           if partitioned_file_lists.is_empty() {
               let schema = self.schema();
               let projected_schema = project_schema(&schema, 
projection.as_ref())?;
               return Ok(Arc::new(EmptyExec::new(false, projected_schema)));
           }
   ```        


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to