This is an automated email from the ASF dual-hosted git repository.

zhouyuan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 048d082e64 [GLUTEN-6887][VL] Daily Update Velox Version (2026_11_26) 
(#13808)
048d082e64 is described below

commit 048d082e64552a8d5d1d35aeaea1edb71a05a82a
Author: Gluten Performance Bot 
<[email protected]>
AuthorDate: Fri Nov 27 13:58:15 2026 +0000

    [GLUTEN-6887][VL] Daily Update Velox Version (2026_11_26) (#13808)
    
    Upstream Velox's New Commits:
    
    0776b84a24 by RindsSchei225e, perf(encodings): Rebind stream encodings to 
the next segment instead of rebuilding them (#20572)
    ddb295ea88 by Rui Mo, fix(sparksql): Return false from between if one bound 
is null
    26250549cd by Zhu, Lipeng, fix(dwio): Stop the SMALLINT scan reading past 
its stream buffer
    ec344d8026 by Chandrashekhar Kumar Singh, refactor(dwio): Take 
FileIoContext in BufferedInput (#20589)
    2e172aa398 by zhichenxu-meta, feat(rpc): Let max_limit tighten a function's 
RPC ceiling (#20623)
    76bbd2a43e by Ke, test(nimble): Benchmark and test lazy file stats (#20293)
    a422ed922b by oerling, feat(wave): Run-time compiled kernels for scan 
decoding (#20578)
    a245fc7cff by Krishnakanth, test(parquet): Remove six disabled widening 
filter tests
    4f4cd88812 by Xiaoxuan, perf(nimble): Share cached tablets across index 
lookups (#20653)
    3cba56154b by Daniel Lemire, perf(json): Reuse a padded buffer across rows 
in JSON functions
    d9abe114f6 by XiaoDu, perf(nimble): Reuse the dictionary alphabet buffer 
from the buffer pool (#20629)
    e83c2b7800 by Xiaoxuan, fix(nimble): Keep a cached tablet's stats section 
for every reader (#20654)
    b41da9b291 by XiaoDu, perf(nimble): Stop planning PartitionedEliasFano once 
partitions are too small
    22ad03f24a by Maria Basmanova, test: Merge FileSplitReader tests into 
FileSplitReaderTest (#20643)
    8acc5d80b0 by Maria Basmanova, refactor: Move configureReaderOptions to 
FileSplitReader (#20642)
    357ee037b2 by Maria Basmanova, refactor: Add FileDataSource::makeScanSpec 
(#20641)
    b7a1aa7711 by Xiaoxuan, fix(nimble): Let TabletReaderCache instances coexist
    90687301d6 by Xiaoxuan, misc: Keep decoded strings in the buffers that hold 
them instead of copying (#20449)
    e193ba9ee4 by RindsSchei225e, perf(encodings): Create encodings without 
copying Options into a temporary factory (#20552)
    7a4f1ae1e6 by Maria Basmanova, refactor: Add 
ExprToSubfieldFilterParser::extractFilters (#20640)
    7c41d31307 by Maria Basmanova, refactor: Add 
FileConfig::formatScopedConfigs (#20639)
    1fb573cfc2 by Maria Basmanova, refactor: Remove unused createPointFilter 
and createRangeFilter (#20638)
    c5b40f5544 by Maria Basmanova, refactor: Split connector testFilters by 
layer (#20637)
    8b0efbbff6 by Chandrashekhar Kumar Singh, test(file): Let FaultyFileSystem 
hooks see file opens (#20588)
    4c813ecfab by PRASHANT GOLASH, feat(hive): Add opt-in row dedupe by leading 
sort columns (#20568)
    c99ace16b3 by Maria Basmanova, refactor: Add 
BufferedInputBuilder::createDefault (#20635)
    7e2bfb62d2 by Maria Basmanova, refactor: Add 
Expr::fieldsReadForAllPassingRows (#20634)
    835301223c by Maria Basmanova, refactor: Add 
FileColumnHandle::checkConsistentWith (#20633)
    cd8f08f402 by Maria Basmanova, refactor: Check lowercase column names in 
FileTableHandle (#20631)
    a1202ce768 by Minni Mittal, feat(spark): Add verified legacy charsets for 
encode
    64ca474821 by abhinavmuk04, fix(rpc): Never strand a paced RPC waiter
    e572bab33f by Maria Basmanova, refactor(connectors): Remove getColumnName 
(#20630)
    0c3db78442 by Maria Basmanova, feat(test): Let PlanBuilder::hashJoin take a 
SQL condition (#20627)
    cc14e7fcb2 by WangGuangxin, fix(sparksql): Support TIMESTAMP UTC in 
comparison functions
    8890311c08 by Shivadarshan Devadiga, fix: Validate the time point range in 
TimeZone::correct_nonexistent_time
    9c6c9667b2 by Anirban-Chand, fix(iceberg): Preserve caller timestamp 
timezone in ParquetWriterOptionsAdapter
    48c253a825 by Maria Basmanova, feat(exec): Bloom filters for right joins 
and kHash tables (#20618)
    7b2b7e4d5c by Daniel Lemire, perf(json): Build json_extract output without 
a stringstream
    22296e296c by XiaoDu, perf(nimble): Slice Varint streams natively (#20597)
    66de4646d8 by Maria Basmanova, fix(core): List all join types that keep 
probe order (#20614)
    1a094e7ef5 by Rui Mo, perf: Drop duplicate build rows for probe-only join 
filters
    5e645dcb29 by Krishnakanth, test(memory): Avoid a fork deadlock in 
memoryLeakCheck
    640c774a46 by Krishna Pai, build: Make GCC fail only on warnings fbcode 
treats as errors
    24bd2c634a by Krishna Pai, build(ci): Use fork checks instead of the 
repository name (#20225)
    97102e26a6 by Maria Basmanova, fix(tpch): Return lineitem rows for small 
scan batch sizes
    dcca5d322e by Maria Basmanova, fix(exec): Emit global grouping set rows for 
pre-grouped input (#20611)
    b339a1942d by Krishnakanth, test(nimble): Re-enable testScalarFieldLifeCycle
    b40cb7f319 by Lydia Kim, fix(nimble): Mark unused function templates inline 
for LLVM 23 (#20333)
    49479a926e by Xiaoxuan, misc: Check hierarchical child offsets where reads 
use them instead of decoding them all at open
    5b6981b080 by Krishnakanth, test(text): Remove two disabled nested map tests
    a032591f67 by Ke, test(nimble): Check lazy file stats in the writer fuzzer
    ec565bff95 by Ke, test(fuzzer): Report stats pruning and coverage gaps 
(#20584)
    607e936b27 by Matt Karrmann, feat(vector): Share large strings in 
ConstantVector (#20162)
    0cbd97a588 by Krishnakanth, test: Remove 11 obsolete disabled tests
    c0471725e3 by Krishnakanth, test(memory): Re-enable allocContiguousVsize
    b5de742dda by zhichenxu-meta, feat(rpc): Report the function's declared 
rate-limit bounds (#20567)
    36e061de34 by Jimmy Lu, fix(exec): Answer verdicts for iterations worker 0 
passed (#20336)
    dd00c0f416 by goldfeder, fix(nimble): Reset retained flat-map node values 
between projector reads (#20383)
    f44b067c19 by XiaoDu, perf(nimble): Rebuild empty reused Array and Map 
outputs (#20581)
    3aec36d9ed by Xiaoxuan, perf(nimble): Read neighboring projector requests 
in one pass
    1518563e72 by Ke, test(fuzzer): Add NaN to the table evolution fuzzer 
(#20583)
    8ed97f86c4 by Zhu, Lipeng, fix(simd): Read whole words in gather8Bits and 
copy tail indices
    a21f459542 by kevinwilfong, test(nimble): Exercise Reversed in the writer 
fuzzer
    b295576c15 by Ke, fix(nimble): Keep null counts of deduplicated streams 
(#20356)
    11f7cb6da4 by kevinwilfong, fix(dwio): Keep null results exclusive for 
delta updates
    4168ae139b by Richard Barnes, fix(fmt): Include fmt/ranges.h where 
fmt::join is used
    e9831179a5 by Maria Basmanova, docs: Ban DISABLED_ tests in coding 
guidelines
    3d5ddd427d by oerling, feat(torchwave): Device setup path without host 
sizing (#20425)
    08c0828325 by Xiaoxuan, perf(nimble): Reuse sliding window writer scratch 
buffers (#20566)
    d43ce4dedb by Xiaoxuan, feat(nimble): Benchmark feature lookups through 
index joins (#20571)
    fbcdea7b41 by tanjialiang, feat(nimble): Add the kBlob serialization format 
(#20570)
    53dc9b7e59 by Xiaoxuan, perf(nimble): Skip decoding flat sliding window 
inputs
    5da1af1d98 by tanjialiang, feat(file): Add a scoped file IO context for 
Nimble reads (#20433)
    94d39e534c by Xiaoxuan, feat(nimble): Add SlidingWindowArray schema kind 
(#20564)
    ed8245d1bd by Xiaoxuan, feat(paimon): Read raw splits of primary-key tables 
(#20558)
    a69584fe6c by tanjialiang, fix(nimble): Reset the Serializer when 
serialize() throws
    feba07b0e3 by Angad Singh, feat(nimble): Add a compression level for 
FixedBitWidth typed lanes (#20543)
    dd2f885be2 by Angad Singh, feat(nimble): Apply exact bit widths only to 
chunks without typed lanes (#20542)
    367dc4fb9b by Xiaoxuan, fix(paimon): Read each data file in its own format
    a71f58f1d5 by tanjialiang, fix(nimble): Copy the file handle into 
IndexLookup::Options (#20547)
    fe46600cba by Angad Singh, feat(nimble): Add table property keys for typed 
lanes (#20540)
    9fda6a5b6d by Angad Singh, test(nimble): Add typed-lanes writer tests and 
options-off goldens (#20539)
    cd62f8da95 by Angad Singh, perf(nimble): Do not rebase full-width typed 
lanes (#20541)
    8090c88758 by RindsSchei225e, perf(nimble): Encode alphabets without 
repetition encodings (#20508)
    65c45077fd by Xiaoxuan, refactor(nimble): Rename hierarchical cluster index 
to trie (#20560)
    a58a006642 by Angad Singh, feat(nimble): Add typed lanes to FixedBitWidth 
encoding (#20538)
    45da72ccb1 by XiaoDu, perf(nimble): Decode EliasFano rows in batches
    faed6da7a4 by RindsSchei225e, fix(nimble): Free nested streams from 
alphabet candidates
    dda0f37f32 by Xiaoxuan, refactor(connector): Share deletion vector reading 
(#20557)
    9b5efa278f by Xiaoxuan, test: Check that date_add days use the session zone
    51b6e7e17c by tanjialiang, feat(nimble): Replace DirectMetadataInput with 
the block read path (#20368)
    f2bdd34e26 by Xiaoxuan, feat(paimon): Support deletion vectors
    f4149d4edc by Xiaoxuan, feat(nimble): Store weighted cluster index weights 
in each stripe
    516c272e43 by Maria Basmanova, fix(functions): Use a valid session zone in 
date-time tests (#20548)
    0fabb6d11f by Ke, perf(nimble): Build V2 chunk bounds views on first use 
(#20455)
    43ea3620e8 by Ke, perf(nimble): Read file column statistics on demand 
through encoding views (#20460)
    2c30146729 by Xiaoxuan, perf(nimble): Cache key chunks decoded from 
co-loaded stripes
    f032801d8c by Ke, perf(nimble): Loop over filtered columns for chunk pruning
    00ba09ff55 by Ke, refactor(stats): Unify file stats encoding with other 
file metadata (#20397)
    1b08204491 by Xiaoxuan, feat(nimble): Show and benchmark stripe key streams 
(#20518)
    707280f4df by XiaoDu, feat(nimble): Configure user_sequence grouping 
columns through serde params (#20434)
    a211fa856c by XiaoDu, feat(nimble): Configure the stripe-group metadata 
flush threshold and sparse layout through serde params (#20438)
    8f1972d57d by Xiaoxuan, feat(nimble): Co-load stripe key chunks in the row 
iterator (#20536)
    0811194289 by Amit Dutta, fix(functions): Avoid modifying shared input in 
slice() (#20534)
    b46faada1c by Ke, perf(nimble): Gate fused dictionary reads on useBulkPath 
(#20525)
    c0ab575869 by kevinwilfong, test(nimble): Make stream deduplication test 
deterministic (#20430)
    b2ed3a9633 by XiaoDu, feat(nimble): Select and configure the cluster index 
through serde params (#20360)
    18c97060c3 by meta-codesync[bot], Remove Pyre mode headers [A] [A] [A]
    1c87eb692e by Maria Basmanova, fix(filter): Stop dropping bloom filters on 
merge (#20519)
    4c159db121 by PRASHANT GOLASH, fix(spill): Start read-ahead on the spill 
executor (#20379)
    4a60724739 by EJ Song, fix(arrow): Release inputs once when an owning 
import fails
    dfcc979c09 by PRASHANT GOLASH, perf(hive): Spread a task's buckets evenly 
across local writer drivers (#20520)
    28c0dbbca9 by Bradley Dice, fix(cudf): Fix TableScanTest build after stat 
name refactor
    a88b837aaf by XiaoDu, feat(nimble): Support per-range weighted lookups in 
the projector (#19596)
    02597ead65 by Maria Basmanova, fix(core): Validate count and batch-size 
query config ranges (#20513)
    5f5062dd90 by Zhu, Lipeng, fix(buffer): Slice bitmaps only at multiples of 
64 rows
    00e9bc540b by Maria Basmanova, refactor(parse): Remove DuckDB-based 
QueryPlanner (#20511)
    21341bd77b by Maria Basmanova, refactor(test): Use PlanNodeStats::extract 
and stat name constants
    ff7562f04c by Maria Basmanova, feat(prestosql): Add unary minus for 
interval types (#20510)
    08d19bec89 by Amit Dutta, fix(exec): Read unaligned row keys (#20442)
    c0d2b671db by Maria Basmanova, refactor: Make TopNNode count int64 (#20505)
    c523d77fc2 by peterenescu, feat(vector): Add flat map fast-path for 
map_concat (#20159)
    ca6f326e2c by Yuxuan Chen, perf: Eliminate O(size) bitmap scan in 
GroupingSet::updateRow spill-merge path (#18573)
    bccc7c56b9 by zhichenxu-meta, feat(rpc): Report callers waiting for RPC 
admission (#19745)
    75cc59d1b8 by Maria Basmanova, refactor(exec): Move stat names out of 
operator headers (#20504)
    57b924d06a by Raymond Lin, fix(nimble): Run one sampling trial per skipped 
row (#20448)
    17715849f5 by Daniel Bauer, feat(cudf): Add strpos to the GPU expression 
evaluator
    ab765bfa73 by Rui Mo, fix: Handle hash table spill while probe loads lazy 
input
    ba643b28a1 by Maria Basmanova, feat(rpc): Add PlanBuilder::rpc() and 
simplify RPC tests (#20499)
    b6a35b99fa by Shruti Shivakumar, fix(cudf): Link ServerStartup into the 
cuDF ABFS and S3 read tests
    28c232b45b by Ke, fix(fuzzer): Use the row count type in writer fuzzer 
checks
    cb08c6190a by Bradley Dice, refactor(test): Address review nits on storage 
emulators
    0329a052d4 by XiaoDu, perf(nimble): Buffer only streams with data for 
sparse stripe groups
    9ef9741624 by shanhao-203, fix(nimble): Read Hybrid FlatMap tablet schemas 
with the reader's memory pool (#20346)
    0b2e2e3843 by shanhao-203, feat(nimble): Encode Hybrid FlatMap integer keys 
(#20303)
    8b90e85856 by Ke, test(nimble): Check file stats pruning in the writer 
fuzzer
    2aea5e5719 by XiaoDu, perf(nimble): Sum RLE and Constant offsets streams by 
run when slicing
    05f420614b by Ke, test(nimble): Check that stats bounds hold every value 
(#20465)
    e09be04f3b by tanjialiang, fix(io): Release io_uring registered files after 
each read (#20459)
    b11600cc69 by Sutou Kouhei, build: Fix a typo that made Findzstd.cmake 
ignore ZSTD_LIBRARYDIR
    120c11774a by Bradley Dice, fix(test): Wait for storage emulators to be 
ready before running tests
    8506ba25a8 by Raymond Lin, feat(text): Read a range of a split's rows 
(#20415)
    af7e9fbe75 by marxhxxx, fix(dwio): Exclude partition keys from file reads 
(#20472)
    eac8ecc4e1 by Maria Basmanova, refactor(test): Use PlanBuilder::newPlan 
instead of PlanNodeIdGenerator
    a67514cd7a by Mohammad Linjawi, test(arrow): Split the bridge tests into 
export and import files
    a686b11ce4 by Bowei Xu, fix(spill): Count file close in spill write time 
(#20470)
    ac91d9f0f1 by Minni Mittal, fix(dwio): Accept leading plus signs in text 
integers
    31839a23e2 by oerling, feat(torchwave): Compute grids and shapes on the 
device (#20424)
    3adff1994a by Maria Basmanova, refactor(test): Replace readCursor with 
AssertQueryBuilder (#20482)
---
 .../gluten/execution/HashJoinExecTransformer.scala | 17 +++++----
 .../gluten/execution/VeloxHashJoinSuite.scala      | 41 ++++++++++++++++++++++
 cpp/velox/memory/GlutenBufferedInputBuilder.h      | 11 ++++--
 cpp/velox/memory/GlutenDirectBufferedInput.h       |  4 +--
 .../operators/hashjoin/HashTableTaskBuilder.cc     | 15 ++++++--
 .../operators/hashjoin/HashTableTaskBuilder.h      |  6 ++--
 .../operators/reader/ParquetReaderIterator.cc      |  4 ++-
 cpp/velox/tests/VeloxSubstraitRoundTripTest.cc     |  8 ++---
 cpp/velox/tests/iceberg/IcebergWriteTest.cc        |  3 +-
 ep/build-velox/src/get-velox.sh                    |  4 +--
 10 files changed, 89 insertions(+), 24 deletions(-)

diff --git 
a/backends-velox/src/main/scala/org/apache/gluten/execution/HashJoinExecTransformer.scala
 
b/backends-velox/src/main/scala/org/apache/gluten/execution/HashJoinExecTransformer.scala
index 81304ccffa..acb6a9c34b 100644
--- 
a/backends-velox/src/main/scala/org/apache/gluten/execution/HashJoinExecTransformer.scala
+++ 
b/backends-velox/src/main/scala/org/apache/gluten/execution/HashJoinExecTransformer.scala
@@ -288,17 +288,22 @@ case class BroadcastHashJoinContext(
     deserializeHashTableTimeMetric: Option[SQLMetric] = None,
     serializedHashTableSizeMetric: Option[SQLMetric] = None,
     hashTableMemorySizeMetric: Option[SQLMetric] = None) {
+
+  /**
+   * Whether the native hash table keeps only one row per key, as Velox 
HashBuild::canDropDuplicates
+   * decides: a semi or anti join with no filter, or with a filter that reads 
no build column and is
+   * not null-aware. Spark does not allow nondeterministic join conditions, so 
the filter's
+   * determinism, which Velox also checks, does not matter here.
+   */
   def droppedDuplicates: Boolean = {
-    !hasMixedFiltCondition && (
-      substraitJoinType == JoinRel.JoinType.JOIN_TYPE_LEFT_SEMI ||
-        substraitJoinType == JoinRel.JoinType.JOIN_TYPE_LEFT_ANTI
-    )
+    (substraitJoinType == JoinRel.JoinType.JOIN_TYPE_LEFT_SEMI ||
+      substraitJoinType == JoinRel.JoinType.JOIN_TYPE_LEFT_ANTI) &&
+    (!hasMixedFiltCondition || (filterBuildColumns.isEmpty && 
!isNullAwareAntiJoin))
   }
 
   /**
    * Identifies the native hash table this join needs from a broadcast 
relation, which every join
-   * reusing the broadcast exchange shares. Joins with the same key can share 
a hash table. For an
-   * anti join, `droppedDuplicates` also tells whether it has a filter.
+   * reusing the broadcast exchange shares. Joins with the same key can share 
a hash table.
    */
   def hashTableBuildKey: HashTableBuildKey = {
     // An anti join with a null-intolerant filter leaves out the build rows 
that are null in the
diff --git 
a/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxHashJoinSuite.scala
 
b/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxHashJoinSuite.scala
index b80ae00e41..b32dae4b56 100644
--- 
a/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxHashJoinSuite.scala
+++ 
b/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxHashJoinSuite.scala
@@ -881,4 +881,45 @@ class VeloxHashJoinSuite extends 
VeloxWholeStageTransformerSuite {
       }
     }
   }
+
+  test("semi and anti joins keep duplicate build rows only when their filter 
reads them") {
+    withTempView("probe", "build") {
+      withTempPath {
+        dir =>
+          Seq((1, 5), (2, 1), (3, 7), (4, 2)).toDF("k", 
"x").write.parquet(s"$dir/probe")
+          Seq[(Int, Option[Int])](
+            (1, Some(3)),
+            (1, Some(10)),
+            (2, None),
+            (2, Some(0)),
+            (3, Some(6)),
+            (3, None),
+            (5, Some(1)))
+            .toDF("k", "y")
+            .write
+            .parquet(s"$dir/build")
+          spark.read.parquet(s"$dir/probe").createOrReplaceTempView("probe")
+          spark.read.parquet(s"$dir/build").createOrReplaceTempView("build")
+          Seq(
+            // Reads a build column and is not null-intolerant: needs every 
build row of a key.
+            "EXISTS" -> "coalesce(build.y, 0) > probe.x" -> Seq((1, 5)),
+            "NOT EXISTS" -> "coalesce(build.y, 0) > probe.x" -> Seq((2, 1), 
(3, 7), (4, 2)),
+            // Reads a build column and is null-intolerant.
+            "NOT EXISTS" -> "build.y > probe.x" -> Seq((2, 1), (3, 7), (4, 2)),
+            // Reads no build column: one build row per key is enough.
+            "NOT EXISTS" -> "probe.x > 3" -> Seq((2, 1), (4, 2))
+          ).foreach {
+            case ((predicate, filter), rows) =>
+              val df = spark.sql(
+                s"SELECT k, x FROM probe WHERE $predicate " +
+                  s"(SELECT 1 FROM build WHERE probe.k = build.k AND $filter)")
+              checkAnswer(df, rows.map { case (k, x) => Row(k, x) })
+              val plan = df.queryExecution.executedPlan
+              assert(
+                collect(plan) { case j: BroadcastHashJoinExecTransformer => j 
}.size == 1,
+                plan)
+          }
+      }
+    }
+  }
 }
diff --git a/cpp/velox/memory/GlutenBufferedInputBuilder.h 
b/cpp/velox/memory/GlutenBufferedInputBuilder.h
index 860f2521c7..9368cb8c0e 100644
--- a/cpp/velox/memory/GlutenBufferedInputBuilder.h
+++ b/cpp/velox/memory/GlutenBufferedInputBuilder.h
@@ -46,7 +46,11 @@ class GlutenBufferedInputBuilder : public 
facebook::velox::connector::BufferedIn
           std::move(ioStats),
           executor,
           readerOpts,
-          fileReadOps);
+          facebook::velox::FileIoContext{
+              .fileOpts = fileReadOps,
+              .cacheable = readerOpts.cacheable(),
+              .pool = &readerOpts.memoryPool(),
+          });
     }
     return std::make_unique<GlutenDirectBufferedInput>(
         fileHandle.file,
@@ -58,7 +62,10 @@ class GlutenBufferedInputBuilder : public 
facebook::velox::connector::BufferedIn
         std::move(ioStats),
         executor,
         readerOpts,
-        fileReadOps);
+        facebook::velox::FileIoContext{
+            .fileOpts = fileReadOps,
+            .pool = &readerOpts.memoryPool(),
+        });
   }
 };
 
diff --git a/cpp/velox/memory/GlutenDirectBufferedInput.h 
b/cpp/velox/memory/GlutenDirectBufferedInput.h
index d5b588770e..97b0494c8a 100644
--- a/cpp/velox/memory/GlutenDirectBufferedInput.h
+++ b/cpp/velox/memory/GlutenDirectBufferedInput.h
@@ -33,7 +33,7 @@ class GlutenDirectBufferedInput : public 
facebook::velox::dwio::common::DirectBu
       std::shared_ptr<facebook::velox::IoStats> ioStats,
       folly::Executor* executor,
       const facebook::velox::io::ReaderOptions& readerOptions,
-      folly::F14FastMap<std::string, std::string> fileReadOps = {})
+      facebook::velox::FileIoContext fileIoContext)
       : DirectBufferedInput(
             std::move(readFile),
             metricsLog,
@@ -44,7 +44,7 @@ class GlutenDirectBufferedInput : public 
facebook::velox::dwio::common::DirectBu
             std::move(ioStats),
             executor,
             readerOptions,
-            std::move(fileReadOps)) {}
+            std::move(fileIoContext)) {}
 
   ~GlutenDirectBufferedInput() override {
     requests_.clear();
diff --git a/cpp/velox/operators/hashjoin/HashTableTaskBuilder.cc 
b/cpp/velox/operators/hashjoin/HashTableTaskBuilder.cc
index 5e83d9e9eb..b625f447e3 100644
--- a/cpp/velox/operators/hashjoin/HashTableTaskBuilder.cc
+++ b/cpp/velox/operators/hashjoin/HashTableTaskBuilder.cc
@@ -45,10 +45,21 @@ core::TypedExprPtr makePlaceholderFilter(const 
HashTableTaskBuildSpec& spec) {
   if (!spec.withFilter) {
     return nullptr;
   }
-  if (!spec.filterPropagatesNulls || spec.filterBuildColumns.empty()) {
-    // References no build column, so HashBuild drops no build rows for it.
+  if (spec.filterBuildColumns.empty()) {
+    // References no build column, so HashBuild drops no build rows for it, 
and keeps one row
+    // per key for a semi or anti join, as it does for the real filter.
     return std::make_shared<core::ConstantTypedExpr>(BOOLEAN(), Variant(true));
   }
+  if (!spec.filterPropagatesNulls) {
+    // References a build column, so HashBuild keeps every build row of a semi 
or anti join. isnull
+    // does not propagate nulls, so HashBuild drops no build rows for it 
either.
+    const auto& name = spec.filterBuildColumns[0];
+    return std::make_shared<core::CallTypedExpr>(
+        BOOLEAN(),
+        std::vector<core::TypedExprPtr>{
+            
std::make_shared<core::FieldAccessTypedExpr>(spec.buildType->findChild(name), 
name)},
+        "isnull");
+  }
   // Chains the build columns, cast to VARCHAR to fit any type, with equalto.
   // Both have default null behavior, so the result is null-intolerant in each
   // of them.
diff --git a/cpp/velox/operators/hashjoin/HashTableTaskBuilder.h 
b/cpp/velox/operators/hashjoin/HashTableTaskBuilder.h
index 30751f4ebc..56993621d1 100644
--- a/cpp/velox/operators/hashjoin/HashTableTaskBuilder.h
+++ b/cpp/velox/operators/hashjoin/HashTableTaskBuilder.h
@@ -37,8 +37,10 @@ struct HashTableTaskBuildSpec {
   facebook::velox::core::JoinType joinType;
   bool nullAware{false};
   /// HashBuild never evaluates the join filter. It only checks whether there 
is
-  /// one and, for an anti join, drops build rows with a null in the build
-  /// columns of a null-intolerant filter. So these properties are all it 
needs.
+  /// one, whether it reads build columns (if not, a semi or anti join keeps 
one
+  /// build row per key) and, for an anti join, drops build rows with a null in
+  /// the build columns of a null-intolerant filter. So these properties are 
all
+  /// it needs.
   bool withFilter{false};
   std::vector<std::string> filterBuildColumns;
   bool filterPropagatesNulls{false};
diff --git a/cpp/velox/operators/reader/ParquetReaderIterator.cc 
b/cpp/velox/operators/reader/ParquetReaderIterator.cc
index 85cdcf82a1..f8d1be0c82 100644
--- a/cpp/velox/operators/reader/ParquetReaderIterator.cc
+++ b/cpp/velox/operators/reader/ParquetReaderIterator.cc
@@ -25,7 +25,9 @@ std::unique_ptr<facebook::velox::parquet::ParquetReader> 
createReader(
     const std::string& path,
     const facebook::velox::dwio::common::ReaderOptions& opts) {
   auto input = std::make_unique<facebook::velox::dwio::common::BufferedInput>(
-      std::make_shared<facebook::velox::LocalReadFile>(path), 
opts.memoryPool());
+      std::make_shared<facebook::velox::dwio::common::ReadFileInputStream>(
+          std::make_shared<facebook::velox::LocalReadFile>(path)),
+      opts.memoryPool());
   return 
std::make_unique<facebook::velox::parquet::ParquetReader>(std::move(input), 
opts);
 }
 
diff --git a/cpp/velox/tests/VeloxSubstraitRoundTripTest.cc 
b/cpp/velox/tests/VeloxSubstraitRoundTripTest.cc
index ae1922c329..257965a7db 100644
--- a/cpp/velox/tests/VeloxSubstraitRoundTripTest.cc
+++ b/cpp/velox/tests/VeloxSubstraitRoundTripTest.cc
@@ -21,6 +21,7 @@
 #include "operators/functions/RegistrationAllFunctions.h"
 
 #include "velox/common/base/tests/GTestUtils.h"
+#include "velox/exec/tests/utils/AssertQueryBuilder.h"
 #include "velox/exec/tests/utils/OperatorTestBase.h"
 #include "velox/exec/tests/utils/PlanBuilder.h"
 #include "velox/functions/sparksql/aggregates/Register.h"
@@ -91,9 +92,7 @@ class VeloxSubstraitRoundTripTest : public OperatorTestBase {
 
   void assertFailingPlanConversion(const std::shared_ptr<const 
core::PlanNode>& plan, const std::string& errorMessage) {
     try {
-      CursorParameters params;
-      params.planNode = plan;
-      readCursor(params, [](auto /*task*/) {});
+      AssertQueryBuilder(plan).countResults();
 
       // Convert Velox Plan to Substrait Plan.
       google::protobuf::Arena arena;
@@ -113,8 +112,7 @@ class VeloxSubstraitRoundTripTest : public OperatorTestBase 
{
       auto samePlan = substraitConverter_->toVeloxPlan(substraitPlan);
 
       // Assert velox again.
-      params.planNode = samePlan;
-      readCursor(params, [](auto /*task*/) {});
+      AssertQueryBuilder(samePlan).countResults();
       FAIL() << "Expected an exception";
     } catch (const VeloxException& e) {
       ASSERT_TRUE(e.message().find(errorMessage) != std::string::npos)
diff --git a/cpp/velox/tests/iceberg/IcebergWriteTest.cc 
b/cpp/velox/tests/iceberg/IcebergWriteTest.cc
index a78739d7e9..3114948903 100644
--- a/cpp/velox/tests/iceberg/IcebergWriteTest.cc
+++ b/cpp/velox/tests/iceberg/IcebergWriteTest.cc
@@ -19,7 +19,6 @@
 #include "memory/VeloxColumnarBatch.h"
 #include "utils/ConfigExtractor.h"
 #include "utils/VeloxWriterUtils.h"
-#include "velox/connectors/common/FileConnectorUtil.h"
 #include "velox/connectors/hive/HiveConfig.h"
 #include "velox/exec/tests/utils/TempDirectoryPath.h"
 #include "velox/vector/tests/utils/VectorTestBase.h"
@@ -58,7 +57,7 @@ TEST_F(VeloxIcebergWriteTest, parquetWriterOptions) {
           
{"spark.gluten.sql.columnar.backend.velox.parquet_writer_compression_level", 
std::to_string(level)},
           
{"spark.gluten.sql.columnar.backend.velox.parquet_writer_datapage_version", 
version}});
       auto session = createHiveConnectorSessionConfig(sparkConf);
-      auto scopedConfigs = connector::makeFormatScopedConfigs(hiveConfig, 
*session, dwio::common::FileFormat::PARQUET);
+      auto scopedConfigs = 
hiveConfig.formatScopedConfigs(dwio::common::FileFormat::PARQUET, *session);
       auto options = std::static_pointer_cast<parquet::ParquetWriterOptions>(
           factory.createFormatOptions(scopedConfigs.connectorConfig, 
scopedConfigs.sessionProperties));
       ASSERT_NE(options->codecOptions, nullptr);
diff --git a/ep/build-velox/src/get-velox.sh b/ep/build-velox/src/get-velox.sh
index 84f0cb0ebe..37589fea4e 100755
--- a/ep/build-velox/src/get-velox.sh
+++ b/ep/build-velox/src/get-velox.sh
@@ -18,8 +18,8 @@ set -exu
 
 CURRENT_DIR=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
 VELOX_REPO=https://github.com/IBM/velox.git
-VELOX_BRANCH=dft-2026_11_19
-VELOX_ENHANCED_BRANCH=ibm-2026_11_19
+VELOX_BRANCH=dft-2026_11_26
+VELOX_ENHANCED_BRANCH=ibm-2026_11_26
 VELOX_HOME=""
 RUN_SETUP_SCRIPT=ON
 ENABLE_ENHANCED_FEATURES=OFF


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to