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

ARROW-7233: [C++] Use Result<T> in remaining value-returning IPC APIs #6867

Closed
wants to merge 3 commits into from

Conversation

wesm
Copy link
Member

@wesm wesm commented Apr 7, 2020

There were a number of APIs left.

@github-actions
Copy link

github-actions bot commented Apr 8, 2020

@wesm
Copy link
Member Author

wesm commented Apr 8, 2020

Please don't merge since this conflicts with #6804

@pitrou
Copy link
Member

pitrou commented Apr 8, 2020

Looks like there are problems:


* checking whether package ‘arrow’ can be installed ... WARNING
Found the following significant warnings:
  /arrow/cpp/src/arrow/ipc/message.cc:123:1: warning: control reaches end of non-void function [-Wreturn-type]
/arrow/cpp/src/jni/orc/jni_wrapper.cpp: In function ‘_jbyteArray* Java_org_apache_arrow_adapter_orc_OrcStripeReaderJniWrapper_getSchema(JNIEnv*, jclass, jlong)’:
/arrow/cpp/src/jni/orc/jni_wrapper.cpp:231:87: error: ‘arrow::Status arrow::ipc::SerializeSchema(const arrow::Schema&, arrow::ipc::DictionaryMemo*, arrow::MemoryPool*, std::shared_ptr<arrow::Buffer>*)’ is deprecated: Deprecated in 0.17.0. Use Result-returning version [-Werror=deprecated-declarations]
       arrow::ipc::SerializeSchema(*schema, nullptr, arrow::default_memory_pool(), &out);
                                                                                       ^
In file included from /arrow/cpp/src/arrow/ipc/api.h:25:0,
                 from /arrow/cpp/src/jni/orc/jni_wrapper.cpp:26:
/arrow/cpp/src/arrow/ipc/writer.h:437:8: note: declared here
 Status SerializeSchema(const Schema& schema, DictionaryMemo* dictionary_memo,
        ^~~~~~~~~~~~~~~

@wesm
Copy link
Member Author

wesm commented Apr 8, 2020

Will fix. I used clang to build the R bindings so I missed some deprecation warnings (wonder if there's a way to get ARROW_DEPRECATED to warn in clang?)

This will need to get rebased after ARROW-8311

@pitrou
Copy link
Member

pitrou commented Apr 9, 2020

Rebasing.

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

+1, will merge if CI green.

@pitrou
Copy link
Member

pitrou commented Apr 9, 2020

AppVeyor build in progress:
https://ci.appveyor.com/project/pitrou/arrow/builds/32069395

@wesm
Copy link
Member Author

wesm commented Apr 9, 2020

Thanks. This is going to cause some mayhem with ARROW-8311 though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants