This is an automated email from the ASF dual-hosted git repository.
zhztheplayer 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 85c89803ed [VL][Delta] Fall back native write on filesystems the Velox
writer cannot open (#13386)
85c89803ed is described below
commit 85c89803ed2d050db4052f1813d76711ebe29fb8
Author: Mohammad Linjawi <[email protected]>
AuthorDate: Tue Nov 24 20:47:34 2026 +0300
[VL][Delta] Fall back native write on filesystems the Velox writer cannot
open (#13386)
---
.../util/delta-spark-ut/known-failures.txt | 28 ---------
.../sql/delta/GlutenDeltaNativeWriteGate.scala | 35 +++++++++++
.../sql/delta/GlutenOptimisticTransaction.scala | 16 ++---
.../delta/GlutenDeltaNativeWriteGateSuite.scala | 72 ++++++++++++++++++++++
.../gluten/execution/VeloxDelta4WriteSuite.scala | 32 +++++++++-
docs/backends/velox/get-started/VeloxDelta.md | 7 ++-
6 files changed, 152 insertions(+), 38 deletions(-)
diff --git a/.github/workflows/util/delta-spark-ut/known-failures.txt
b/.github/workflows/util/delta-spark-ut/known-failures.txt
index 1a9fb7d1dc..4f6b8311f0 100644
--- a/.github/workflows/util/delta-spark-ut/known-failures.txt
+++ b/.github/workflows/util/delta-spark-ut/known-failures.txt
@@ -20,20 +20,6 @@
# Velox forks x ~4G run close to the ~16G runner limit) -- so a baseline
captured
# at a different parallelism spuriously flags them as regressions.
# ---------------------------------------------------------------------------
-io.delta.tables.DeltaTableHadoopOptionsSuite#delete - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#details - with filesystem options.
-io.delta.tables.DeltaTableHadoopOptionsSuite#forPath - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#forPath error out without
filesystem options passed in.
-io.delta.tables.DeltaTableHadoopOptionsSuite#forPath with unsupported options
-io.delta.tables.DeltaTableHadoopOptionsSuite#forPath: as/alias/toDF with
filesystem options.
-io.delta.tables.DeltaTableHadoopOptionsSuite#generate - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#history - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#merge - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#optimize - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#restoreTable - with filesystem
options
-io.delta.tables.DeltaTableHadoopOptionsSuite#update - with filesystem options
-io.delta.tables.DeltaTableHadoopOptionsSuite#updateExpr - with filesystem
options
-io.delta.tables.DeltaTableHadoopOptionsSuite#vacuum - with filesystem options
org.apache.spark.sql.delta.CheckpointsSuite#SC-86940: writing a GCS checkpoint
should happen in a new thread
org.apache.spark.sql.delta.CheckpointsWithCatalogOwnedBatch100Suite#SC-86940:
writing a GCS checkpoint should happen in a new thread
org.apache.spark.sql.delta.CheckpointsWithCatalogOwnedBatch1Suite#SC-86940:
writing a GCS checkpoint should happen in a new thread
@@ -46,13 +32,6 @@
org.apache.spark.sql.delta.CloneTableScalaDeletionVectorSuite#shallow clone acro
org.apache.spark.sql.delta.CloneTableScalaSuite#shallow clone across file
systems
org.apache.spark.sql.delta.ConvertToDeltaSQLSuite#CONVERT keeps NaN rows for
finite-threshold predicate (NaN-excluding writer)
org.apache.spark.sql.delta.ConvertToDeltaScalaSuite#CONVERT keeps NaN rows for
finite-threshold predicate (NaN-excluding writer)
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#SC-86916: Delta
log cache should respect options
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#SC-86916:
checkpoint should pick up Hadoop file system options
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#SC-86916:
invalidateCache should invalidate all DeltaLogs of the given path
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#SC-86916:
read/write Delta paths using DataFrame should pick up Hadoop file system options
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#all operations
should propagate Hadoop file system options
-org.apache.spark.sql.delta.DeltaDataFrameHadoopOptionsSuite#operations without
Hadoop options should fail for fake:// filesystem
-org.apache.spark.sql.delta.DeltaGenerateSymlinkManifestSuite#incremental
manifest: failure to generate manifest throws exception
org.apache.spark.sql.delta.DeltaInsertIntoDataFrameByPathSuite#insertInto:
timestamp partition values with different precisions
org.apache.spark.sql.delta.DeltaInsertIntoDataFrameSuite#insertInto: timestamp
partition values with different precisions
org.apache.spark.sql.delta.DeltaInsertIntoSQLByPathSuite#insertInto: timestamp
partition values with different precisions
@@ -79,7 +58,6 @@
org.apache.spark.sql.delta.DeltaWithCatalogOwnedBatch1Suite#deleted files cause
org.apache.spark.sql.delta.DeltaWithCatalogOwnedBatch2Suite#SC-8810: skipping
deleted file still throws on corrupted file
org.apache.spark.sql.delta.DeltaWithCatalogOwnedBatch2Suite#deleted files
cause failure by default
org.apache.spark.sql.delta.FeatureEnablementConcurrencySuite#Enable column
mapping feature - txnInterleaved: true
-org.apache.spark.sql.delta.HDFSLogStoreSuite#No AbstractFileSystem - end to
end test using data frame
org.apache.spark.sql.delta.ImplicitMergeCastingSuite#MERGE overflow in WHEN
MATCHED THEN UPDATE SET t.value = s.value sourceType: ARRAY<BIGINT>,
targetType: ARRAY<INT> followAnsiEnabled: true, ansiEnabled: true,
storeAssignmentPolicy: ANSI
org.apache.spark.sql.delta.ImplicitMergeCastingSuite#MERGE overflow in WHEN
MATCHED THEN UPDATE SET t.value = s.value sourceType: ARRAY<BIGINT>,
targetType: ARRAY<INT> followAnsiEnabled: true, ansiEnabled: true,
storeAssignmentPolicy: LEGACY
org.apache.spark.sql.delta.ImplicitMergeCastingSuite#MERGE overflow in WHEN
MATCHED THEN UPDATE SET t.value = s.value sourceType: BIGINT, targetType:
DECIMAL(7,2) followAnsiEnabled: true, ansiEnabled: true, storeAssignmentPolicy:
ANSI
@@ -120,7 +98,6 @@
org.apache.spark.sql.delta.ImplicitStreamingMergeCastingSuite#Streaming MERGE ov
org.apache.spark.sql.delta.ImplicitStreamingMergeCastingSuite#Streaming MERGE
overflow sourceType: STRING, targetType: INT followAnsiEnabled: true,
ansiEnabled: true, storeAssignmentPolicy: LEGACY
org.apache.spark.sql.delta.ImplicitStreamingMergeCastingSuite#Streaming MERGE
overflow sourceType: Struct<value:BIGINT>, targetType: Struct<value:INT>
followAnsiEnabled: true, ansiEnabled: true, storeAssignmentPolicy: ANSI
org.apache.spark.sql.delta.ImplicitStreamingMergeCastingSuite#Streaming MERGE
overflow sourceType: Struct<value:BIGINT>, targetType: Struct<value:INT>
followAnsiEnabled: true, ansiEnabled: true, storeAssignmentPolicy: LEGACY
-org.apache.spark.sql.delta.PublicHDFSLogStoreSuite#No AbstractFileSystem - end
to end test using data frame
org.apache.spark.sql.delta.coordinatedcommits.CoordinatedCommitsSuite#Incomplete
backfills are handled properly by next commit after CC to FS conversion
org.apache.spark.sql.delta.deletionvectors.DeletionVectorsSuite#huge table:
delete a small number of rows from tables of 2B rows with DVs
org.apache.spark.sql.delta.deletionvectors.DeletionVectorsSuite#huge table:
read from tables of 2B rows with existing DV of many zeros
@@ -184,8 +161,3 @@ org.apache.spark.sql.delta.rowid.RowIdSuite#missing base
row ids and default row
org.apache.spark.sql.delta.rowid.RowIdSuite#row ids can be read back
org.apache.spark.sql.delta.rowtracking.RowTrackingReadWriteSuite#write and
read table with all-null materialized columns
org.apache.spark.sql.delta.stats.StatsCollectionSuite#recompute stats multiple
columns and files
-org.apache.spark.sql.delta.storage.dv.DeletionVectorWriteDurabilitySuite#a
DELETE whose deletion vector was never written does not corrupt the table
-org.apache.spark.sql.delta.storage.dv.DeletionVectorWriteDurabilitySuite#a
MERGE whose deletion vector was never written does not corrupt the table
-org.apache.spark.sql.delta.storage.dv.DeletionVectorWriteDurabilitySuite#an
UPDATE whose deletion vector was never written does not corrupt the table
-org.apache.spark.sql.delta.storage.dv.DeletionVectorWriteDurabilitySuite#control:
an ordinary write whose close fails does not commit
-org.apache.spark.sql.delta.storage.dv.DeletionVectorWriteDurabilitySuite#the
kill-switch flag off does not apply the propagate-close fix
diff --git
a/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenDeltaNativeWriteGate.scala
b/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenDeltaNativeWriteGate.scala
index d81feb6748..f8302cee39 100644
---
a/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenDeltaNativeWriteGate.scala
+++
b/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenDeltaNativeWriteGate.scala
@@ -17,6 +17,7 @@
package org.apache.spark.sql.delta
import org.apache.gluten.backendsapi.velox.VeloxValidatorApi
+import org.apache.gluten.utils.VeloxFileSystemValidationJniWrapper
import org.apache.spark.sql.catalyst.expressions.Attribute
import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
@@ -26,6 +27,7 @@ import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.types._
import org.apache.hadoop.conf.Configuration
+import org.apache.hadoop.fs.Path
import org.apache.parquet.column.ParquetProperties.WriterVersion
import org.apache.parquet.crypto.EncryptionPropertiesFactory
import org.apache.parquet.hadoop.ParquetOutputFormat
@@ -33,6 +35,7 @@ import org.apache.parquet.hadoop.ParquetOutputFormat
import java.util.Locale
import scala.util.Try
+import scala.util.control.NonFatal
/**
* Decides whether the Velox writer writes what vanilla Delta would: the same
rows, schema, physical
@@ -63,6 +66,32 @@ object GlutenDeltaNativeWriteGate {
})
}
+ /**
+ * Checked with the table's data path. The Velox writer opens files only for
the schemes that
+ * VeloxRuntime::createDataSource maps to a sink, and throws for any other
filesystem, such as
+ * viewfs, wasbs or a custom Hadoop FileSystem. It also throws for HDFS, S3,
GCS and ABFS paths
+ * when Gluten was built without that filesystem, which `registered` checks
as the scan does. A
+ * check that cannot run, such as a native library that does not match the
jar, falls back too,
+ * with a reason that says so.
+ */
+ def unsupportedPath(
+ path: Path,
+ registered: String => Boolean = registeredInVelox): Option[String] = {
+ val scheme = Option(path.toUri.getScheme).map(lower)
+ if (!scheme.exists(writableSchemes.contains)) {
+ Some(s"Paths with scheme ${scheme.getOrElse("<none>")} are not written
by the Velox writer")
+ } else {
+ try {
+ Option.when(!registered(path.toString)) {
+ s"The Velox filesystem for scheme ${scheme.get} is not available in
this build"
+ }
+ } catch {
+ case e @ (_: LinkageError | NonFatal(_)) =>
+ Some(s"Could not check Velox filesystem registration for scheme
${scheme.get}: $e")
+ }
+ }
+ }
+
/**
* Checked where Delta calls its file writer, with the job Hadoop
configuration and the options
* Delta computed for it.
@@ -115,6 +144,9 @@ object GlutenDeltaNativeWriteGate {
}
private val writePartitionColumns = DeltaOptions.WRITE_PARTITION_COLUMNS
+ // The schemes VeloxRuntime::createDataSource writes to: local, HDFS, S3,
GCS and ABFS.
+ private val writableSchemes =
+ Set("file", "hdfs", "s3", "s3a", "oss", "cos", "cosn", "gs", "abfs",
"abfss")
// SQLConf.VARIANT_INFER_SHREDDING_SCHEMA, which Spark 4.0 does not have.
private val variantInferShreddingSchema =
"spark.sql.variant.inferShreddingSchema"
// The codecs the Velox writer maps (VeloxWriterUtils); it would write
others as SNAPPY.
@@ -220,6 +252,9 @@ object GlutenDeltaNativeWriteGate {
private def lower(key: String): String = key.toLowerCase(Locale.ROOT)
+ private def registeredInVelox(path: String): Boolean =
+
VeloxFileSystemValidationJniWrapper.allSupportedByRegisteredFileSystems(Array(path))
+
private def isNested(dataType: DataType): Boolean = dataType match {
case _: ArrayType | _: MapType => true
case _ => false
diff --git
a/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala
b/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala
index 7d5fc113fb..a9d8572cf0 100644
---
a/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala
+++
b/backends-velox/src-delta4/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala
@@ -166,13 +166,15 @@ class GlutenOptimisticTransaction(delegate:
OptimisticTransaction)
val jobHadoopConf =
spark.sessionState.newHadoopConfWithOptions(metadata.configuration
++ deltaLog.options)
// scalastyle:on deltahadoopconfiguration
- val nativeUnsupportedReason =
GlutenDeltaNativeWriteGate.unsupportedWrite(
- spark.sessionState.conf,
- jobHadoopConf,
- options,
- DataTypeUtils.fromAttributes(output),
- partitioningColumns,
- metadata)
+ val nativeUnsupportedReason = GlutenDeltaNativeWriteGate
+ .unsupportedPath(outputPath)
+ .orElse(GlutenDeltaNativeWriteGate.unsupportedWrite(
+ spark.sessionState.conf,
+ jobHadoopConf,
+ options,
+ DataTypeUtils.fromAttributes(output),
+ partitioningColumns,
+ metadata))
if (nativeUnsupportedReason.isEmpty) {
try {
GlutenDeltaFileFormatWriter.write(
diff --git
a/backends-velox/src-delta4/test/scala/org/apache/gluten/delta/GlutenDeltaNativeWriteGateSuite.scala
b/backends-velox/src-delta4/test/scala/org/apache/gluten/delta/GlutenDeltaNativeWriteGateSuite.scala
index 1ec4f50564..25d2939397 100644
---
a/backends-velox/src-delta4/test/scala/org/apache/gluten/delta/GlutenDeltaNativeWriteGateSuite.scala
+++
b/backends-velox/src-delta4/test/scala/org/apache/gluten/delta/GlutenDeltaNativeWriteGateSuite.scala
@@ -25,6 +25,8 @@ import org.apache.spark.sql.internal.SQLConf
import org.apache.spark.sql.test.SharedSparkSession
import org.apache.spark.sql.types._
+import org.apache.hadoop.fs.Path
+
class GlutenDeltaNativeWriteGateSuite extends SharedSparkSession {
private val plainSchema = new StructType().add("id", LongType).add("s",
StringType)
@@ -264,4 +266,74 @@ class GlutenDeltaNativeWriteGateSuite extends
SharedSparkSession {
assert(unsupported(schema = schema).isDefined, dataType)
}
}
+
+ test("filesystems the Velox writer does not open fall back") {
+ val registered: String => Boolean = _ => true
+ for (
+ path <- Seq(
+ "file:/tmp/t",
+ "hdfs://nn:8020/t",
+ "s3://b/t",
+ "s3a://b/t",
+ "oss://b/t",
+ "gs://b/t",
+ "abfss://[email protected]/t")
+ ) {
+ assert(GlutenDeltaNativeWriteGate.unsupportedPath(new Path(path),
registered).isEmpty, path)
+ }
+ for (
+ path <- Seq(
+ "viewfs://cluster/t",
+ "wasbs://[email protected]/t",
+ "s3n://b/t",
+ "failing-fs:/tmp/t",
+ "/tmp/t")
+ ) {
+ assert(GlutenDeltaNativeWriteGate.unsupportedPath(new Path(path),
registered).isDefined, path)
+ }
+ }
+
+ test("filesystems compiled out of the Velox build fall back") {
+ val localOnly: String => Boolean = _.startsWith("file:")
+ assert(GlutenDeltaNativeWriteGate.unsupportedPath(new Path("file:/tmp/t"),
localOnly).isEmpty)
+ for (
+ path <- Seq("hdfs://nn:8020/t", "s3a://b/t", "gs://b/t",
"abfss://[email protected]/t")
+ ) {
+ assert(
+ GlutenDeltaNativeWriteGate
+ .unsupportedPath(new Path(path), localOnly)
+ .exists(_.contains("not available in this build")),
+ path)
+ }
+ }
+
+ test("a filesystem probe that cannot run falls back and says so") {
+ for (
+ failure <- Seq[Throwable](
+ new UnsatisfiedLinkError("allSupportedByRegisteredFileSystems"),
+ new IllegalStateException("backend not initialized"))
+ ) {
+ val failing: String => Boolean = _ => throw failure
+ for (path <- Seq("file:/tmp/t", "s3a://b/t")) {
+ val reason = GlutenDeltaNativeWriteGate.unsupportedPath(new
Path(path), failing)
+ assert(
+ reason.exists(_.contains("Could not check Velox filesystem
registration")),
+ s"$path: $reason")
+ assert(reason.exists(_.contains(failure.getMessage)), s"$path:
$reason")
+ assert(!reason.exists(_.contains("not available in this build")),
s"$path: $reason")
+ }
+ }
+ // A scheme the Velox writer never opens is refused before the probe runs.
+ val neverCalled: String => Boolean = _ => fail("The probe must not run")
+ assert(
+ GlutenDeltaNativeWriteGate
+ .unsupportedPath(new Path("viewfs://cluster/t"), neverCalled)
+ .exists(_.contains("are not written by the Velox writer")))
+ }
+
+ test("the default filesystem probe does not throw") {
+ // This suite loads no Gluten plugin, so the native probe cannot run here.
The gate must still
+ // return a reason (or none, if another suite loaded the library) without
throwing.
+ GlutenDeltaNativeWriteGate.unsupportedPath(new Path("s3a://b/t"))
+ }
}
diff --git
a/backends-velox/src-delta4/test/scala/org/apache/gluten/execution/VeloxDelta4WriteSuite.scala
b/backends-velox/src-delta4/test/scala/org/apache/gluten/execution/VeloxDelta4WriteSuite.scala
index 2c0caddc36..d7bef941bf 100644
---
a/backends-velox/src-delta4/test/scala/org/apache/gluten/execution/VeloxDelta4WriteSuite.scala
+++
b/backends-velox/src-delta4/test/scala/org/apache/gluten/execution/VeloxDelta4WriteSuite.scala
@@ -16,13 +16,16 @@
*/
package org.apache.gluten.execution
+import org.apache.spark.SparkConf
import org.apache.spark.sql.Row
-import org.apache.spark.sql.delta.DeltaLog
+import org.apache.spark.sql.delta.{DeltaLog, FakeFileSystem,
GlutenDeltaNativeWriteGate}
import org.apache.spark.sql.delta.actions.AddFile
+import org.apache.spark.sql.delta.storage.LocalLogStore
import org.apache.spark.sql.delta.test.DeltaSQLCommandTest
import org.apache.spark.sql.delta.util.DeltaFileOperations
import org.apache.spark.sql.internal.SQLConf
+import org.apache.hadoop.fs.Path
import org.apache.parquet.hadoop.ParquetFileReader
import org.apache.parquet.hadoop.metadata.ParquetMetadata
import org.apache.parquet.hadoop.util.HadoopInputFile
@@ -40,6 +43,11 @@ import scala.jdk.CollectionConverters._
*/
class VeloxDelta4WriteSuite extends DeltaSQLCommandTest {
+ // Delta commits to fake:// paths with LocalLogStore, as in Delta's own
FakeFileSystem tests.
+ override protected def sparkConf: SparkConf =
+ super.sparkConf
+ .set(s"spark.delta.logStore.${FakeFileSystem.scheme}.impl",
classOf[LocalLogStore].getName)
+
private def footers(path: String): Seq[(AddFile, ParquetMetadata)] = {
val deltaLog = DeltaLog.forTable(spark, path)
val hadoopConf = deltaLog.newDeltaHadoopConf()
@@ -176,6 +184,28 @@ class VeloxDelta4WriteSuite extends DeltaSQLCommandTest {
}
}
+ test("the file system check passes local tables when the native library is
loaded") {
+ withTempDir {
+ dir => assert(GlutenDeltaNativeWriteGate.unsupportedPath(new
Path(dir.toURI)).isEmpty)
+ }
+ }
+
+ test("a table on a file system the Velox writer cannot open falls back") {
+ withTempDir {
+ dir =>
+ withSQLConf(
+ s"fs.${FakeFileSystem.scheme}.impl" ->
classOf[FakeFileSystem].getName,
+ s"fs.${FakeFileSystem.scheme}.impl.disable.cache" -> "true") {
+ val path = s"${FakeFileSystem.scheme}://${dir.getCanonicalPath}"
+ createTable(path, partitioned = false)
+ writeRows(path)
+
+ assertWrittenBy(path, velox = false, Seq("id", "value", "part"))
+ assertRows(path)
+ }
+ }
+ }
+
private def timestampTypeName(path: String, column: String):
Seq[PrimitiveTypeName] =
footers(path).map {
case (_, footer) =>
diff --git a/docs/backends/velox/get-started/VeloxDelta.md
b/docs/backends/velox/get-started/VeloxDelta.md
index 2029525705..883261352a 100644
--- a/docs/backends/velox/get-started/VeloxDelta.md
+++ b/docs/backends/velox/get-started/VeloxDelta.md
@@ -179,6 +179,9 @@ On Spark 4.x, native Delta write writes what Delta Lake's
own writer would write
columns, and `spark.sql.parquet.writeLegacyFormat` with array or map
columns, or set as a table
property to a value other than the session's;
- concurrent output writers (`spark.sql.maxConcurrentOutputFileWriters`) on
partitioned tables;
+- tables on a filesystem the Velox writer does not open: anything but local,
HDFS, S3 (`s3`,
+ `s3a`, `oss`, `cos`, `cosn`), GCS and ABFS, for example `viewfs` or `wasbs`,
and HDFS, S3, GCS
+ or ABFS when Gluten was built without that filesystem;
- Iceberg compatibility, variant shredding and any writer option the gate does
not know.
These checks are in `GlutenDeltaNativeWriteGate` (from code).
@@ -446,7 +449,7 @@ For Spark 3.5 id-mode tables, keep
`spark.gluten.sql.columnar.backend.velox.delt
| Problem | Status | Versions | Issue |
|---|---|---|---|
| A write partitioned by a FLOAT or DOUBLE column fails with `Unsupported
partition type`. | Exception | 3.5, from code. Spark 4.x only with
`delta.writePartitionColumnsToParquet=false` (from code) |
[#13138](https://github.com/apache/gluten/issues/13138) |
-| A write to a path scheme the native library cannot write fails at task time.
This covers custom Hadoop file systems, and S3, GCS, HDFS or ABFS in a build
without that connector. | Exception | 3.5 and 4.x, seen on 4.1 (custom file
system), from code (missing connector) |
[#4963](https://github.com/apache/gluten/issues/4963) |
+| A write to a path scheme the native library cannot write fails at task time.
This covers custom Hadoop file systems, and S3, GCS, HDFS or ABFS in a build
without that connector. | Exception | 3.5, from code. Spark 4.x falls back:
seen on 4.1 for custom file systems, from code for a missing connector |
[#4963](https://github.com/apache/gluten/issues/4963) |
| Files written for a column mapping table, in name or id mode, have no
Parquet field IDs, which the Delta Lake protocol requires. Delta Lake and
Gluten read name-mode files by physical name. Id-mode scans now fall back to
Spark and require field IDs. | ResultMismatch | 3.5, from code. Spark 4.x falls
back | [#13383](https://github.com/apache/gluten/pull/13383) |
| Spark's reader fails on natively written id-mode files with `Spark read
schema expects field Ids, but Parquet file schema doesn't contain any field
Ids`. Id-mode scans now always fall back, so this error occurs with Gluten
enabled too, including for files previously read natively by physical name.
With `spark.sql.parquet.fieldId.read.ignoreMissing=true`, Spark skips this
check and returns NULL for the data columns of these files (from code, not
tested with these files). It does not res [...]
| Files written for a UniForm table have no Parquet field IDs, so the Iceberg
metadata points at files without IDs. No error is raised. | ResultMismatch |
3.5, from code. Spark 4.x falls back |
[#12957](https://github.com/apache/gluten/pull/12957) |
@@ -590,7 +593,7 @@ A blank cell means unknown.
| userMetadata | (unset) | Stored in `commitInfo.userMetadata`. Commit only. |
🚫 |
| dataChange | true | Sets `dataChange` on the file actions. Commit only. | 🚫 |
| parquet.* Hadoop settings | | Native writes ignore `parquet.*` keys in the
Hadoop configuration, such as `spark.hadoop.parquet.block.size`, which Delta's
writer applies. Delta Lake drops `parquet.*` writer options before the write,
so as writer options they have no effect with or without Gluten. Both are from
code. Use `spark.gluten.sql.columnar.parquet.write.blockSize` for row groups.
On Spark 4.x, `parquet.writer.version=v2` and `parquet.crypto.factory.class`
make the write fall back [...]
-| File system schemes the native library cannot write | | Native writes fail
at task time instead of falling back. A custom Hadoop file system scheme fails
(seen on 4.1). See [Write problems](#write-problems). | ❌ |
+| File system schemes the native library cannot write | | On Spark 3.5, native
writes fail at task time instead of falling back (from code). On Spark 4.x, the
write falls back to Delta's writer: seen on 4.1 for a custom Hadoop file system
scheme, from code for a missing connector. See [Write
problems](#write-problems). | ⚠️ |
| fs.* per-write options for supported stores | | Per-write options such as
`fs.s3a.access.key` do not reach the native writer (from code). | ❌ |
### Delta Table Properties
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]