You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/26 12:31:26 UTC

[GitHub] [arrow-rs] alamb opened a new issue #75: [rust][datafusion] optimize count(*) queries on parquet sources

alamb opened a new issue #75:
URL: https://github.com/apache/arrow-rs/issues/75


   *Note*: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-8902
   
   Currently, as far as I can tell, when you perform a `select count(*) from dataset` in datafusion against a parquet dataset, the way this is implemented is by doing a scan on column 0, and counting up all of the rows (specifically I think it counts the # of rows in each batch).
   
    
   
   However, for the specific case of just counting _everythign_ in a parquet file, you can just read the rowcount from the footer metadata, so it's O(1) instead of O(n)


-- 
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.

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



[GitHub] [arrow-rs] alamb commented on issue #75: [rust][datafusion] optimize count(*) queries on parquet sources

Posted by GitBox <gi...@apache.org>.
alamb commented on issue #75:
URL: https://github.com/apache/arrow-rs/issues/75#issuecomment-826803085


   wrong repo


-- 
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.

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



[GitHub] [arrow-rs] alamb closed issue #75: [rust][datafusion] optimize count(*) queries on parquet sources

Posted by GitBox <gi...@apache.org>.
alamb closed issue #75:
URL: https://github.com/apache/arrow-rs/issues/75


   


-- 
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.

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