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

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

Closed
kou opened this issue Jun 30, 2023 · 0 comments · Fixed by #36533
Closed

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

kou opened this issue Jun 30, 2023 · 0 comments · Fixed by #36533

Comments

@kou
Copy link
Member

kou commented Jun 30, 2023

Describe the enhancement requested

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.

We may want to add arrow::ipc::CollectListener::filtered_schema() to.

See also the discussion at #36344 (comment) .

Component(s)

C++

kou added a commit to kou/arrow that referenced this issue Jul 7, 2023
bkietz pushed a commit that referenced this issue Jul 7, 2023
…tered_schema) (#36533)

### 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.
* Closes: #36407

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Benjamin Kietzman <bengilgit@gmail.com>
@bkietz bkietz added this to the 13.0.0 milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants