From 7d2134daded74fad4f403de6d90e6f571828e06a Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Tue, 27 May 2025 21:26:11 +0800 Subject: [PATCH] branch-2.1: [fix](arrow) Rollback Arrow version 19.0.1 -> 17.0.0, Fix MacOS compile error and decimal type error when convert to Parquet (#51291) pick #51217 ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test - [ ] Regression test - [ ] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason - Behavior changed: - [ ] No. - [ ] Yes. - Does this need documentation? - [ ] No. - [ ] Yes. ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label --- .../service/arrowflight/DorisFlightSqlProducer.java | 2 +- thirdparty/vars.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java index 063bc3d46c..a98e1e0965 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/DorisFlightSqlProducer.java @@ -112,7 +112,7 @@ public class DorisFlightSqlProducer implements FlightSqlProducer, AutoCloseable this.flightSessionsManager = flightSessionsManager; sqlInfoBuilder = new SqlInfoBuilder(); sqlInfoBuilder.withFlightSqlServerName("DorisFE").withFlightSqlServerVersion("1.0") - .withFlightSqlServerArrowVersion("18.2.0").withFlightSqlServerReadOnly(false) + .withFlightSqlServerArrowVersion("17.0.0").withFlightSqlServerReadOnly(false) .withSqlIdentifierQuoteChar("`").withSqlDdlCatalog(true).withSqlDdlSchema(false).withSqlDdlTable(false) .withSqlIdentifierCase(SqlSupportedCaseSensitivity.SQL_CASE_SENSITIVITY_CASE_INSENSITIVE) .withSqlQuotedIdentifierCase(SqlSupportedCaseSensitivity.SQL_CASE_SENSITIVITY_CASE_INSENSITIVE); diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh index a4b5c22655..7bc66c4677 100644 --- a/thirdparty/vars.sh +++ b/thirdparty/vars.sh @@ -253,10 +253,12 @@ GRPC_SOURCE=grpc-1.54.3 GRPC_MD5SUM="af00a2edeae0f02bb25917cc3473b7de" # arrow -ARROW_DOWNLOAD="https://github.com/apache/arrow/archive/refs/tags/apache-arrow-19.0.1.tar.gz" -ARROW_NAME="apache-arrow-19.0.1.tar.gz" -ARROW_SOURCE="arrow-apache-arrow-19.0.1" -ARROW_MD5SUM="8c5091da0f8fb41a47d7f4dad7b712df" +# Arrow 19.0.1 will MacOS compile error and decimal type error when convert to Parquet. +# https://github.com/apache/doris/pull/51217 +ARROW_DOWNLOAD="https://github.com/apache/arrow/archive/refs/tags/apache-arrow-17.0.0.tar.gz" +ARROW_NAME="apache-arrow-17.0.0.tar.gz" +ARROW_SOURCE="arrow-apache-arrow-17.0.0" +ARROW_MD5SUM="ba18bf83e2164abd34b9ac4cb164f0f0" # Abseil ABSEIL_DOWNLOAD="https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz"