Skip to content

Commit 9433ea8

Browse files
author
Rafał Hibner
committed
Merge branch 'pivotLongerScalarFeatures' into combined2
2 parents 91ad54b + b4c6aaa commit 9433ea8

File tree

278 files changed

+6728
-2277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+6728
-2277
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ repos:
331331
?^ci/scripts/integration_arrow_build\.sh$|
332332
?^ci/scripts/integration_arrow\.sh$|
333333
?^ci/scripts/integration_dask\.sh$|
334+
?^ci/scripts/integration_hdfs\.sh$|
334335
?^ci/scripts/integration_spark\.sh$|
335336
?^ci/scripts/matlab_build\.sh$|
336337
?^ci/scripts/msys2_system_clean\.sh$|

c_glib/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ project(
3434
# * 22.04: 0.61.2
3535
# * 24.04: 1.3.2
3636
meson_version: '>=0.61.2',
37-
version: '21.0.0-SNAPSHOT',
37+
version: '22.0.0-SNAPSHOT',
3838
)
3939

4040
version = meson.project_version()

c_glib/tool/generate-version-header.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def generate_availability_macros(library: str) -> str:
140140

141141

142142
ALL_VERSIONS = [
143+
(22, 0),
143144
(21, 0),
144145
(20, 0),
145146
(19, 0),

c_glib/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arrow-glib",
3-
"version-string": "21.0.0-SNAPSHOT",
3+
"version-string": "22.0.0-SNAPSHOT",
44
"$comment:dependencies": "We can enable gobject-introspection again once it's updated",
55
"dependencies": [
66
"glib",

ci/scripts/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
_realname=arrow
1919
pkgbase=mingw-w64-${_realname}
2020
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
21-
pkgver=20.0.0.9000
21+
pkgver=21.0.0.9000
2222
pkgrel=8000
2323
pkgdesc="Apache Arrow is a cross-language development platform for in-memory data (mingw-w64)"
2424
arch=("any")

ci/scripts/integration_hdfs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919

2020
set -e
2121

22+
# shellcheck disable=SC2034
2223
source_dir=${1}/cpp
2324
build_dir=${2}/cpp
2425

25-
export CLASSPATH=$($HADOOP_HOME/bin/hadoop classpath --glob)
26+
HADOOP_CLASSPATH=$("$HADOOP_HOME/bin/hadoop" classpath --glob)
27+
export CLASSPATH="${HADOOP_CLASSPATH}"
2628
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
2729
export LIBHDFS3_CONF=$HADOOP_CONF_DIR/hdfs-site.xml
2830
export ARROW_LIBHDFS3_DIR=$CONDA_PREFIX/lib
@@ -42,7 +44,7 @@ function use_libhdfs_dir() {
4244

4345
# execute cpp tests
4446
export ARROW_HDFS_TEST_LIBHDFS_REQUIRE=ON
45-
pushd ${build_dir}
47+
pushd "${build_dir}"
4648

4749
debug/arrow-io-hdfs-test
4850
debug/arrow-hdfs-test

cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if(POLICY CMP0170)
9696
cmake_policy(SET CMP0170 NEW)
9797
endif()
9898

99-
set(ARROW_VERSION "21.0.0-SNAPSHOT")
99+
set(ARROW_VERSION "22.0.0-SNAPSHOT")
100100

101101
string(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" ARROW_BASE_VERSION "${ARROW_VERSION}")
102102

cpp/cmake_modules/BuildUtils.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ function(ADD_ARROW_LIB LIB_NAME)
265265
if(ARG_DEFINITIONS)
266266
target_compile_definitions(${LIB_NAME}_objlib PRIVATE ${ARG_DEFINITIONS})
267267
endif()
268+
target_compile_options(${LIB_NAME}_objlib PRIVATE ${ARROW_LIBRARIES_ONLY_CXX_FLAGS})
268269
set(LIB_DEPS $<TARGET_OBJECTS:${LIB_NAME}_objlib>)
269270
set(EXTRA_DEPS)
270271

@@ -326,6 +327,7 @@ function(ADD_ARROW_LIB LIB_NAME)
326327
if(ARG_DEFINITIONS)
327328
target_compile_definitions(${LIB_NAME}_shared PRIVATE ${ARG_DEFINITIONS})
328329
endif()
330+
target_compile_options(${LIB_NAME}_shared PRIVATE ${ARROW_LIBRARIES_ONLY_CXX_FLAGS})
329331

330332
if(ARG_OUTPUTS)
331333
list(APPEND ${ARG_OUTPUTS} ${LIB_NAME}_shared)
@@ -416,6 +418,7 @@ function(ADD_ARROW_LIB LIB_NAME)
416418
if(ARG_DEFINITIONS)
417419
target_compile_definitions(${LIB_NAME}_static PRIVATE ${ARG_DEFINITIONS})
418420
endif()
421+
target_compile_options(${LIB_NAME}_static PRIVATE ${ARROW_LIBRARIES_ONLY_CXX_FLAGS})
419422

420423
if(ARG_OUTPUTS)
421424
list(APPEND ${ARG_OUTPUTS} ${LIB_NAME}_static)

cpp/cmake_modules/SetupCxxFlags.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ${ARROW_POSITION_INDEPENDENT_CODE})
159159
set(UNKNOWN_COMPILER_MESSAGE
160160
"Unknown compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
161161

162+
# Compiler flags used when building Arrow libraries (but not tests, utilities, etc.)
163+
set(ARROW_LIBRARIES_ONLY_CXX_FLAGS)
164+
162165
# compiler flags that are common across debug/release builds
163166
if(WIN32)
164167
# TODO(wesm): Change usages of C runtime functions that MSVC says are
@@ -322,6 +325,9 @@ if("${BUILD_WARNING_LEVEL}" STREQUAL "CHECKIN")
322325
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wimplicit-fallthrough")
323326
string(APPEND CXX_ONLY_FLAGS " -Wredundant-move")
324327
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wunused-result")
328+
# Flag non-static functions that don't have corresponding declaration in a .h file.
329+
# Only for Arrow libraries, since this is not a problem in tests or utilities.
330+
list(APPEND ARROW_LIBRARIES_ONLY_CXX_FLAGS "-Wmissing-declarations")
325331
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel" OR CMAKE_CXX_COMPILER_ID STREQUAL
326332
"IntelLLVM")
327333
if(WIN32)

cpp/examples/arrow/parquet_column_encryption.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "arrow/dataset/file_parquet.h"
2020
#include "arrow/dataset/parquet_encryption_config.h"
2121
#include "arrow/filesystem/localfs.h"
22+
#include "arrow/util/secure_string.h"
2223
#include "parquet/encryption/crypto_factory.h"
2324
#include "parquet/encryption/test_in_memory_kms.h"
2425

@@ -106,9 +107,9 @@ arrow::Result<std::shared_ptr<arrow::Table>> GetTable() {
106107

107108
std::shared_ptr<parquet::encryption::CryptoFactory> GetCryptoFactory() {
108109
// Configure KMS.
109-
std::unordered_map<std::string, std::string> key_map;
110-
key_map.emplace("footerKeyId", "0123456789012345");
111-
key_map.emplace("columnKeyId", "1234567890123456");
110+
std::unordered_map<std::string, arrow::util::SecureString> key_map;
111+
key_map.emplace("footerKeyId", arrow::util::SecureString("0123456789012345"));
112+
key_map.emplace("columnKeyId", arrow::util::SecureString("1234567890123456"));
112113

113114
auto crypto_factory = std::make_shared<parquet::encryption::CryptoFactory>();
114115
auto kms_client_factory =

0 commit comments

Comments
 (0)