cool9850311 commented on code in PR #27669:
URL: https://github.com/apache/datafusion/pull/27669#discussion_r4675942184
##########
datafusion/core/tests/physical_optimizer/projection_pushdown.rs:
##########
@@ -2035,3 +2040,477 @@ async fn split_declines_hash_repartition() ->
Result<()> {
);
Ok(())
}
+
+fn parquet_scan(schema: &SchemaRef) -> Arc<dyn ExecutionPlan> {
+ let config = FileScanConfigBuilder::new(
+ ObjectStoreUrl::parse("test:///").unwrap(),
+ Arc::new(ParquetSource::new(Arc::clone(schema))),
+ )
+ .with_file(PartitionedFile::new("x".to_string(), 100))
+ .build();
+ DataSourceExec::from_data_source(config)
+}
+
+fn limit_split_scan() -> Result<(SchemaRef, Arc<dyn ExecutionPlan>)> {
+ let schema: SchemaRef = Arc::new(Schema::new(vec![
+ Field::new("id", DataType::Int64, true),
+ Field::new(
+ "s",
+ DataType::Struct(vec![Field::new("value", DataType::Int64,
true)].into()),
+ true,
+ ),
+ ]));
+ Ok((Arc::clone(&schema), parquet_scan(&schema)))
+}
+
+fn limit_split_exprs(schema: &SchemaRef) -> Result<Vec<ProjectionExpr>> {
Review Comment:
I'll check if they can be removed, moved to slt or merged.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]