You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/03/24 19:54:10 UTC

[GitHub] [arrow-datafusion] alamb commented on issue #3249: `ViewTable::scan` ignores filters and limits

alamb commented on issue #3249:
URL: https://github.com/apache/arrow-datafusion/issues/3249#issuecomment-1483336507

   The explain plans are a thing of beauty now
   
   ```sql
   ❯ explain select * from v where column1 != 2;
   
   +---------------+---------------------------------------------------------------------------+
   | plan_type     | plan                                                                      |
   +---------------+---------------------------------------------------------------------------+
   | logical_plan  | SubqueryAlias: v                                                          |
   |               |   Filter: t.column1 != Int64(2) AND t.column1 != Int64(1)                 |
   |               |     TableScan: t projection=[column1]                                     |
   | physical_plan | CoalesceBatchesExec: target_batch_size=8192                               |
   |               |   FilterExec: column1@0 != 2 AND column1@0 != 1                           |
   |               |     RepartitionExec: partitioning=RoundRobinBatch(16), input_partitions=1 |
   |               |       MemoryExec: partitions=1, partition_sizes=[1]                       |
   |               |                                                                           |
   +---------------+---------------------------------------------------------------------------+
   ```


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org