Skip to content
New issue

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

GH-33464: [R] Troubles with using augmented columns #39542

Closed
wants to merge 1 commit into from

Conversation

thisisnic
Copy link
Member

@thisisnic thisisnic commented Jan 10, 2024

Rationale for this change

Fixes a bug whereby augmented columns couldn't be used in subsequent expressions

What changes are included in this PR?

Includes the augmented column in the schema for the ScanNode

Are these changes tested?

Yes

Are there any user-facing changes?

Yes

Copy link

⚠️ GitHub issue #33464 has been automatically assigned in GitHub to PR creator.

@@ -302,6 +301,8 @@ std::shared_ptr<acero::ExecNode> ExecNode_Scan(
"make_struct", std::move(exprs),
compute::MakeStructOptions{cpp11::as_cpp<std::vector<std::string>>(field_names)});

options->dataset_schema = GetProjectedSchemaFromExpression(options->projection, dataset->schema());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can actually do this this way as this function is internal, but I think that we need to do something like what this does.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Jan 10, 2024
@thisisnic
Copy link
Member Author

Closing this as the changes that need making appear to be at in libarrow not the R package C++

@thisisnic thisisnic closed this Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R] Troubles with using augmented columns
1 participant