Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
fe0e78e
RMM Library Linking Error Bug Fix (#23341)
abigalekim Jul 22, 2026
2fb0ed7
Fix Parquet stats pinned host copy lifetime (#23219)
aryansri05 Jul 22, 2026
f367be2
Bump cudf-polars test suite timeouts (#23399)
TomAugspurger Jul 22, 2026
629dcc4
Add cuFile wheel dependencies for Python tests (#23392)
bdice Jul 22, 2026
b6b58b3
Include sources.jar and javadoc.jar in the Java Maven repo output (#2…
paul-aiyedun Jul 22, 2026
8b4c4a5
Preserve MultiIndex column fidelity through ColumnAccessor round trip…
galipremsagar Jul 22, 2026
c16794f
Experimental Parquet reader supports retention vectors (#23402)
mhaseeb123 Jul 23, 2026
f6d1081
Add array indexing support to Parquet variant field extraction (#22895)
vuule Jul 23, 2026
f03e9cd
[BUG] Fix ORC chunked writer root row statistics (#23118)
wjxiz1992 Jul 23, 2026
2962564
Bump cudf-polars CI timeouts (#23410)
TomAugspurger Jul 23, 2026
55317dc
Fix DataFrame.stack level resolution, ordering, and dtype preservatio…
galipremsagar Jul 23, 2026
f0a24f4
Rework approach to cudf-streaming bloom filter sizing (#23067)
wence- Jul 23, 2026
1ef4d74
Disable join filter pushdown rewrites by default (#23407)
TomAugspurger Jul 23, 2026
b1fbdda
Match pandas ordering, dtypes, and validation in unstack/_pivot (#23368)
galipremsagar Jul 23, 2026
9b00d88
Add profitability guards for join filter pushdown (#22997)
pentschev Jul 23, 2026
5beaa59
JNI bridge for the retention filter support for deletion vectors (#23…
jihoonson Jul 27, 2026
a596c3e
Merge branch 'release/26.08' into main-merge-release/26.08
bdice Jul 27, 2026
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
7 changes: 3 additions & 4 deletions ci/run_cudf_polars_polars_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ DESELECTED_TESTS_STR=$(printf -- " --deselect %s" "${DESELECTED_TESTS[@]}")
# Don't quote the `DESELECTED_...` variable because `pytest` can't handle
# multiple quoted arguments inline
# shellcheck disable=SC2086
# Fail fast (-x) because failed tests pollute the state
# Fail fast (-x) rather than trying to continue because failed tests pollute the state
echo "Run polars tests with injected in-memory GPU engine"
python "${TIMEOUT_TOOL_PATH}" --enable-python 3600 \
python "${TIMEOUT_TOOL_PATH}" --enable-python 5400 \
python -m pytest \
--import-mode=importlib \
--cache-clear \
Expand All @@ -85,12 +85,11 @@ python "${TIMEOUT_TOOL_PATH}" --enable-python 3600 \
echo "Run polars tests with injected SPMD GPU engine, small blocksize"
CUDF_POLARS__EXECUTOR__TARGET_PARTITION_SIZE=805306368 \
CUDF_POLARS__EXECUTOR__FALLBACK_MODE=silent \
python "${TIMEOUT_TOOL_PATH}" --enable-python 3600 \
python "${TIMEOUT_TOOL_PATH}" --enable-python 5400 \
python -m pytest \
--import-mode=importlib \
--cache-clear \
-x \
-v \
-m "" \
-p cudf_polars.testing.inject_gpu_engine \
-W ignore::ResourceWarning \
Expand Down
2 changes: 1 addition & 1 deletion ci/run_cudf_polars_pytests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ TIMEOUT_TOOL_PATH="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/timeout_with_st

cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../python/cudf_polars/

python "${TIMEOUT_TOOL_PATH}" --enable-python 3600 \
python "${TIMEOUT_TOOL_PATH}" --enable-python 5400 \
python -m pytest --cache-clear "$@" tests
5 changes: 3 additions & 2 deletions ci/test_python_other.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail
Expand Down Expand Up @@ -42,8 +42,9 @@ timeout 30m ./ci/run_custreamz_pytests.sh \
--cov-report=term

rapids-logger "pytest cudf-polars"
# Fail fast (-x) rather than trying to continue because failed tests pollute the state
./ci/run_cudf_polars_pytests.sh \
-vv \
-x \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cudf-polars.xml" \
--numprocesses=4 \
--dist=worksteal \
Expand Down
1 change: 0 additions & 1 deletion ci/test_wheel_cudf_polars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ for version in "${VERSIONS[@]}"; do

# Fail fast (-x) rather than trying to continue because failed tests pollute the state
./ci/run_cudf_polars_pytests.sh \
-vv \
"${COVERAGE_ARGS[@]}" \
--numprocesses=4 \
--dist=worksteal \
Expand Down
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ if(CUDF_BUILD_TESTUTIL)
)

target_link_libraries(
cudftestutil INTERFACE $<BUILD_LOCAL_INTERFACE:cuco::cuco> Threads::Threads cudf
cudftestutil INTERFACE $<BUILD_LOCAL_INTERFACE:cuco::cuco> Threads::Threads cudf rmm::rmm
cudftest_default_stream $<TARGET_NAME_IF_EXISTS:conda_env>
)

Expand Down
4 changes: 4 additions & 0 deletions cpp/include/cudf/io/experimental/deletion_vectors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ struct deletion_vector_info {
std::vector<size_t> row_group_offsets;
/// Number of rows in each row group to be read from the Parquet source(s)
std::vector<size_type> row_group_num_rows;

/// Whether the roaring bitmaps represent retention vectors
bool are_retention_vectors = false;
};

/**
Expand Down Expand Up @@ -147,6 +150,7 @@ class chunked_parquet_reader {
std::queue<size_type> _deletion_vector_row_counts;
size_t _start_row;
bool _is_unspecified_row_group_data;
bool _are_retentions;
rmm::cuda_stream_view _stream;
rmm::device_async_resource_ref _mr;
rmm::device_async_resource_ref _table_mr;
Expand Down
35 changes: 17 additions & 18 deletions cpp/include/cudf/io/experimental/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,33 @@ namespace io::parquet::experimental {
*/

/**
* @brief Extract the raw VARIANT-encoded bytes of a nested object field by JSONPath-like path.
*
* Walks `path` step by step, descending into object values (`basic_type == 2`) at each name step.
* Returns a `list<uint8>` column containing the raw encoded bytes of the value at the end of
* the path for each row.
*
* Null is produced when the struct row is null, a name step's key is absent from the dictionary,
* or the current value is not an object (`basic_type != 2`).
* @brief Extract the raw VARIANT-encoded bytes of a nested field by JSONPath-like path.
*
* Path grammar:
* path := "$"? first_step ("." name)*
* first := name | "." name
* name := [^.\[]+ // any byte except '.' (step separator) and '[' (reserved)
* path := "$"? first_step step*
* first := name | "." name | "[" index "]"
* step := "." name | "[" index "]"
* name := any sequence of bytes other than '.' or '['
* index := non-negative base-10 integer (leading zeros are allowed, e.g. "[01]" == "[1]")
*
* Examples:
* "x" -> top-level field "x" (leading $ optional)
* "$.foo" -> top-level field "foo"
* "$.foo.bar" -> object descent foo -> bar
* "x" -> top-level field "x" (leading $ optional)
* "$.foo" -> top-level field "foo"
* "$.foo.bar" -> object descent foo -> bar
* "$[0]" -> first element of a top-level array
* "$.a[0].b" -> object key "a" -> first array element -> object key "b"
*
* @param variant_column Struct column (VARIANT materialization) with `list<uint8>` children
* (`metadata`, `value`), plus optional shredded siblings
* @param path JSONPath-like path string identifying the target object field
* @param path JSONPath-like path string identifying the target field
* @param stream CUDA stream
* @param mr Device memory resource
* @return `list<uint8>` column with the extracted field's encoded bytes
* @return `list<uint8>` column with the extracted value's encoded bytes. A row is null when the
* input row is null, a name is absent, an index is out of bounds, or a step does not match
* the current value.
*
* @throws std::invalid_argument on empty path or malformed syntax (including bracket steps,
* which require array-indexing support that is not yet implemented)
* @throws std::invalid_argument on empty path or malformed syntax (`[*]` wildcards, negative
* indices, out-of-range indices, and quoted names inside `[...]` are not supported)
*/
[[nodiscard]] std::unique_ptr<column> get_variant_field(
column_view const& variant_column,
Expand Down
27 changes: 27 additions & 0 deletions cpp/include/cudf/reduction/bloom_filter.cuh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/

#pragma once

#include <cuco/bloom_filter_policies.cuh>

#include <cstdint>

namespace cudf {

/**
* @brief Policy describing the Apache Arrow Block-Split Bloom Filter layout.
*
* Uses cuco's `parametric_filter_policy` with the Apache Arrow layout: 256-bit blocks (8 x
* `uint32_t`), 8 fingerprint bits per key, fully horizontal add (Theta=8), and fully vertical
* contains (Phi=8). This layout is bit-compatible with Apache Arrow.
*
* @tparam Hash The hash function used to generate a hash for each key.
*/
template <typename Hash>
using arrow_filter_policy =
cuco::parametric_filter_policy<Hash, std::uint32_t, 8, 8, 8, 1, 1, 8, false, false>;

} // namespace cudf
6 changes: 3 additions & 3 deletions cpp/libcudf_streaming/benchmarks/streaming/ndsh/q03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ int main(int argc, char** argv)
int device;
RAPIDSMPF_CUDA_TRY(cudaGetDevice(&device));
RAPIDSMPF_CUDA_TRY(cudaDeviceGetAttribute(&l2size, cudaDevAttrL2CacheSize, device));
auto const num_filter_blocks =
cudf_streaming::bloom_filter::fitting_num_blocks(static_cast<std::size_t>(l2size));
auto const filter_size =
cudf_streaming::bloom_filter::aligned_size(static_cast<std::size_t>(l2size) * 2 / 3);

for (int i = 0; i < arguments.num_iterations; i++) {
int op_id{0};
Expand Down Expand Up @@ -406,7 +406,7 @@ int main(int argc, char** argv)
actors.push_back(fanout_bounded(
ctx, comm, customer_x_orders, bloom_filter_input, {0}, customer_x_orders_input));
auto bloom_filter =
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, num_filter_blocks);
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, filter_size);
actors.push_back(bloom_filter.build(
bloom_filter_input, bloom_filter_output, static_cast<rapidsmpf::OpID>(10 * i + op_id++)));
// Out: l_orderkey, l_extendedprice, l_discount
Expand Down
6 changes: 3 additions & 3 deletions cpp/libcudf_streaming/benchmarks/streaming/ndsh/q04.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ int main(int argc, char** argv)
int device;
RAPIDSMPF_CUDA_TRY(cudaGetDevice(&device));
RAPIDSMPF_CUDA_TRY(cudaDeviceGetAttribute(&l2size, cudaDevAttrL2CacheSize, device));
auto const num_filter_blocks =
cudf_streaming::bloom_filter::fitting_num_blocks(static_cast<std::size_t>(l2size));
auto const filter_size =
cudf_streaming::bloom_filter::aligned_size(static_cast<std::size_t>(l2size) * 2 / 3);

for (int i = 0; i < arguments.num_iterations; i++) {
rapidsmpf::OpID op_id{0};
Expand Down Expand Up @@ -302,7 +302,7 @@ int main(int argc, char** argv)
// Build bloom filter from filtered orders' o_orderkey
auto bloom_filter_output = ctx->create_channel();
auto bloom_filter =
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, num_filter_blocks);
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, filter_size);
actors.push_back(bloom_filter.build(
bloom_filter_input, bloom_filter_output, static_cast<rapidsmpf::OpID>(10 * i + op_id++)));

Expand Down
6 changes: 3 additions & 3 deletions cpp/libcudf_streaming/benchmarks/streaming/ndsh/q21.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ int main(int argc, char** argv)
int device;
RAPIDSMPF_CUDA_TRY(cudaGetDevice(&device));
RAPIDSMPF_CUDA_TRY(cudaDeviceGetAttribute(&l2size, cudaDevAttrL2CacheSize, device));
auto const num_filter_blocks =
cudf_streaming::bloom_filter::fitting_num_blocks(static_cast<std::size_t>(l2size));
auto const filter_size =
cudf_streaming::bloom_filter::aligned_size(static_cast<std::size_t>(l2size) * 2 / 3);
for (int i = 0; i < arguments.num_iterations; i++) {
int op_id{0};
std::vector<rapidsmpf::streaming::Actor> actors;
Expand Down Expand Up @@ -670,7 +670,7 @@ int main(int argc, char** argv)
rapidsmpf::streaming::actor::FanoutPolicy::UNBOUNDED));
auto bloom_output = ctx->create_channel();
auto bloom_filter =
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, num_filter_blocks);
cudf_streaming::bloom_filter(ctx, comm, cudf::DEFAULT_HASH_SEED, filter_size);
// Select the relevant key column(s) and build filter.
actors.push_back(populate_bloom_filter(ctx,
comm,
Expand Down
37 changes: 16 additions & 21 deletions cpp/libcudf_streaming/include/cudf_streaming/bloom_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,25 @@ struct bloom_filter {
* @param ctx Streaming context.
* @param comm Communicator for the collective operation.
* @param seed Hash seed used when hashing values into the filter.
* @param num_filter_blocks Number of blocks in the filter.
* @param filter_size Filter storage size in bytes. Must be positive and satisfy
* `aligned_size(filter_size) == filter_size`, and must not exceed the maximum size supported by
* the filter policy.
*
* @throws std::logic_error If `filter_size` is zero, incorrectly aligned, or exceeds the policy
* maximum.
*/
explicit bloom_filter(std::shared_ptr<rapidsmpf::streaming::Context> ctx,
std::shared_ptr<rapidsmpf::Communicator> comm,
std::uint64_t seed,
std::size_t num_filter_blocks) noexcept
: ctx_{std::move(ctx)},
comm_{std::move(comm)},
seed_{seed},
num_filter_blocks_{num_filter_blocks}
{
}
std::size_t filter_size);

/**
* @brief Find the largest valid filter size no greater than a byte count.
*
* @param size Byte count to align.
* @return Largest valid filter size less than or equal to `size`.
*/
[[nodiscard]] static std::size_t aligned_size(std::size_t size) noexcept;

/**
* @brief Gets the communicator associated with this bloom_filter.
Expand Down Expand Up @@ -100,22 +107,10 @@ struct bloom_filter {
std::shared_ptr<rapidsmpf::streaming::Channel> ch_out,
std::vector<cudf::size_type> keys);

/**
* @brief Compute number of filter blocks that fit in the given L2 cache size.
*
* @param l2size L2 cache size in bytes.
* @return Number of filter blocks that fit.
*/
[[nodiscard]] static std::size_t fitting_num_blocks(std::size_t l2size) noexcept
{
using StorageType = std::uint32_t;
return (l2size * 2) / (3 * sizeof(StorageType));
}

private:
std::shared_ptr<rapidsmpf::streaming::Context> ctx_{};
std::shared_ptr<rapidsmpf::Communicator> comm_{};
std::uint64_t seed_{};
std::size_t num_filter_blocks_{};
std::size_t filter_size_{};
};
} // namespace cudf_streaming
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,58 @@ struct device_bloom_filter {
/**
* @brief Create a filter.
*
* @param num_blocks Number of blocks in the filter.
* @param filter_size Filter storage size in bytes. Must be a positive multiple of the filter
* block size and no greater than the maximum supported by the filter policy.
* @param seed Seed used for hashing each value.
* @param storage Storage to view as a bloom filter, must be appropriately
* initialized.
*/
device_bloom_filter(std::size_t num_blocks, std::uint64_t seed, void* storage);
device_bloom_filter(std::size_t filter_size, std::uint64_t seed, void* storage);

/**
* @brief Create a read-only filter.
*
* @param num_blocks Number of blocks in the filter.
* @param filter_size Filter storage size in bytes. Must be a positive multiple of the filter
* block size and no greater than the maximum supported by the filter policy.
* @param seed Seed used for hashing each value.
* @param storage View of storage, must be appropriately initialized.
*
* @return A const-qualified bloom filter viewing the underlying storage.
*/
static device_bloom_filter const view(std::size_t num_blocks,
static device_bloom_filter const view(std::size_t filter_size,
std::uint64_t seed,
void const* storage);

/**
* @brief Create uninitialized storage for a filter.
*
* @param num_blocks Number of blocks in the filter.
* @param filter_size Filter storage size in bytes. Must be a positive multiple of the filter
* block size and no greater than the maximum supported by the filter policy.
* @param stream CUDA stream for device operations.
* @param mr Memory resource for allocations.
*
* @return Unique pointer to a device buffer containing storage for the requested
* number of filter blocks.
* filter size.
*/
static std::unique_ptr<rmm::device_buffer> storage(std::size_t num_blocks,
static std::unique_ptr<rmm::device_buffer> storage(std::size_t filter_size,
rmm::cuda_stream_view stream,
rmm::device_async_resource_ref mr);

/**
* @brief Find the largest valid filter size no greater than a byte count.
*
* @param size Byte count to align.
* @return Largest valid filter size less than or equal to `size`.
*/
[[nodiscard]] static std::size_t aligned_size(std::size_t size) noexcept;

/**
* Return the largest storage size supported by the filter policy.
*
* Maximum valid filter size in bytes.
*/
[[nodiscard]] static std::size_t max_size() noexcept;

/**
* @brief Add values to the filter.
*
Expand Down Expand Up @@ -111,14 +129,6 @@ struct device_bloom_filter {
*/
[[nodiscard]] std::size_t size() const noexcept;

/**
* @brief @return Number of blocks to use if the filter should fit in a given L2 cache
* size.
*
* @param l2size Size of the L2 cache in bytes.
*/
[[nodiscard]] static std::size_t fitting_num_blocks(std::size_t l2size) noexcept;

private:
std::size_t num_blocks_; ///< Number of blocks used in the filter.
std::uint64_t seed_; ///< Seed used when hashing values.
Expand Down
Loading
Loading