-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-16721: [C++] Drop support for bundled Thrift < 0.13 #13292
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
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think our hiveserver adapter doesn't even build currently, do we want to bother fixing it?
|
There's some compatibility code lying around (look for PARQUET_THRIFT_USE_BOOST and FORCE_BOOST_SMART_PTR), we should probably remove it as well. |
+1 |
|
I've started a discussion for removing |
Good catch! |
I'll remove |
|
The R CI failures look related. |
|
I've fixed R failures but new R failures are happen. The new failures are also happen on master: https://github.com/apache/arrow/runs/6747296145?check_suite_focus=true It seems that duckdb is updated to 0.3.4 from 0.3.2. |
Yeah I noticed that too. We'll figure out something today. |
|
#13323 is merged; rebase should make this go away |
Our bundled Thrift is 0.16.0. Users can use other version but will not use 0.13 or earlier. This change also cleans FindThrift.cmake up. This change also fixes build errors with -DARROW_HIVESERVER2=ON. We may be able to remove cpp/src/arrow/dbi/hiveserver2/. It seems that nobody uses it.
|
Thanks! This is ready to merge. |
| set(ARROW_BOOST_REQUIRE_LIBRARY TRUE) | ||
| elseif(ARROW_GANDIVA | ||
| OR (ARROW_WITH_THRIFT AND THRIFT_REQUIRES_BOOST) | ||
| OR ARROW_WITH_THRIFT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So boost is always required by Thrift nevertheless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The condition was wrong. We needs Boost to use Thrift.
We need Thrift only when we use Parquet or arrow/dbi/hiveserver2/.
Parquet uses thrift/transport/TBufferTransports.h: https://github.com/apache/arrow/blob/master/cpp/src/parquet/thrift_internal.h#L43
thrift/transport/TBufferTransports.h uses Boost: https://github.com/apache/thrift/blob/master/lib/cpp/src/thrift/transport/TBufferTransports.h#L26
This is a follow-up of ARROW-16721/apache#13292.
This is a follow-up of ARROW-16721/#13292. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
…it.properties (#13578) Rename file that contains metadata about commit: From: git.properties To: gitarrowinfo.properties Main reason: git.properties is a generic name that could be use for third party libraries for a different purpose than inspect arrow metadata information (i.e: [SpringBoot](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#application-properties.core.spring.info.git.location) git.properties configuration). Current Arrow Java artifacts are using [git-commit-id-maven-plugin](https://github.com/git-commit-id/git-commit-id-maven-plugin) to generate a file `./git.properties` with commit metadata such as: ``` #Generated by Git-Commit-Id-Plugin #Wed Jun 08 11:43:58 UTC 2022 git.build.user.email= git.build.host=Mac-1654686060479.local git.dirty=true git.remote.origin.url=https\://github.com/apache/arrow git.closest.tag.name=apache-arrow-8.0.0 git.commit.id.describe-short=apache-arrow-3.0.0-3327-dirty git.commit.user.email=kou@clear-code.com git.commit.time=08.06.2022 @ 07\:51\:03 UTC git.commit.message.full=ARROW-16785\: [Packaging][Linux] Add FindThrift.cmake (\#13337)\n\nThis is a follow-up of ARROW-16721/\#13292.\n\nAuthored-by\: Sutou Kouhei <kou@clear-code.com>\nSigned-off-by\: KrisztiSz<szucs.krisztian@gmail.com> git.build.version=9.0.0.dev191 git.commit.message.short=ARROW-16785\: [Packaging][Linux] Add FindThrift.cmake (\#13337) git.commit.id.abbrev=5fe3a60 git.branch=5fe3a606f16b183cf706ae8d9a4adaff593c18a1 git.build.user.name= git.closest.tag.commit.count=11694 git.commit.id.describe=apache-arrow-3.0.0-3327-g5fe3a60-dirty git.commit.id=5fe3a606f16b183cf706ae8d9a4adaff593c18a1 git.tags= git.build.time=08.06.2022 @ 11\:43\:58 UTC git.commit.user.name=Sutou Kouhei ``` Artifacts affected: ``` ./plasma/target/arrow-plasma-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./tools/target/arrow-tools-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./tools/target/arrow-tools-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-unsafe/target/arrow-memory-unsafe-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-netty/target/arrow-memory-netty-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-core/target/arrow-memory-core-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./dataset/target/arrow-dataset-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-sql/target/flight-sql-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-integration-tests/target/flight-integration-tests-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./flight/flight-integration-tests/target/flight-integration-tests-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-grpc/target/flight-grpc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-shaded.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-shaded-ext.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/jdbc/target/arrow-jdbc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/avro/target/arrow-avro-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/orc/target/arrow-orc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./algorithm/target/arrow-algorithm-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./compression/target/arrow-compression-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./format/target/arrow-format-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./gandiva/target/arrow-gandiva-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./performance/target/benchmarks.jar,gitarrowinfo.properties ./performance/target/arrow-performance-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./vector/target/arrow-vector-9.0.0-SNAPSHOT-shade-format-flatbuffers.jar,gitarrowinfo.properties ./vector/target/arrow-vector-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./c/target/arrow-c-data-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ``` Authored-by: david dali susanibar arce <davi.sarces@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
…it.properties (apache#13578) Rename file that contains metadata about commit: From: git.properties To: gitarrowinfo.properties Main reason: git.properties is a generic name that could be use for third party libraries for a different purpose than inspect arrow metadata information (i.e: [SpringBoot](https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#application-properties.core.spring.info.git.location) git.properties configuration). Current Arrow Java artifacts are using [git-commit-id-maven-plugin](https://github.com/git-commit-id/git-commit-id-maven-plugin) to generate a file `./git.properties` with commit metadata such as: ``` #Generated by Git-Commit-Id-Plugin #Wed Jun 08 11:43:58 UTC 2022 git.build.user.email= git.build.host=Mac-1654686060479.local git.dirty=true git.remote.origin.url=https\://github.com/apache/arrow git.closest.tag.name=apache-arrow-8.0.0 git.commit.id.describe-short=apache-arrow-3.0.0-3327-dirty git.commit.user.email=kou@clear-code.com git.commit.time=08.06.2022 @ 07\:51\:03 UTC git.commit.message.full=ARROW-16785\: [Packaging][Linux] Add FindThrift.cmake (\apache#13337)\n\nThis is a follow-up of ARROW-16721/\apache#13292.\n\nAuthored-by\: Sutou Kouhei <kou@clear-code.com>\nSigned-off-by\: KrisztiSz<szucs.krisztian@gmail.com> git.build.version=9.0.0.dev191 git.commit.message.short=ARROW-16785\: [Packaging][Linux] Add FindThrift.cmake (\apache#13337) git.commit.id.abbrev=5fe3a60 git.branch=5fe3a606f16b183cf706ae8d9a4adaff593c18a1 git.build.user.name= git.closest.tag.commit.count=11694 git.commit.id.describe=apache-arrow-3.0.0-3327-g5fe3a60-dirty git.commit.id=5fe3a606f16b183cf706ae8d9a4adaff593c18a1 git.tags= git.build.time=08.06.2022 @ 11\:43\:58 UTC git.commit.user.name=Sutou Kouhei ``` Artifacts affected: ``` ./plasma/target/arrow-plasma-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./tools/target/arrow-tools-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./tools/target/arrow-tools-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-unsafe/target/arrow-memory-unsafe-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-netty/target/arrow-memory-netty-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./memory/memory-core/target/arrow-memory-core-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./dataset/target/arrow-dataset-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-sql/target/flight-sql-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-integration-tests/target/flight-integration-tests-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./flight/flight-integration-tests/target/flight-integration-tests-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-grpc/target/flight-grpc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-jar-with-dependencies.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-shaded.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT-shaded-ext.jar,gitarrowinfo.properties ./flight/flight-core/target/flight-core-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/jdbc/target/arrow-jdbc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/avro/target/arrow-avro-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./adapter/orc/target/arrow-orc-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./algorithm/target/arrow-algorithm-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./compression/target/arrow-compression-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./format/target/arrow-format-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./gandiva/target/arrow-gandiva-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./performance/target/benchmarks.jar,gitarrowinfo.properties ./performance/target/arrow-performance-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./vector/target/arrow-vector-9.0.0-SNAPSHOT-shade-format-flatbuffers.jar,gitarrowinfo.properties ./vector/target/arrow-vector-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ./c/target/arrow-c-data-9.0.0-SNAPSHOT.jar,gitarrowinfo.properties ``` Authored-by: david dali susanibar arce <davi.sarces@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Our bundled Thrift is 0.16.0. Users can use other version but will not
use 0.13 or earlier.
This change also cleans FindThrift.cmake up.
This change also fixes build errors with -DARROW_HIVESERVER2=ON. We
may be able to remove cpp/src/arrow/dbi/hiveserver2/. It seems that
nobody uses it.