We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR #15201 introduced a bug here
datafusion/datafusion/expr/src/logical_plan/builder.rs
Line 501 in 9730404
Run the following test and check the assertion fail. The test is successful for 46.0.1 version.
#[test] fn inline_scan_projection_test() -> Result<()> { let name = UNNAMED_TABLE; let column = "a"; let schema = Schema::new(vec![ Field::new("a", DataType::Int32, false), Field::new("b", DataType::Int32, false), ]); let projection = vec![schema.index_of(column)?]; let provider = ViewTable::try_new( LogicalPlan::EmptyRelation(EmptyRelation { produce_one_row: false, schema: DFSchemaRef::new(DFSchema::try_from(schema)?), }), None, )?; let source = provider_as_source(Arc::new(provider)); let plan = LogicalPlanBuilder::scan(name, source, Some(projection))?.build()?; assert_eq!( format!("{plan}"), format!("TableScan: {name} projection=[{column}]") ); Ok(()) }
Projection must be preserved
This bug blocks me from update to 47.0.0 version. It would be great to have 47.0.1 version released with the fix.
The text was updated successfully, but these errors were encountered:
I can take a look
Sorry, something went wrong.
@qstommyshu I have pushed the fix #15811
Closed by #15825
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
PR #15201 introduced a bug here
datafusion/datafusion/expr/src/logical_plan/builder.rs
Line 501 in 9730404
To Reproduce
Run the following test and check the assertion fail. The test is successful for 46.0.1 version.
Expected behavior
Projection must be preserved
Additional context
This bug blocks me from update to 47.0.0 version. It would be great to have 47.0.1 version released with the fix.
The text was updated successfully, but these errors were encountered: