Apache DataFusion SQL Query Engine
ARROW-9004: [C++][Gandiva] Support building with LLVM 10
Sutou Kouhei9d0ed138ed39
diff --git a/.env b/.envindex 87a11ef2e8..62f5ae52b7 100644--- a/.env+++ b/.env@@ -24,9 +24,9 @@ ARCH=amd64CUDA=9.1DEBIAN=10UBUNTU=18.04-FEDORA=30+FEDORA=32PYTHON=3.6-LLVM=8+LLVM=10CLANG_TOOLS=8RUST=nightly-2020-04-22GO=1.12diff --git a/.github/workflows/cpp_cron.yml b/.github/workflows/cpp_cron.ymlindex e227adf266..d37ecb6039 100644--- a/.github/workflows/cpp_cron.yml+++ b/.github/workflows/cpp_cron.yml@@ -47,7 +47,7 @@ jobs:matrix:name:- debian-10-cpp- - fedora-30-cpp+ - fedora-32-cpp- ubuntu-16.04-cpp- ubuntu-18.04-cpp- ubuntu-18.04-cpp-cmake32@@ -56,10 +56,10 @@ jobs:image: debian-cpptitle: AMD64 Debian 10 C++debian: 10- - name: fedora-30-cpp+ - name: fedora-32-cppimage: fedora-cpp- title: AMD64 Fedora 30 C++- fedora: 30+ title: AMD64 Fedora 32 C+++ fedora: 32- name: ubuntu-16.04-cppimage: ubuntu-cpptitle: AMD64 Ubuntu 16.04 C++@@ -75,7 +75,7 @@ jobs:env:# the defaults here should correspond to the values in .envDEBIAN: ${{ matrix.debian || 10 }}- FEDORA: ${{ matrix.fedora || 30 }}+ FEDORA: ${{ matrix.fedora || 32 }}UBUNTU: ${{ matrix.ubuntu || 18.04 }}steps:- name: Checkout Arrowdiff --git a/.github/workflows/python_cron.yml b/.github/workflows/python_cron.ymlindex 305dbce0d8..133a73b59b 100644--- a/.github/workflows/python_cron.yml+++ b/.github/workflows/python_cron.yml@@ -45,7 +45,7 @@ jobs:matrix:name:- debian-10-python-3- - fedora-30-python-3+ - fedora-32-python-3- ubuntu-18.04-python-3- conda-python-3.7-dask-latest- conda-python-3.7-turbodbc-latest@@ -59,11 +59,11 @@ jobs:image: debian-pythontitle: AMD64 Debian 10 Python 3debian: 10- - name: fedora-30-python-3- cache: fedora-30-python-3+ - name: fedora-32-python-3+ cache: fedora-32-python-3image: fedora-python- title: AMD64 Fedora 30 Python 3- fedora: 30+ title: AMD64 Fedora 32 Python 3+ fedora: 32- name: ubuntu-18.04-python-3cache: ubuntu-18.04-python-3image: ubuntu-python@@ -102,7 +102,7 @@ jobs:env:# the defaults here should correspond to the values in .envDEBIAN: ${{ matrix.debian || 10 }}- FEDORA: ${{ matrix.fedora || 30 }}+ FEDORA: ${{ matrix.fedora || 32 }}UBUNTU: ${{ matrix.ubuntu || 18.04 }}PYTHON: ${{ matrix.python || 3.7 }}HDFS: ${{ matrix.hdfs || '2.9.2' }}diff --git a/LICENSE.txt b/LICENSE.txtindex 40d9ec7a91..13faeb2ee8 100644--- a/LICENSE.txt+++ b/LICENSE.txt@@ -1074,73 +1074,239 @@ Additionally some sections of source code have been derived from sources in LLVMand have been clearly labeled as such. LLVM has the following license:==============================================================================-LLVM Release License+The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:==============================================================================-University of Illinois/NCSA-Open Source License-Copyright (c) 2003-2018 University of Illinois at Urbana-Champaign.-All rights reserved.+ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/-Developed by:+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION- LLVM Team+ 1. Definitions.- University of Illinois at Urbana-Champaign+ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.- http://llvm.org+ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.-Permission is hereby granted, free of charge, to any person obtaining a copy of-this software and associated documentation files (the "Software"), to deal with-the Software without restriction, including without limitation the rights to-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies-of the Software, and to permit persons to whom the Software is furnished to do-so, subject to the following conditions:+ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.- * Redistributions of source code must retain the above copyright notice,- this list of conditions and the following disclaimers.+ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.- * Redistributions in binary form must reproduce the above copyright notice,- this list of conditions and the following disclaimers in the- documentation and/or other materials provided with the distribution.+ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.- * Neither the names of the LLVM Team, University of Illinois at- Urbana-Champaign, nor the names of its contributors may be used to- endorse or promote products derived from this Software without specific- prior written permission.+ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE-CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE-SOFTWARE.+ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).-==============================================================================-Copyrights and Licenses for Third Party Software Distributed with LLVM:-==============================================================================-The LLVM software contains code written by third parties. Such software will-have its own individual LICENSE.TXT file in the directory in which it appears.-This file will describe the copyrights, license, and restrictions which apply-to that code.--The disclaimer of warranty in the University of Illinois Open Source License-applies to all code in the LLVM Distribution, and nothing in any of the-other licenses gives permission to use the names of the LLVM Team or the-University of Illinois to endorse or promote products derived from this-Software.+ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.-The following pieces of software have additional or alternate copyrights,-licenses, and/or restrictions:+ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.-Program Directory-------- ----------Google Test llvm/utils/unittest/googletest-OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex}-pyyaml tests llvm/test/YAMLParser/{*.data, LICENSE.TXT}-ARM contributions llvm/lib/Target/ARM/LICENSE.TXT-md5 contributions llvm/lib/Support/MD5.cpp llvm/include/llvm/Support/MD5.h+ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright [yyyy] [name of copyright owner]++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.+++---- LLVM Exceptions to the Apache 2.0 License ----++As an exception, if, as a result of your compiling your source code, portions+of this Software are embedded into an Object form of such source code, you+may redistribute such embedded portions in such Object form without complying+with the conditions of Sections 4(a), 4(b) and 4(d) of the License.++In addition, if you combine or link compiled forms of this Software with+software that is licensed under the GPLv2 ("Combined Software") and if a+court of competent jurisdiction determines that the patent provision (Section+3), the indemnity provision (Section 9) or other Section of the License+conflicts with the conditions of the GPLv2, you may retroactively and+prospectively choose to deem waived or otherwise exclude such Section(s) of+the License, but only in their entirety and only with respect to the Combined+Software.++==============================================================================+Software from third parties included in the LLVM Project:+==============================================================================+The LLVM Project contains third party software which is under different license+terms. All such code will be identified clearly using at least one of two+mechanisms:+1) It will be in a separate directory tree with its own `LICENSE.txt` or+ `LICENSE` file at the top containing the specific license and restrictions+ which apply to that software, or+2) It will contain specific license and restriction terms at the top of every+ file.--------------------------------------------------------------------------------diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.batindex 6ae431f89b..6556dd4bd0 100644--- a/ci/appveyor-cpp-setup.bat+++ b/ci/appveyor-cpp-setup.bat@@ -50,7 +50,7 @@ set CONDA_PACKAGES=if "%ARROW_BUILD_GANDIVA%" == "ON" (@rem Install llvmdev in the toolchain if building gandiva.dll- set CONDA_PACKAGES=%CONDA_PACKAGES% --file=ci\conda_env_gandiva.yml+ set CONDA_PACKAGES=%CONDA_PACKAGES% --file=ci\conda_env_gandiva_win.yml)if "%JOB%" == "Toolchain" (@rem Install pre-built "toolchain" packages for faster buildsdiff --git a/ci/conda_env_gandiva.yml b/ci/conda_env_gandiva.ymlindex 27dff0bbad..fa15d77df8 100644--- a/ci/conda_env_gandiva.yml+++ b/ci/conda_env_gandiva.yml@@ -15,6 +15,6 @@# specific language governing permissions and limitations# under the License.-clangdev=8-llvmdev=8+clangdev=10+llvmdev=10re2diff --git a/ci/conda_env_gandiva_win.yml b/ci/conda_env_gandiva_win.ymlnew file mode 100644index 0000000000..49b3b8c1de--- /dev/null+++ b/ci/conda_env_gandiva_win.yml@@ -0,0 +1,21 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you under the Apache License, Version 2.0 (the+# "License"); you may not use this file except in compliance+# with the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing,+# software distributed under the License is distributed on an+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+# KIND, either express or implied. See the License for the+# specific language governing permissions and limitations+# under the License.++# llvmdev=9 or later require Visual Studio 2017+clangdev=8+llvmdev=8+re2diff --git a/ci/docker/debian-10-cpp.dockerfile b/ci/docker/debian-10-cpp.dockerfileindex 6ca9467b91..9a7935d274 100644--- a/ci/docker/debian-10-cpp.dockerfile+++ b/ci/docker/debian-10-cpp.dockerfile@@ -26,6 +26,15 @@ RUN \ARG llvmRUN apt-get update -y -q && \+ apt-get install -y -q --no-install-recommends \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-${llvm} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ apt-get update -y -q && \apt-get install -y -q --no-install-recommends \autoconf \ca-certificates \@@ -58,8 +67,7 @@ RUN apt-get update -y -q && \protobuf-compiler \rapidjson-dev \tzdata \- zlib1g-dev \- wget && \+ zlib1g-dev && \apt-get clean && \rm -rf /var/lib/apt/lists/*diff --git a/ci/docker/fedora-30-cpp.dockerfile b/ci/docker/fedora-32-cpp.dockerfilesimilarity index 81%rename from ci/docker/fedora-30-cpp.dockerfilerename to ci/docker/fedora-32-cpp.dockerfileindex a55de069cb..766e6b343d 100644--- a/ci/docker/fedora-30-cpp.dockerfile+++ b/ci/docker/fedora-32-cpp.dockerfile@@ -16,7 +16,7 @@# under the License.ARG arch-FROM ${arch}/fedora:30+FROM ${arch}/fedora:32# install dependenciesRUN dnf update -y && \@@ -25,19 +25,21 @@ RUN dnf update -y && \boost-devel \brotli-devel \bzip2-devel \+ c-ares-devel \ccache \clang-devel \cmake \flatbuffers-devel \- java-openjdk-devel \- java-openjdk-headless \+ java-1.8.0-openjdk-devel \+ java-1.8.0-openjdk-headless \gcc \gcc-c++ \glog-devel \gflags-devel \- gtest-devel \gmock-devel \google-benchmark-devel \+ protobuf-devel \+ gtest-devel \git \libzstd-devel \llvm-devel \@@ -50,17 +52,17 @@ RUN dnf update -y && \rapidjson-devel \re2-devel \snappy-devel \+ thrift-devel \+ which \zlib-devel-# * c-ares cmake config is not installed on Fedora but gRPC needs it-# when built via ExternalProject: https://bugzilla.redhat.com/show_bug.cgi?id=1687844-# * protobuf libraries in Fedora 30 are too old for gRPC+# * gRPC 1.26 in Fedora 32 may have a problem. arrow-flight-test is stuck.ENV ARROW_BUILD_TESTS=ON \ARROW_DEPENDENCY_SOURCE=SYSTEM \ARROW_DATASET=ON \ARROW_FLIGHT=ON \ARROW_GANDIVA_JAVA=ON \- ARROW_GANDIVA=OFF \+ ARROW_GANDIVA=ON \ARROW_HOME=/usr/local \ARROW_ORC=ON \ARROW_PARQUET=ON \@@ -71,13 +73,10 @@ ENV ARROW_BUILD_TESTS=ON \ARROW_WITH_SNAPPY=ON \ARROW_WITH_ZLIB=ON \ARROW_WITH_ZSTD=ON \- cares_SOURCE=BUNDLED \CC=gcc \CXX=g++ \gRPC_SOURCE=BUNDLED \ORC_SOURCE=BUNDLED \PARQUET_BUILD_EXECUTABLES=ON \PARQUET_BUILD_EXAMPLES=ON \- PATH=/usr/lib/ccache/:$PATH \- Protobuf_SOURCE=BUNDLED \- Thrift_SOURCE=BUNDLED+ PATH=/usr/lib/ccache/:$PATHdiff --git a/ci/docker/ubuntu-16.04-cpp.dockerfile b/ci/docker/ubuntu-16.04-cpp.dockerfileindex c6ded66353..5ab0a88dd9 100644--- a/ci/docker/ubuntu-16.04-cpp.dockerfile+++ b/ci/docker/ubuntu-16.04-cpp.dockerfile@@ -22,7 +22,10 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]ENV DEBIAN_FRONTEND noninteractive-ARG llvm+# LLVM 10 or later requires C++ 14 but g++-5's C++ 14 support is limited.+# cpp/src/arrow/vendored/datetime/date.h doesn't work.+# ARG llvm+ENV llvm=8RUN apt-get update -y -q && \apt-get install -y -q --no-install-recommends \apt-transport-https \diff --git a/ci/docker/ubuntu-18.04-cpp.dockerfile b/ci/docker/ubuntu-18.04-cpp.dockerfileindex c3a0f71741..21d15ea09e 100644--- a/ci/docker/ubuntu-18.04-cpp.dockerfile+++ b/ci/docker/ubuntu-18.04-cpp.dockerfile@@ -31,6 +31,19 @@ ENV DEBIAN_FRONTEND=noninteractiveARG clang_toolsARG llvmRUN apt-get update -y -q && \+ apt-get install -y -q --no-install-recommends \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-${llvm} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ if [ "${clang_tools}" != "${llvm}" -a "${clang_tools}" -ge 10 ]; then \+ echo "deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-${clang_tools} main" > \+ /etc/apt/sources.list.d/clang-tools.list; \+ fi && \+ apt-get update -y -q && \apt-get install -y -q --no-install-recommends \clang-${clang_tools} \clang-${llvm} \diff --git a/ci/scripts/cpp_test.sh b/ci/scripts/cpp_test.shindex 21284eef0f..533c2cd5dc 100755--- a/ci/scripts/cpp_test.sh+++ b/ci/scripts/cpp_test.sh@@ -46,7 +46,14 @@ esacpushd ${build_dir}-ctest -L unittest --output-on-failure -j${n_jobs}+if ! which python > /dev/null 2>&1; then+ export PYTHON=python3+fi+ctest \+ --label-regex unittest \+ --output-on-failure \+ --parallel ${n_jobs} \+ --timeout 300if [ "${ARROW_FUZZING}" == "ON" ]; then# Fuzzing regression testsdiff --git a/ci/scripts/install_iwyu.sh b/ci/scripts/install_iwyu.shindex a2869f8112..3cd2cbc95f 100755--- a/ci/scripts/install_iwyu.sh+++ b/ci/scripts/install_iwyu.sh@@ -20,9 +20,14 @@ set -eusource_dir=${1:-/tmp/iwyu}install_prefix=${2:-/usr/local}-clang_tools_version=${3:-7}+clang_tools_version=${3:-8}-git clone --single-branch --branch "clang_${clang_tools_version}.0" \+iwyu_branch_name="clang_${clang_tools_version}"+if [ ${clang_tools_version} -lt 10 ]; then+ iwyu_branch_name="${iwyu_branch_name}.0"+fi++git clone --single-branch --branch ${iwyu_branch_name} \https://github.com/include-what-you-use/include-what-you-use.git ${source_dir}mkdir -p ${source_dir}/builddiff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yamlindex 30ee187f85..3a63c219e6 100644--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml@@ -29,8 +29,11 @@ requirements:- glog- grpc-cpp- libprotobuf- - clangdev 8.*- - llvmdev 8.*+ - clangdev 10.* # [not win]+ - llvmdev 10.* # [not win]+ # llvmdev 9.* or later require Visual Studio 2017+ - clangdev 8.* # [win]+ - llvmdev 8.* # [win]- lz4-c- numpy 1.16.*- orc # [unix]diff --git a/dev/tasks/gandiva-jars/travis.osx.yml b/dev/tasks/gandiva-jars/travis.osx.ymlindex f1e9cfddac..8d7662eaa5 100644--- a/dev/tasks/gandiva-jars/travis.osx.yml+++ b/dev/tasks/gandiva-jars/travis.osx.yml@@ -39,7 +39,7 @@ before_script:- if [ $CROSSBOW_USE_COMMIT_ID = true ]; then git -C arrow checkout {{ arrow.head }}; else git -C arrow checkout FETCH_HEAD; fi- export TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR/arrow- brew update- - brew install bison flex llvm@8+ - brew install bison flex llvm- brew tap adoptopenjdk/openjdk- brew cask install adoptopenjdk8- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Homediff --git a/dev/tasks/linux-packages/apache-arrow-archive-keyring/Rakefile b/dev/tasks/linux-packages/apache-arrow-archive-keyring/Rakefileindex 9c1ac97e02..0f91e0a5eb 100644--- a/dev/tasks/linux-packages/apache-arrow-archive-keyring/Rakefile+++ b/dev/tasks/linux-packages/apache-arrow-archive-keyring/Rakefile@@ -36,7 +36,7 @@ class ApacheArrowArchiveKeyringPackageTask < PackageTaskfile @archive_name dorm_rf(@archive_base_name)mkdir(@archive_base_name)- download("https://dist.apache.org/repos/dist/dev/arrow/KEYS",+ download("https://downloads.apache.org/arrow/KEYS","#{@archive_base_name}/KEYS")sh("tar", "czf", @archive_name, @archive_base_name)rm_rf(@archive_base_name)diff --git a/dev/tasks/linux-packages/apache-arrow-release/Rakefile b/dev/tasks/linux-packages/apache-arrow-release/Rakefileindex 8292cfc7ce..4a341c6f10 100644--- a/dev/tasks/linux-packages/apache-arrow-release/Rakefile+++ b/dev/tasks/linux-packages/apache-arrow-release/Rakefile@@ -40,7 +40,7 @@ class ApacheArrowReleasePackageTask < PackageTaskfile @archive_name => [repo_path] dorm_rf(@archive_base_name)mkdir(@archive_base_name)- download("https://dist.apache.org/repos/dist/dev/arrow/KEYS",+ download("https://downloads.apache.org/arrow/KEYS","#{@archive_base_name}/KEYS")cp(repo_path, @archive_base_name)sh("tar", "czf", @archive_name, @archive_base_name)diff --git a/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfileindex 12ef7f898c..7acff38cbb 100644--- a/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile+++ b/dev/tasks/linux-packages/apache-arrow/apt/debian-buster/Dockerfile@@ -39,6 +39,15 @@ ARG LLVMRUN \quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \apt update ${quiet} && \+ apt install -y -V ${quiet} \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-${LLVM} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ apt update ${quiet} && \apt install -y -V ${quiet} \build-essential \cmake \diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfileindex dcab1624c9..da52efc0f3 100644--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-bionic/Dockerfile@@ -33,6 +33,15 @@ ARG LLVMRUN \quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \apt update ${quiet} && \+ apt install -y -V ${quiet} \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-${LLVM} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ apt update ${quiet} && \apt install -y -V ${quiet} \build-essential \cmake \diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfileindex bbff8e6fb4..05ee1fad90 100644--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-eoan/Dockerfile@@ -33,6 +33,15 @@ ARG LLVMRUN \quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \apt update ${quiet} && \+ apt install -y -V ${quiet} \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/eoan/ llvm-toolchain-eoan-${LLVM} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ apt update ${quiet} && \apt install -y -V ${quiet} \build-essential \cmake \diff --git a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfileindex 61b22d5b12..2e09b7053a 100644--- a/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile+++ b/dev/tasks/linux-packages/apache-arrow/apt/ubuntu-xenial/Dockerfile@@ -29,10 +29,22 @@ RUN \/etc/apt/apt.conf.d/disable-install-recommendsARG DEBUG-ARG LLVM+# LLVM 10 or later requires C++ 14 but g++-5's C++ 14 support is limited.+# cpp/src/arrow/vendored/datetime/date.h doesn't work.+# ARG LLVM+ENV LLVM=8RUN \quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \apt update ${quiet} && \+ apt install -y -V ${quiet} \+ apt-transport-https \+ ca-certificates \+ gnupg \+ wget && \+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \+ echo "deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-${LLVM} main" > \+ /etc/apt/sources.list.d/llvm.list && \+ apt update ${quiet} && \apt install -y -V ${quiet} \autoconf-archive \build-essential \diff --git a/dev/tasks/python-wheels/azure.linux.yml b/dev/tasks/python-wheels/azure.linux.ymlindex 59b2767f6b..7460fb228a 100644--- a/dev/tasks/python-wheels/azure.linux.yml+++ b/dev/tasks/python-wheels/azure.linux.yml@@ -34,20 +34,22 @@ jobs:git -C arrow submodule update --init --recursivedisplayName: Clone arrow+ - script: pip install -e arrow/dev/archery[docker]+ displayName: Setup Archery+- script: |set -ex- docker -v- docker-compose -vcd arrowBUILD_IMAGE=centos-python-{{ wheel_tag }}- docker-compose pull --ignore-pull-failures $BUILD_IMAGE- # TODO(kou): Uncomment this when we resolve "ADD never use cache" problem.- # docker-compose build $BUILD_IMAGE- docker-compose run \+ archery docker run \-e SETUPTOOLS_SCM_PRETEND_VERSION="{{ arrow.no_rc_version }}" \-e PYTHON_VERSION="{{ python_version }}" \-e UNICODE_WIDTH="{{ unicode_width }}" \- $BUILD_IMAGE+ ${BUILD_IMAGE}+ archery docker push ${BUILD_IMAGE} || :+ env:+ DOCKER_BUILDKIT: 0+ COMPOSE_DOCKER_CLI_BUILD: 1displayName: Build wheel# auditwheel does always exit with 0 so it is mostly for debuggingdiff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex f8f5b02044..7c7a78a9d8 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -1519,12 +1519,12 @@ tasks:UBUNTU: 18.04run: ubuntu-cpp- test-fedora-30-cpp:+ test-fedora-32-cpp:ci: circletemplate: docker-tests/circle.linux.ymlparams:env:- FEDORA: 30+ FEDORA: 32run: fedora-cpptest-ubuntu-18.04-cpp-release:@@ -1609,12 +1609,12 @@ tasks:UBUNTU: 18.04run: ubuntu-python- test-fedora-30-python-3:+ test-fedora-32-python-3:ci: azuretemplate: docker-tests/azure.linux.ymlparams:env:- FEDORA: 30+ FEDORA: 32run: fedora-pythontest-r-linux-as-cran:diff --git a/docker-compose.yml b/docker-compose.ymlindex 37ca4c4545..f90a1a9325 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -319,7 +319,7 @@ services:# docker-compose run --rm fedora-cpp# Parameters:# ARCH: amd64, arm64v8, ...- # FEDORA: 30+ # FEDORA: 32image: ${REPO}:${ARCH}-fedora-${FEDORA}-cppbuild:context: .@@ -558,7 +558,7 @@ services:# docker-compose run --rm fedora-python# Parameters:# ARCH: amd64, arm64v8, ...- # FEDORA: 30+ # FEDORA: 32image: ${REPO}:${ARCH}-fedora-${FEDORA}-python-3build:context: .