Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1258,84 +1258,6 @@ THE SOFTWARE.

--------------------------------------------------------------------------------

3rdparty dependency rapidjson is statically linked in certain binary
distributions, like the python wheels. rapidjson and its dependencies have the
following licenses:

Tencent is pleased to support the open source community by making RapidJSON
available.

Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
All rights reserved.

If you have downloaded a copy of the RapidJSON binary from Tencent, please note
that the RapidJSON binary is licensed under the MIT License.
If you have downloaded a copy of the RapidJSON source code from Tencent, please
note that RapidJSON source code is licensed under the MIT License, except for
the third-party components listed below which are subject to different license
terms. Your integration of RapidJSON into your own projects may require
compliance with the MIT License, as well as the other licenses applicable to
the third-party components included within RapidJSON. To avoid the problematic
JSON license in your own projects, it's sufficient to exclude the
bin/jsonchecker/ directory, as it's the only code under the JSON license.
A copy of the MIT License is included in this file.

Other dependencies and licenses:

Open Source Software Licensed Under the BSD License:
--------------------------------------------------------------------

The msinttypes r29
Copyright (c) 2006-2013 Alexander Chemeris
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.

Terms of the MIT 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 in 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:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

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
AUTHORS 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 IN THE SOFTWARE.

--------------------------------------------------------------------------------

3rdparty dependency snappy is statically linked in certain binary
distributions, like the python wheels. snappy has the following license:

Expand Down
1 change: 0 additions & 1 deletion ci/conda_env_cpp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ nodejs>=16
orc<2.1.0
pkg-config
python
rapidjson
re2
simdjson
snappy
Expand Down
1 change: 0 additions & 1 deletion ci/docker/alpine-linux-3.22-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ RUN apk add \
py3-pip \
py3-numpy-dev \
python3-dev \
rapidjson-dev \
re2-dev \
rsync \
samurai \
Expand Down
1 change: 0 additions & 1 deletion ci/docker/debian-13-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ RUN apt-get update -y -q && \
python3-dev \
python3-pip \
python3-venv \
rapidjson-dev \
rsync \
rustc \
tzdata \
Expand Down
1 change: 0 additions & 1 deletion ci/docker/debian-experimental-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ RUN if [ -n "${gcc}" ]; then \
python3-dev \
python3-pip \
python3-venv \
rapidjson-dev \
rsync \
tzdata \
tzdata-legacy \
Expand Down
1 change: 0 additions & 1 deletion ci/docker/fedora-42-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ RUN dnf update -y && \
python \
python-devel \
python-pip \
rapidjson-devel \
re2-devel \
simdjson-devel \
snappy-devel \
Expand Down
1 change: 0 additions & 1 deletion ci/docker/ubuntu-22.04-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ RUN apt-get update -y -q && \
python3-rados \
python3-venv \
rados-objclass-dev \
rapidjson-dev \
rsync \
tzdata \
uuid-runtime \
Expand Down
1 change: 0 additions & 1 deletion ci/docker/ubuntu-24.04-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ RUN apt-get update -y -q && \
python3-rados \
python3-venv \
rados-objclass-dev \
rapidjson-dev \
rsync \
sudo \
tzdata \
Expand Down
1 change: 0 additions & 1 deletion ci/scripts/cpp_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ else
-DPARQUET_BUILD_EXECUTABLES="${PARQUET_BUILD_EXECUTABLES:-OFF}" \
-DPARQUET_REQUIRE_ENCRYPTION="${PARQUET_REQUIRE_ENCRYPTION:-ON}" \
-DProtobuf_SOURCE="${Protobuf_SOURCE:-}" \
-DRapidJSON_SOURCE="${RapidJSON_SOURCE:-}" \
-Dre2_SOURCE="${re2_SOURCE:-}" \
-Dsimdjson_SOURCE="${simdjson_SOURCE:-}" \
-DSnappy_SOURCE="${Snappy_SOURCE:-}" \
Expand Down
1 change: 0 additions & 1 deletion ci/scripts/msys2_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ case "${target}" in
packages+=("${MINGW_PACKAGE_PREFIX}-ninja")
packages+=("${MINGW_PACKAGE_PREFIX}-nlohmann-json")
packages+=("${MINGW_PACKAGE_PREFIX}-protobuf")
packages+=("${MINGW_PACKAGE_PREFIX}-rapidjson")
packages+=("${MINGW_PACKAGE_PREFIX}-re2")
packages+=("${MINGW_PACKAGE_PREFIX}-simdjson")
packages+=("${MINGW_PACKAGE_PREFIX}-snappy")
Expand Down
1 change: 0 additions & 1 deletion ci/scripts/r_revdepcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ apt install -y \
python3-pip \
python3-rados \
rados-objclass-dev \
rapidjson-dev \
tzdata \
wget

Expand Down
1 change: 0 additions & 1 deletion ci/vcpkg/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"json": {
"description": "JSON support",
"dependencies": [
"rapidjson",
"simdjson"
]
},
Expand Down
1 change: 0 additions & 1 deletion cpp/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ brew "openssl"
brew "pkgconf"
brew "protobuf"
brew "python"
brew "rapidjson"
brew "re2"
brew "snappy"
brew "thrift"
Expand Down
3 changes: 0 additions & 3 deletions cpp/build-support/sanitizer-disallowed-entries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@
# Seen error:
# thirdparty/gmock-1.7.0/include/gmock/gmock-spec-builders.h:1529:12: runtime error: member call on null pointer of type 'testing::internal::ActionResultHolder<void>'
fun:*testing*internal*InvokeWith*

# Workaround for RapidJSON https://github.com/Tencent/rapidjson/issues/1724
src:*/rapidjson/internal/*
2 changes: 1 addition & 1 deletion cpp/cmake_modules/DefineOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ takes precedence over ccache if a storage backend is configured" ON)

define_option(ARROW_JEMALLOC "Build the Arrow jemalloc-based allocator" OFF)

define_option(ARROW_JSON "Build Arrow with JSON support (requires RapidJSON)" OFF)
define_option(ARROW_JSON "Build Arrow with JSON support" OFF)

define_option(ARROW_MIMALLOC "Build the Arrow mimalloc-based allocator" ON)

Expand Down
97 changes: 0 additions & 97 deletions cpp/cmake_modules/FindRapidJSONAlt.cmake

This file was deleted.

55 changes: 0 additions & 55 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ set(ARROW_THIRDPARTY_DEPENDENCIES
orc
re2
Protobuf
RapidJSON
simdjson
Snappy
Substrait
Expand Down Expand Up @@ -209,8 +208,6 @@ macro(build_dependency DEPENDENCY_NAME)
build_orc()
elseif("${DEPENDENCY_NAME}" STREQUAL "Protobuf")
build_protobuf()
elseif("${DEPENDENCY_NAME}" STREQUAL "RapidJSON")
build_rapidjson()
elseif("${DEPENDENCY_NAME}" STREQUAL "simdjson")
build_simdjson()
elseif("${DEPENDENCY_NAME}" STREQUAL "re2")
Expand Down Expand Up @@ -413,10 +410,6 @@ if(ARROW_AZURE)
set(ARROW_WITH_AZURE_SDK ON)
endif()

if(ARROW_JSON)
set(ARROW_WITH_RAPIDJSON ON)
endif()

if(ARROW_JSON OR ARROW_FLIGHT_SQL_ODBC)
set(ARROW_WITH_SIMDJSON ON)
endif()
Expand Down Expand Up @@ -773,14 +766,6 @@ else()
"${THIRDPARTY_MIRROR_URL}/re2-${ARROW_RE2_BUILD_VERSION}.tar.gz")
endif()

if(DEFINED ENV{ARROW_RAPIDJSON_URL})
set(RAPIDJSON_SOURCE_URL "$ENV{ARROW_RAPIDJSON_URL}")
else()
set_urls(RAPIDJSON_SOURCE_URL
"https://github.com/miloyip/rapidjson/archive/${ARROW_RAPIDJSON_BUILD_VERSION}.tar.gz"
"${THIRDPARTY_MIRROR_URL}/rapidjson-${ARROW_RAPIDJSON_BUILD_VERSION}.tar.gz")
endif()

if(DEFINED ENV{ARROW_SIMDJSON_URL})
set(SIMDJSON_SOURCE_URL "$ENV{ARROW_SIMDJSON_URL}")
else()
Expand Down Expand Up @@ -2907,46 +2892,6 @@ if(ARROW_WITH_SIMDJSON)
endif()
endif()

function(build_rapidjson)
list(APPEND CMAKE_MESSAGE_INDENT "RapidJSON: ")
message(STATUS "Building from source")

fetchcontent_declare(rapidjson
${FC_DECLARE_COMMON_OPTIONS} OVERRIDE_FIND_PACKAGE
URL ${RAPIDJSON_SOURCE_URL}
URL_HASH "SHA256=${ARROW_RAPIDJSON_BUILD_SHA256_CHECKSUM}")
prepare_fetchcontent()
set(CCACHE_FOUND OFF)
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set(RAPIDJSON_BUILD_DOC OFF)
set(RAPIDJSON_BUILD_EXAMPLES OFF)
set(RAPIDJSON_BUILD_TESTS OFF)
fetchcontent_makeavailable(rapidjson)
if(CMAKE_VERSION VERSION_LESS 3.28)
set_property(DIRECTORY ${rapidjson_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL TRUE)
endif()

add_library(RapidJSON INTERFACE IMPORTED)
target_include_directories(RapidJSON INTERFACE "${rapidjson_SOURCE_DIR}/include")
add_dependencies(RapidJSON rapidjson)

set(RAPIDJSON_VENDORED
TRUE
PARENT_SCOPE)
list(POP_BACK CMAKE_MESSAGE_INDENT)
endfunction()

if(ARROW_WITH_RAPIDJSON)
set(ARROW_RAPIDJSON_REQUIRED_VERSION "1.1.0")
resolve_dependency(RapidJSON
HAVE_ALT
TRUE
REQUIRED_VERSION
${ARROW_RAPIDJSON_REQUIRED_VERSION}
IS_RUNTIME_DEPENDENCY
FALSE)
endif()

function(build_xsimd)
list(APPEND CMAKE_MESSAGE_INDENT "xsimd: ")
message(STATUS "Building xsimd from source")
Expand Down
1 change: 0 additions & 1 deletion cpp/examples/minimal_build/system_dependency.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ RUN apt-get update -y -q && \
libzstd-dev \
pkg-config \
protobuf-compiler \
rapidjson-dev \
zlib1g-dev && \
apt-get clean && rm -rf /var/lib/apt/lists*
Loading
Loading