alamb commented on a change in pull request #754: URL: https://github.com/apache/arrow-datafusion/pull/754#discussion_r672561947
########## File path: datafusion/tests/parquet_pruning.rs ########## @@ -136,6 +136,47 @@ async fn prune_date64() { assert_eq!(output.result_rows, 1, "{}", output.description()); } +#[tokio::test] +async fn prune_disabled() { + let query = "SELECT * FROM t where nanos < to_timestamp('2020-01-02 01:01:11Z')"; + let expected_rows = 10; + + // with pruning + let output = ContextWithParquet::new(Scenario::Timestamps) + .await + .query(query) + .await; + + // This should prune one without error + assert_eq!(output.predicate_evaluation_errors(), Some(0)); + assert_eq!(output.row_groups_pruned(), Some(1)); + assert_eq!( + output.result_rows, + expected_rows, + "{}", + output.description() + ); + + // same query, without pruning + let config = ExecutionConfig::new().with_parquet_pruning(false); + + let output = ContextWithParquet::with_config(Scenario::Timestamps, config) + .await + .query(query) + .await; + println!("{}", output.description()); Review comment: It is not needed for the test -- it is included in all of the tests in this module for debugging assistance (when the test fails a log of what is going on also is dumped). I can remove it if you prefer -- 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...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org