Skip to content

GH-36407: [C++] Add arrow::ipc::Listener::OnSchemaDecoded(schema, filtered_schema) - #36533

Merged
bkietz merged 1 commit into
apache:mainfrom
kou:cpp-ipc-listener-schema
Jul 7, 2023
Merged

bkietz merged 1 commit into
apache:mainfrom
kou:cpp-ipc-listener-schema

Conversation

@kou

@kou kou commented Jul 7, 2023 •

Copy link
Copy Markdown
Member

Rationale for this change

The current arrow::ipc::Listener::OnSchemaDecoded() receives only the original schema. But we have filtered schema in decode phase. Filtered schema is useful for some cases. So we should pass the filtered schema too.

What changes are included in this PR?

This adds arrow::ipc::Listener::OnSchemaDecoded(schema, filtered_schema). The default implementation of it just calls OnSchemaDecoded(schema) to keep backward compatibility.

This also adds arrow::ipc::CollectListener::filtered_schema().

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions

github-actions Bot commented Jul 7, 2023

Copy link
Copy Markdown

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

@kou
kou requested a review from pitrou July 7, 2023 03:51

@bkietz bkietz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks

@bkietz
bkietz merged commit 41e0879 into apache:main Jul 7, 2023
@kou
kou deleted the cpp-ipc-listener-schema branch July 8, 2023 21:48
@conbench-apache-arrow

Copy link
Copy Markdown

Conbench analyzed the 6 benchmark runs on commit 41e08795.

There were 6 benchmark results indicating a performance regression:

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] Add arrow::ipc::Listener::OnSchemaDecoded(schema, filtered_schema)

2 participants