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 694b730c07 [GLUTEN-6887][VL] Daily Update Velox Version (2026_11_19) 
(#13686)
694b730c07 is described below

commit 694b730c07421d0b47d883e9696a829c8e978110
Author: Gluten Performance Bot 
<[email protected]>
AuthorDate: Fri Nov 20 20:56:33 2026 +0000

    [GLUTEN-6887][VL] Daily Update Velox Version (2026_11_19) (#13686)
    
    Upstream Velox's New Commits:
    
    a3746eb264 by Raymond Lin, feat(parquet): Read a range of a split's rows 
(#20414)
    f112bee890 by Raymond Lin, feat(orc): Read a range of a split's rows 
(#20413)
    51fbd8beb4 by Maria Basmanova, refactor(test): Add VectorAssertions for 
comparing results (#20463)
    dfa98de679 by Amit Dutta, refactor: Remove legacy TopNRowNumberNode 
constructor
    702217c5d2 by Raymond Lin, fix(dwio): Don't divide by zero reading files 
without a row index (#20412)
    c9bda271bb by Sutou Kouhei, refactor(parquet): Copy Arrow's spaced.h into 
the Parquet writer
    fb93801654 by Maria Basmanova, refactor(test): Move DuckDbQueryRunner into 
its own file (#20462)
    1b02b949d3 by peterenescu, perf(dwio): Keep reusing flat maps after 
filtered and memoized loads
    39f57ab8e6 by Kevin Tang, fix: Omit UNKNOWN array null bitmaps
    bd139da822 by Minni Mittal, refactor(test): Reuse reader setup in text 
writer tests
    386f01a425 by Minni Mittal, fix: Preserve round precision at fine positive 
scales
    1c6b19401a by Mohammad Linjawi, fix(arrow): Export only the elements of 
non-null array and map rows
    7cd3d8310d by Zhu, Lipeng, fix(arrow): Size imported BOOLEAN values as a 
bitmap
    47a12bb5bc by Abhinav Agarwal, fix: Make Spark CAST(decimal as integral) 
ANSI-compliant
    c08fb1fa16 by Xiaoxuan, feat(nimble): Read stripe key chunks with stripe 
streams (#20451)
    43e392b085 by Deepak Majeti, fix(ci): Update brew in MacOS workflow
    ad52a1324e by Maria Basmanova, refactor(test): Replace readSingleValue with 
AssertQueryBuilder
    40b7a5ebe2 by zhichenxu-meta, feat(rpc): Add opt-in CAPACITY_PROBING flow 
control (#20150)
    340eab3cf5 by Xiaoxuan, perf(nimble): Speed up Prefix and FSST with 
StringPageArena (#20407)
    5f7ba28b46 by Maria Basmanova, refactor(vector): Remove unreachable returns 
in VectorFuzzerTest
    4a3936201e by Maria Basmanova, refactor(test): Remove CursorParameters 
overloads of assertQuery (#20446)
    aea73ace58 by Raymond Lin, feat(dwrf): Read a range of a split's rows 
(#20316)
    8ab18fd194 by Maria Basmanova, refactor(test): Move task wait helpers into 
TaskMonitor
    532d2c38d5 by peterenescu, feat(dwio): Write flat maps into regular map 
columns (#20361)
    32fd8d68d8 by XiaoDu, feat(nimble): Add Reversed encoding for descending 
integer streams (#20408)
    3dd802f7f5 by Maria Basmanova, refactor(test): Move toOperatorStats into 
TaskStats (#20437)
    4833fb7d58 by Raymond Lin, feat(hive): Read a row range of a split (#20302)
    7da3dd2def by Henry Dikeman, fix(nimble): Fix NaN handling in FloatingPoint 
stats accumulation (#20367)
    00105aa129 by Maria Basmanova, refactor(hive): Decide partition overwrite 
in the insert handle (#20428)
    16485d2b1f by Ke, feat(nimble): Add `nimble_lazy_file_stats` session 
property (#20253)
    fa391982f3 by Ke, refactor(nimble): Look up file column stats by node ID 
(#20422)
    11066eaf84 by Arjun Gupta, feat(rpc): Add backend-independent deferred RPC 
execution (#20435)
    50f48aae74 by Maria Basmanova, refactor(test): Move printResults into 
ExpressionRunner
    ccb2f1fac2 by Maria Basmanova, refactor(test): Remove 
assertQueryReturnsEmptyResult
    2a6a9d087a by fzxu, feat: Add flat map support for map_except (#20272)
    8007e8881f by Richard Barnes, build(cmake): Enable fallthrough and 
unreachable-break warnings (#19791)
    5f74001f8c by XiaoDu, perf(dwio): Stop seeding a generator per 
ExponentialBackoff (#20421)
    208b668efe by Minni Mittal, fix(dwio)!: Align text floating-point parsing
    d58935966d by metackrc24, fix(iceberg): Use projected types for missing 
columns (#20359)
    8da723cfc8 by rdtr, fix(sparksql): Keep argument order in concat_ws after 
merged constants
    87414d5fa6 by peterenescu, perf(dwio): Reuse flat map vectors and buffers 
across batches
    f60bd9aaf5 by XiaoDu, perf(nimble): Binary search crowded EliasFano buckets 
(#20410)
    24abdb9780 by Richard Barnes, refactor: Replace whole-condition 
FOLLY_LIKELY with C++20 likelihood attributes
    23d0442ade by oerling, perf(torchwave): Group allocations into a persistent 
arena (#19940)
    5fca79fdfa by Raymond Lin, feat(nimble): Read a range of a split's rows in 
the selective reader (#20301)
    185edb8b63 by peterenescu, feat(expression): Support flat maps in map cast 
(#20237)
    516f0d04cc by Xiaoxuan, fix(dwio): Reject repeated keys in Roaring bitmaps
    5f562e46b7 by Xiaoxuan, feat(nimble): Add StringPageArena for decoded 
strings
    9af7791a94 by yun.wu, feat(scan): Report every read with its split and 
start row
    9bfe7c2464 by Zhenyuan Zhao, fix(nimble): Keep a duplicate stream's own 
chunk stats (#20390)
    228b439706 by Xiaoxuan, refactor(dwio): Move the Iceberg roaring decoder to 
dwio
    eb721b3459 by Xiaoxuan, perf(nimble): Decode cached FSST chunks in one pass
    d67d7c1ac5 by Ke, fix(nimble): Accept V2 chunk stats groups with over 1M 
tables
    0524f19e95 by Xiaoxuan, feat(nimble): Read SharedDictionary streams in 
StreamReader (#20381)
    3f9f3d6361 by Sutou Kouhei, refactor(parquet): Support Arrow 21 and 25 APIs 
in the Parquet writer
    0d002574b9 by Apurva Kumar, feat(iceberg): Add flat write layout to 
IcebergInsertTableHandle (#20387)
    ff37112a50 by kevinwilfong, test(dwrf): Return early on non-selective 
readers
    ff22739367 by Ke, fix(nimble): Write no chunk stats for a group with no 
streams (#20338)
    6c6f78c0d5 by peterenescu, feat(sparksql): Build flat maps in map() for 
constant keys (#20236)
    3ef26d4399 by Xiaoxuan, test(memory): Match the exception type in 
memoryLeakCheck
    a094ea9914 by Pedro Pedreira, perf(expression): Peel small batches of large 
rows
    1cbdecbedc by kevinwilfong, feat(fuzzer): Exercise spilling in WindowFuzzer 
(#20354)
    1f1d160d0c by Xiaoxuan, feat(nimble): Configure index scan prefetch batches
    4116d9acf8 by Paul Meng, test(vector): Fuzz encodedVectorCopy appends
    0de8f94783 by Paul Meng, fix(vector): Null skipped struct rows, keep short 
children (#20341)
    25c401536f by Xiaoxuan, perf(nimble): Cut lock and allocation cost of FSST 
takes
    c87562823e by Xiaoxuan, feat(nimble): Look up stripe ranges in the cluster 
index
    e5dfd4753d by Xiaoxuan, perf(nimble): Decode sparse FSST view reads row by 
row
    ae785e07de by Richard Barnes, fix(json): Preserve owned trimmed JSON paths 
(#20365)
    ffb8154cc2 by Xiaoxuan, test(nimble): Test Sequence slices with a value 
delta
    00da2759c6 by Xiaoxuan, fix(paimon): Keep partition columns in Paimon file 
schema
    ec322664a7 by Richard Barnes, build(cmake): Annotate fall-through in 
flex-generated scanners
    f6366be891 by RindsSchei225e, fix(dwio): Let the reader decide the fast 
path (#20168)
    e814dea027 by RindsSchei225e, fix(dwrf): Clear stale nulls for 
timestamp/decimal filters (#20287)
    e24064252f by RindsSchei225e, refactor(nimble): Move the internal 
compressor out of velox (#20255)
    367e6845ce by fzxu, refactor(functions): Make map_except a vector function
    ce28712de2 by kevinwilfong, feat(fuzzer): Fuzz spill file-count configs and 
key overlap (#20353)
    1551907d4a by weichao-meta, fix(function): Release remote UDF request 
payloads earlier
    971a76883c by Bradley Dice, fix(cudf): Link every cuDF test with gmock
    a0ad9e4d5c by Xiaoxuan, fix(nimble): Decode index scan stripes on the 
consumer (#20348)
    ca155f51ff by Xiaoxuan, feat(nimble): Look up cluster index keys from 
loaded bytes (#20347)
    bdba63c788 by Paul Meng, fix(vector): Append to structs whose children are 
shorter (#20339)
    5c09c17d8d by Minni Mittal, fix(spark): Saturate casts at rounded integer 
limits
    2f77c001e4 by Shruti Shivakumar, feat(cudf): Support filtered array_agg in 
grouped aggregation
    68b21fcbee by Xiaoxuan, feat(nimble): Add Sequence encoding
    2cf2c7795e by Yann Collet, test(compression): Derive LZ4 frame error names 
from codes
    0b6d6b8dab by peterenescu, fix(dwio): Grow a reused flat map only when its 
map values are unshared (#20136)
    0be82ba637 by Chris Hawley, refactor: Replace FOR_EACH_RANGE with plain for 
loops in StringSearchBenchmark.cpp (#20221)
    9705b9e780 by tanjialiang, feat(nimble): Cache indexes in the block cache 
(#20340)
    efc58d0f2d by Jimmy Lu, feat(functions): Bring back vector_index_pack
    d4a2dd0002 by Sutou Kouhei, refactor(parquet): Use Velox's addWithOverflow 
in the Parquet writer
    4545335b3e by Ke, fix(nimble): Bounds-check indices in dictionary-aware 
reads (#20304)
    48bfd298e2 by joshkang97, perf(index)!: Coalesce scan I/O and prefetch 
stripes (#20297)
    f1081a77a8 by Xiaoxuan, feat(nimble): Write cluster index keys in each 
stripe (#20343)
    33ecd3fa0d by atulkatiyar22, feat(dwio): Add bounded stripe prefetch 
(#20335)
    c220e6f43f by Xiaoxuan, feat(nimble): Read cluster index keys stored in 
each stripe (#20337)
    c3dad3fc0f by Maria Basmanova, feat(hive): Skip splits of buckets that 
filters exclude (#20329)
    bff02cfc48 by Mohammad Linjawi, fix(arrow): Export child rows under a null 
struct as null
    1118415704 by Pedro Pedreira, perf(vector): Decode flat vectors directly in 
DecodedVector
    84a02c0e6d by peterenescu, fix(row): Null dereference for flat maps in 
CompactRow (#20064)
    b15cd2fa2d by Maria Basmanova, fix(hive): Reject PRESTO_NATIVE bucketing in 
the writer (#20327)
    cb078d70b0 by Minni Mittal, refactor(test): Reuse text reader fixture setup
    77bb2789fd by n0r0shi, build: Install gRPC in the CentOS 9 dev image
    7aa3114578 by Maria Basmanova, refactor: Add enum fmt macros, move 
HiveBucketProperty (#20326)
    93fca17ee7 by oerling, feat(torchwave): Rewrite ads aten idioms into base 
ops
    dd47741338 by mingyuzh, feat(udf): Let callers set a default owner at 
Iceberg registration
    6475bca0d7 by Maria Basmanova, feat(hive): Compute the buckets a scan must 
read from filters (#20325)
    796535f319 by oerling, perf(torchwave): Static shapes, row reductions, one 
clock copy
    6d31e1ca5c by XiaoDu, feat(nimble): Flush stripe groups by their serialized 
size (#20142)
    8a899880bb by Krishnakanth, test(memory): Re-enable 
raceBetweenTaskTerminateAndReclaim (#20286)
    dd94d767c2 by Krishnakanth, test(exec): Check SortBuffer output in 
randomData (#20285)
    0de330587c by Krishnakanth, test(memory): Run memoryLeakCheck in debug 
builds (#20284)
    89e7793ef0 by Sahil Gandhi, feat(exec): Add exchange_output_batch_rows 
query config (#20224)
    673bcf3ba1 by XiaoDu, perf(nimble): Find a stripe group's stripes by binary 
search (#20332)
    257d48fc43 by Maria Basmanova, test: Write test data to a temp file in one 
call (#20322)
    623b632e6b by peterenescu, fix(expression): Null dereference on flat map 
arguments (#20062)
    2dc9db1f2e by Maria Basmanova, test: Add single-column makeNamedRowVector 
and bool config (#20321)
    f9b6a998c3 by XiaoDu, feat(nimble): Sort integer dictionary alphabets by 
value (#20300)
    47956a21db by peterenescu, fix(row): Null dereference for flat maps in 
UnsafeRow (#20065)
    d2cda62cf0 by Krishnakanth, test(exec): Remove two TableScan memory 
arbitration tests
    ec9358f713 by XiaoDu, feat(nimble): Add a sparse stripe-group layout 
(#20087)
    0d5ae02b7a by Xiaoxuan, perf(nimble): Skip unread stripe keys without 
reading them (#20318)
    f1fd84a105 by peterenescu, feat: Add generate flat map config and ingest in 
supported engines (#20234)
    169e9a0fd0 by peterenescu, fix(sparksql): Numbers too large for a double in 
get_json_object (#20271)
    4e64d46c44 by hazemnada, feat(iceberg): Forward query token providers to 
deletion-vector reads (#20288)
    c920eeacd5 by peterenescu, fix(sparksql): Malformed input in 
get_json_object root values (#20243)
    70a59c8a66 by peterenescu, fix(serializer): Stack overflow serializing flat 
maps (#20063)
    b20b5834d4 by Xiaoxuan, perf(nimble): Keep a lookup's key chunks for its 
key reads
    108f397ca6 by fzxu, feat(benchmark): Rework map_except benchmark
    fcb0e4396f by RindsSchei225e, refactor(nimble): Move internal writer code 
out of velox (#20254)
    fc3d363dac by Zhu, Lipeng, docs(buffer): Document the alignment and padding 
of vector buffers
    2ab20e8a2f by Mohammad Linjawi, docs(website): Make homepage readable in 
dark mode
    29fd31641e by Reema, feat(cudf): Support multi-column windows and 
full-partition AVG
    88f5049a68 by Yotam Perlitz, fix(cudf): Order CudfVector deallocation on 
its consumer stream
    cf57d41a83 by tanjialiang, feat(nimble): Cache file metadata in the block 
cache (#19867)
    5c42695c10 by Richard Barnes, refactor: Use [[likely]] / [[unlikely]] 
instead of FOLLY_LIKELY (2/4) (#20184)
    936e55e2a9 by Jonathan Hehir, fix(aggregate): Remove bias from 
reservoir_sample merges (#19579)
    4b0e2df837 by Ke, perf(nimble): Stop syncing the output row count per index
    4778762b41 by RindsSchei225e, refactor(nimble): Move field-id resolver test 
out of fb/ (#20261)
    0ce0f6962a by Sutou Kouhei, refactor: Replace Arrow macros and helpers 
removed in Arrow 26
    ace9858606 by Rong Ma, fix(arrow): Export long constant strings as Utf8View
    f768fe760d by Minni Mittal, fix(dwio): Retain text reader scan-spec 
ownership
    2a3bebedbe by Kunal Pathak, perf(function): Avoid RTTI and heap allocation 
in asArraySortCall
    ff768aa873 by Enes Palaz, perf(nimble): Avoid discarded reader buffer 
allocations (#20263)
    aff62f3350 by Xiaoxuan, perf(nimble): Reuse the output of the last decode 
(#20267)
    4118a58603 by Ke, feat(nimble): Count fuzzer reads whose filter accepts 
nulls
    50a1bcd257 by shanhao-203, refactor(nimble): Share Hybrid FlatMap group 
keys with the schema type (#20249)
    be487daad0 by Richard Barnes, refactor(torchwave): Use C++20 prefix 
matching (#18272)
    fda7fcc6bf by peterenescu, fix(sparksql): Whitespace and escapes in 
get_json_object object and array results (#20227)
    67f0d16cac by Xiaoxuan, perf(nimble): Reuse the loaded stripe across gets
    3c33836742 by Bowei Xu, fix(file): Count synchronous read time once in 
FileInputStream
    9374c33ca8 by Krishna Pai, build: Build bundled dependencies without -Werror
    b2a861567b by Richard Barnes, refactor: Use [[likely]] / [[unlikely]] 
instead of FOLLY_LIKELY (1/4)
    0cd0a662b1 by Richard Barnes, refactor: Use [[likely]] / [[unlikely]] 
instead of FOLLY_LIKELY (4/4)
    9f97448d6a by Richard Barnes, refactor(nimble): Use [[likely]] / 
[[unlikely]] instead of FOLLY_LIKELY (#20182)
    f6be733f4e by Xiaoxuan, perf(nimble): Decode contiguous co_read ranges in 
place (#20264)
    5ee53364cf by Pedro Pedreira, perf(vector): Read flat values without a 
Buffer lookup in DecodedVector
    031edffd65 by peterenescu, refactor(json): Share the JSON ASCII escape and 
unicode escape parser
    e91cf09c57 by Pedro Pedreira, fix(expression): Optimize inputs of every 
expression kind (#20165)
    4b1abb9ff2 by Xiaoxuan, perf(nimble): Allocate co_read output nulls only 
for nulls (#20262)
    368342e5be by shanhao-203, refactor(nimble): Make HybridFlatMap read-only 
(#20239)
    9b6d92f20c by Maria Basmanova, refactor(test): Pass numbers to 
AssertQueryBuilder::config (#20223)
    43444e0f9f by Maria Basmanova, refactor(test): Use PlanNodeStats::extract 
in tests (#20218)
    3b0e1cd9a1 by Maria Basmanova, feat: Make vector index codec training 
configurable (#20214) (#20214)
    65d2e1a4b6 by Krishnakanth, fix(type): Fix dangling bound views in 
BytesRange copies
    3f2ee6bcf0 by Jimmy Lu, fix(wave): Point Velox nvrtc cuda_include symlink 
at the CUDA 12.8 toolkit
---
 cpp/velox/compute/iceberg/IcebergWriter.cc  |  2 +-
 cpp/velox/substrait/SubstraitToVeloxPlan.cc |  9 +++++----
 cpp/velox/utils/VeloxWriterUtils.cc         | 26 ++++++++++++++++++++++++++
 cpp/velox/utils/VeloxWriterUtils.h          | 13 +++++++++++++
 ep/build-velox/src/get-velox.sh             |  4 ++--
 5 files changed, 47 insertions(+), 7 deletions(-)

diff --git a/cpp/velox/compute/iceberg/IcebergWriter.cc 
b/cpp/velox/compute/iceberg/IcebergWriter.cc
index 76d7bb93c4..c0182e4926 100644
--- a/cpp/velox/compute/iceberg/IcebergWriter.cc
+++ b/cpp/velox/compute/iceberg/IcebergWriter.cc
@@ -44,7 +44,7 @@ class GlutenIcebergFileNameGenerator : public 
connector::hive::FileNameGenerator
 
   std::pair<std::string, std::string> gen(
       std::optional<uint32_t> bucketId,
-      const std::shared_ptr<const connector::hive::HiveInsertTableHandle> 
insertTableHandle,
+      const connector::hive::HiveInsertTableHandlePtr& insertTableHandle,
       const connector::ConnectorQueryCtx& connectorQueryCtx,
       uint32_t maxNumBuckets,
       bool commitRequired) const override {
diff --git a/cpp/velox/substrait/SubstraitToVeloxPlan.cc 
b/cpp/velox/substrait/SubstraitToVeloxPlan.cc
index dc50d3808c..bb88c1df61 100644
--- a/cpp/velox/substrait/SubstraitToVeloxPlan.cc
+++ b/cpp/velox/substrait/SubstraitToVeloxPlan.cc
@@ -735,7 +735,7 @@ std::shared_ptr<connector::hive::HiveInsertTableHandle> 
makeHiveInsertTableHandl
     const std::vector<std::string>& partitionedBy,
     const std::shared_ptr<connector::hive::HiveBucketProperty>& bucketProperty,
     const std::shared_ptr<connector::hive::LocationHandle>& locationHandle,
-    const std::shared_ptr<dwio::common::WriterOptions>& writerOptions,
+    const std::unordered_map<std::string, std::string>& serdeParameters,
     const dwio::common::FileFormat& tableStorageFormat = 
dwio::common::FileFormat::PARQUET,
     const std::optional<common::CompressionKind>& compressionKind = {}) {
   std::vector<std::shared_ptr<const connector::hive::HiveColumnHandle>> 
columnHandles;
@@ -783,11 +783,12 @@ std::shared_ptr<connector::hive::HiveInsertTableHandle> 
makeHiveInsertTableHandl
   return std::make_shared<connector::hive::HiveInsertTableHandle>(
       columnHandles,
       locationHandle,
+      // The default of Velox's insert_existing_partitions_behavior, which 
Gluten does not set.
+      connector::hive::HiveConfig::InsertExistingPartitionsBehavior::kError,
       tableStorageFormat,
       bucketProperty,
       compressionKind,
-      std::unordered_map<std::string, std::string>{},
-      writerOptions);
+      serdeParameters);
 }
 
 #ifdef GLUTEN_ENABLE_GPU
@@ -913,7 +914,7 @@ core::PlanNodePtr 
SubstraitToVeloxPlanConverter::toVeloxPlan(const ::substrait::
           partitionedKey,
           bucketProperty,
           makeLocationHandle(writePath, fileName, fileFormat, compressionKind, 
bucketProperty != nullptr),
-          writerOptions,
+          makeParquetWriteSerdeParameters(writeConfs),
           fileFormat,
           compressionKind),
       folly::F14FastSet<std::string>{});
diff --git a/cpp/velox/utils/VeloxWriterUtils.cc 
b/cpp/velox/utils/VeloxWriterUtils.cc
index 703b97d9d4..bf9f6939d3 100644
--- a/cpp/velox/utils/VeloxWriterUtils.cc
+++ b/cpp/velox/utils/VeloxWriterUtils.cc
@@ -36,8 +36,27 @@ using namespace facebook::velox::common;
 namespace {
 const int32_t kGzipWindowBits4k = 12;
 const int32_t kZSTDDefaultCompressionLevel = 3;
+
+// Marks the serde parameters of a write planned by Gluten. Other writes 
through the factory, such as Iceberg
+// writes, must keep Velox's defaults.
+const std::string kGlutenParquetWrite = "gluten.parquet.write";
 } // namespace
 
+std::unique_ptr<dwio::common::Writer> GlutenParquetWriterFactory::createWriter(
+    std::unique_ptr<dwio::common::FileSink> sink,
+    const std::shared_ptr<dwio::common::WriterOptions>& options) {
+  if (options->serdeParameters.count(kGlutenParquetWrite) > 0) {
+    auto sparkOptions = makeParquetWriteOption(
+        std::unordered_map<std::string, 
std::string>(options->serdeParameters.begin(), options->serdeParameters.end()));
+    if (options->formatSpecificOptions != nullptr) {
+      
sparkOptions->formatSpecificOptions->merge(*options->formatSpecificOptions);
+    }
+    options->formatSpecificOptions = 
std::move(sparkOptions->formatSpecificOptions);
+    options->flushPolicyFactory = std::move(sparkOptions->flushPolicyFactory);
+  }
+  return ParquetWriterFactory::createWriter(std::move(sink), options);
+}
+
 std::shared_ptr<dwio::common::FormatSpecificOptions> 
GlutenParquetWriterFactory::createFormatOptions(
     const config::ConfigBase& connectorConfig,
     const config::ConfigBase& session) const {
@@ -156,4 +175,11 @@ 
std::shared_ptr<facebook::velox::dwio::common::WriterOptions> makeParquetWriteOp
   return writeOption;
 }
 
+std::unordered_map<std::string, std::string> makeParquetWriteSerdeParameters(
+    const std::unordered_map<std::string, std::string>& sparkConfs) {
+  auto serdeParameters = sparkConfs;
+  serdeParameters[kGlutenParquetWrite] = "true";
+  return serdeParameters;
+}
+
 } // namespace gluten
diff --git a/cpp/velox/utils/VeloxWriterUtils.h 
b/cpp/velox/utils/VeloxWriterUtils.h
index 50622776e5..cf216faf99 100644
--- a/cpp/velox/utils/VeloxWriterUtils.h
+++ b/cpp/velox/utils/VeloxWriterUtils.h
@@ -25,6 +25,13 @@ namespace gluten {
 
 class GlutenParquetWriterFactory : public 
facebook::velox::parquet::ParquetWriterFactory {
  public:
+  /// Applies the Spark write configs carried in the serde parameters of a 
write planned by Gluten (see
+  /// makeParquetWriteSerdeParameters) before creating the writer. Format 
options from the session and connector
+  /// configs take precedence over the Spark write configs.
+  std::unique_ptr<facebook::velox::dwio::common::Writer> createWriter(
+      std::unique_ptr<facebook::velox::dwio::common::FileSink> sink,
+      const std::shared_ptr<facebook::velox::dwio::common::WriterOptions>& 
options) override;
+
   std::shared_ptr<facebook::velox::dwio::common::FormatSpecificOptions> 
createFormatOptions(
       const facebook::velox::config::ConfigBase& connectorConfig,
       const facebook::velox::config::ConfigBase& session) const override;
@@ -33,4 +40,10 @@ class GlutenParquetWriterFactory : public 
facebook::velox::parquet::ParquetWrite
 std::shared_ptr<facebook::velox::dwio::common::WriterOptions> 
makeParquetWriteOption(
     const std::unordered_map<std::string, std::string>& sparkConfs);
 
+/// Returns the serde parameters of a Hive insert table handle that carry 
'sparkConfs' to
+/// GlutenParquetWriterFactory. Velox's insert table handle has no writer 
options: they would not survive
+/// serialization of the plan.
+std::unordered_map<std::string, std::string> makeParquetWriteSerdeParameters(
+    const std::unordered_map<std::string, std::string>& sparkConfs);
+
 } // namespace gluten
diff --git a/ep/build-velox/src/get-velox.sh b/ep/build-velox/src/get-velox.sh
index 7fb5350a75..84f0cb0ebe 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_10
-VELOX_ENHANCED_BRANCH=ibm-2026_11_10
+VELOX_BRANCH=dft-2026_11_19
+VELOX_ENHANCED_BRANCH=ibm-2026_11_19
 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