dongjoon-hyun commented on code in PR #60679:
URL: https://github.com/apache/spark/pull/60679#discussion_r4637490988


##########
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/WritableColumnVector.java:
##########
@@ -816,28 +814,82 @@ public final int appendStruct(boolean isNull) {
     return elementsAppended;
   }
 
+  // Types whose NULL values must be appended with appendStruct(true), which 
also appends a NULL
+  // to every child column.
+  private static boolean isStructLike(DataType type) {
+    return type instanceof StructType || type instanceof VariantType
+        || type instanceof CalendarIntervalType
+        || type instanceof AnyTimestampNanoType;
+  }
+
+  // Whether `value` contains a map at any depth.
+  private static boolean containsMap(Object value) {
+    if (value instanceof ArrayBasedMapData) {
+      return true;
+    }
+    Object[] elements = null;
+    if (value instanceof GenericArrayData arrayData) {
+      elements = arrayData.array();
+    } else if (value instanceof GenericInternalRow row) {
+      elements = row.values();
+    }
+    if (elements != null) {
+      for (Object element : elements) {
+        if (containsMap(element)) {
+          return true;
+        }
+      }
+    }
+    return false;
+  }
+
   /**
    * Appends multiple copies of a Java Object to the vector using the 
corresponding append* method
-   * above.
+   * above. A NULL nested in a struct or array, and a decimal whose unscaled 
value overflows a
+   * long, are appended too, unless the value contains a map: the map branch 
does not give each
+   * row its own entries yet (SPARK-60940), so such a value keeps failing as 
it did before, with
+   * Optional.empty() for the NULL and ArithmeticException for the decimal.
    * @param length: The number of instances to append
    * @param value value to append to the vector
    * @return the number of values appended if the value maps to one of the 
append* methods above,
    * or Optional.empty() otherwise.
    */
   public Optional<Integer> appendObjects(int length, Object value) {
+    return appendObjectsImpl(length, value, !containsMap(value));
+  }
+
+  private Optional<Integer> appendObjectsImpl(
+      int length, Object value, boolean fillNullsAndWideDecimals) {
+    if (value == null) {

Review Comment:
   **[11] No unit test calls `appendObjects` directly, and the off-heap vectors 
are not tested.**
   
   The new NULL branch and the byte-array path for wide decimals are covered 
only through `InsertSuite`, which runs with the default 
`spark.sql.columnVector.offheap.enabled=false`. So `OffHeapColumnVector` never 
writes these NULLs or byte arrays in a test. `ColumnarBatchSuite` has no 
`appendObjects` test yet. Could we add one there for both `MemoryMode.ON_HEAP` 
and `MemoryMode.OFF_HEAP`, like the tests in #60143?



##########
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/WritableColumnVector.java:
##########
@@ -816,28 +814,82 @@ public final int appendStruct(boolean isNull) {
     return elementsAppended;
   }
 
+  // Types whose NULL values must be appended with appendStruct(true), which 
also appends a NULL
+  // to every child column.
+  private static boolean isStructLike(DataType type) {
+    return type instanceof StructType || type instanceof VariantType
+        || type instanceof CalendarIntervalType
+        || type instanceof AnyTimestampNanoType;
+  }
+
+  // Whether `value` contains a map at any depth.
+  private static boolean containsMap(Object value) {
+    if (value instanceof ArrayBasedMapData) {
+      return true;
+    }
+    Object[] elements = null;
+    if (value instanceof GenericArrayData arrayData) {
+      elements = arrayData.array();
+    } else if (value instanceof GenericInternalRow row) {
+      elements = row.values();
+    }
+    if (elements != null) {
+      for (Object element : elements) {
+        if (containsMap(element)) {
+          return true;
+        }
+      }
+    }
+    return false;
+  }
+
   /**
    * Appends multiple copies of a Java Object to the vector using the 
corresponding append* method
-   * above.
+   * above. A NULL nested in a struct or array, and a decimal whose unscaled 
value overflows a
+   * long, are appended too, unless the value contains a map: the map branch 
does not give each
+   * row its own entries yet (SPARK-60940), so such a value keeps failing as 
it did before, with
+   * Optional.empty() for the NULL and ArithmeticException for the decimal.
    * @param length: The number of instances to append
    * @param value value to append to the vector
    * @return the number of values appended if the value maps to one of the 
append* methods above,
    * or Optional.empty() otherwise.
    */
   public Optional<Integer> appendObjects(int length, Object value) {
+    return appendObjectsImpl(length, value, !containsMap(value));

Review Comment:
   **[9] `RowToColumnConverter` already appends any value by its `DataType`. 
Could `appendObjects` use it?**
   
   `appendObjects` picks a branch from the Java class of the value, so each 
kind of value needs its own case: the NULL here, a decimal that overflows a 
long, and maps in SPARK-60940. A `BINARY` default (a `byte[]`) still falls 
through to `Optional.empty()`. `RowToColumnConverter` in `Columnar.scala` 
appends by the column's type instead. It handles NULLs, including 
`appendStruct(true)` for struct-like types (`Columnar.scala:326-329`), decimals 
by the column's `DecimalType`, and binary values. It also handles maps with one 
`appendArray` per row (`Columnar.scala:479`). With it, `containsMap`, the 
`fillNullsAndWideDecimals` flag and the `toUnscaledLong()` call kept for its 
exception would not be needed. Could we fill the default with a 
`RowToColumnConverter` for a one-field schema, appending it once per row?



##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -2063,6 +2065,106 @@ class InsertSuite extends DataSourceTest with 
SharedSparkSession {
     }
   }
 
+  // Creates a table in `format` with two old rows, then adds columns whose 
existence defaults
+  // have a NULL field, a NULL array element, a NULL nested struct or a 
decimal whose unscaled
+  // value overflows a long, at the top level or in a struct and array (s, a, 
n, ta, as, d, e, f,
+  // w); compact and wide decimals that fit in a long (i, l, c); and defaults 
that contain a map
+  // and also a NULL or an overflowing decimal, which keep the old error: in 
the map itself (m,
+  // md), in a map in a struct (sm), next to a map in a struct (sn, sw), and 
next to a map in an
+  // array (am).
+  private def withNullFieldAndWideDecimalDefaults(format: String)(f: => Unit): 
Unit = {
+    val wide = "99999999999999999999999999999999999999"
+    withSQLConf(
+      SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.PARQUET_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true") {
+      withTable("t") {
+        sql(s"create table t(id int) using $format")
+        sql("insert into t values (1), (2)")
+        sql("alter table t add columns (" +
+          "s struct<tier: int, nickname: string> " +
+          "default named_struct('tier', 1, 'nickname', cast(null as string)), 
" +
+          "a struct<tier: int, scores: array<int>> " +
+          "default named_struct('tier', 1, 'scores', array(1, null, 3)), " +
+          "n struct<x: int, inner: struct<y: int>> " +
+          "default named_struct('x', 1, 'inner', cast(null as struct<y: 
int>)), " +
+          "ta array<int> default array(1, null, 3), " +
+          "as array<struct<x: int>> " +
+          "default array(named_struct('x', 1), cast(null as struct<x: int>)), 
" +
+          s"d decimal(38, 0) default $wide, " +
+          "e decimal(19, 0) default -9999999999999999999, " +
+          "f decimal(38, 30) default 1.5, " +
+          "i decimal(9, 2) default 1.25, " +
+          "l decimal(18, 0) default 999999999999999999, " +
+          "c decimal(38, 10) default 123.5, " +
+          "w struct<v: decimal(38, 0), vs: array<decimal(38, 0)>> " +
+          s"default named_struct('v', $wide, 'vs', array($wide)), " +
+          "m map<string, int> default map('a', cast(null as int), 'b', 2), " +
+          s"md map<string, decimal(38, 0)> default map('a', $wide), " +
+          "sm struct<m: map<string, decimal(38, 0)>> " +
+          s"default named_struct('m', map('a', $wide)), " +
+          "sn struct<n: int, m: map<string, int>> " +
+          "default named_struct('n', cast(null as int), 'm', map('a', 1, 'b', 
2)), " +
+          "sw struct<v: decimal(38, 0), m: map<string, int>> " +
+          s"default named_struct('v', $wide, 'm', map('a', 1, 'b', 2)), " +
+          "am array<map<string, int>> " +
+          "default array(map('a', 1, 'b', 2), cast(null as map<string, 
int>)))")
+        f
+      }
+    }
+  }
+
+  test("vectorized readers fill existence defaults with NULL fields and wide 
decimals") {
+    val wide = BigDecimal("99999999999999999999999999999999999999")
+    val filledColumns = Seq("s", "a", "n", "ta", "as", "d", "e", "f", "w", 
"i", "l", "c")
+    val filledValues = Seq(Row(1, null), Row(1, Seq(1, null, 3)), Row(1, 
null), Seq(1, null, 3),
+      Seq(Row(1), null), wide, BigDecimal("-9999999999999999999"), 
BigDecimal("1.5"),
+      // checkAnswer does not convert decimals inside arrays to Scala 
BigDecimal.
+      Row(wide, Seq(wide.bigDecimal)),
+      BigDecimal("1.25"), BigDecimal("999999999999999999"), 
BigDecimal("123.5"))
+    // The map branch does not give each row its own entries yet, so filling 
the NULL or the wide
+    // decimal of a default that contains a map would drop entries. Such 
defaults keep the old
+    // error: the reader's NULL check for a NULL, and an ArithmeticException 
for the decimal.
+    val nullError = "Cannot assign default column value"
+    val decimalError = "BigInteger out of long range"
+    val mapColumnErrors = Seq("m" -> nullError, "md" -> decimalError, "sm" -> 
decimalError,
+      "sn" -> nullError, "sw" -> decimalError, "am" -> nullError)
+    Seq("parquet", "orc").foreach { format =>
+      withNullFieldAndWideDecimalDefaults(format) {
+        // The catalog table reads through the V1 file format. Its files, read 
by path with the
+        // table schema (which carries the existence defaults) and no V1 
fallback, read through
+        // the V2 reader factories.
+        val table = 
spark.sessionState.catalog.getTableMetadata(TableIdentifier("t"))
+        Seq(true, false).foreach { useV1 =>
+          withSQLConf(SQLConf.USE_V1_SOURCE_LIST.key -> (if (useV1) 
"parquet,orc" else "")) {
+            val clue = s"$format, useV1 = $useV1"
+            def read(columns: String): DataFrame = if (useV1) {
+              sql(s"select id, $columns from t")
+            } else {
+              
spark.read.schema(table.schema).format(format).load(table.location.toString)
+                .selectExpr("id" +: columns.split(", ").toSeq: _*)
+            }
+            val df = read(filledColumns.mkString(", "))
+            val plan = df.queryExecution.executedPlan
+            assert(plan.exists(_.isInstanceOf[FileSourceScanExec]) == useV1, 
clue)
+            assert(plan.exists(_.isInstanceOf[BatchScanExec]) == !useV1, clue)

Review Comment:
   **[10] The plan checks do not show that the scan is columnar.**
   
   They only check the node class. `FileSourceScanExec` and `BatchScanExec` 
also read row by row when the schema does not allow columnar reads, and then 
`appendObjects` is never called. ORC V2, for example, reads columnar only when 
whole-stage codegen is on, the schema stays under `wholeStageMaxNumFields`, and 
every type passes `OrcUtils.supportColumnarReads` 
(`OrcPartitionReaderFactory.scala:68-71`). If a later column or a conf change 
crossed one of these, `checkAnswer` would still pass as long as the row-based 
path fills the defaults, without reaching this PR's change. Could we also 
assert `plan.exists(_.supportsColumnar)`?



##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -2063,6 +2065,106 @@ class InsertSuite extends DataSourceTest with 
SharedSparkSession {
     }
   }
 
+  // Creates a table in `format` with two old rows, then adds columns whose 
existence defaults
+  // have a NULL field, a NULL array element, a NULL nested struct or a 
decimal whose unscaled
+  // value overflows a long, at the top level or in a struct and array (s, a, 
n, ta, as, d, e, f,
+  // w); compact and wide decimals that fit in a long (i, l, c); and defaults 
that contain a map
+  // and also a NULL or an overflowing decimal, which keep the old error: in 
the map itself (m,
+  // md), in a map in a struct (sm), next to a map in a struct (sn, sw), and 
next to a map in an
+  // array (am).
+  private def withNullFieldAndWideDecimalDefaults(format: String)(f: => Unit): 
Unit = {
+    val wide = "99999999999999999999999999999999999999"
+    withSQLConf(
+      SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.PARQUET_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true") {
+      withTable("t") {
+        sql(s"create table t(id int) using $format")
+        sql("insert into t values (1), (2)")
+        sql("alter table t add columns (" +
+          "s struct<tier: int, nickname: string> " +
+          "default named_struct('tier', 1, 'nickname', cast(null as string)), 
" +
+          "a struct<tier: int, scores: array<int>> " +
+          "default named_struct('tier', 1, 'scores', array(1, null, 3)), " +
+          "n struct<x: int, inner: struct<y: int>> " +
+          "default named_struct('x', 1, 'inner', cast(null as struct<y: 
int>)), " +
+          "ta array<int> default array(1, null, 3), " +
+          "as array<struct<x: int>> " +

Review Comment:
   **[13] Nit: `as` is a reserved keyword in ANSI SQL.**
   
   The DDL and the `select id, $columns from t` at L2143 use it unquoted. That 
parses only because `spark.sql.ansi.enforceReservedKeywords` is false by 
default (`docs/sql-ref-ansi-compliance.md` lists `AS` as reserved). `ta, as, d` 
in the select list also reads like an alias. Could we rename it, for example to 
`sa`?



##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -2063,6 +2065,106 @@ class InsertSuite extends DataSourceTest with 
SharedSparkSession {
     }
   }
 
+  // Creates a table in `format` with two old rows, then adds columns whose 
existence defaults
+  // have a NULL field, a NULL array element, a NULL nested struct or a 
decimal whose unscaled
+  // value overflows a long, at the top level or in a struct and array (s, a, 
n, ta, as, d, e, f,
+  // w); compact and wide decimals that fit in a long (i, l, c); and defaults 
that contain a map
+  // and also a NULL or an overflowing decimal, which keep the old error: in 
the map itself (m,
+  // md), in a map in a struct (sm), next to a map in a struct (sn, sw), and 
next to a map in an
+  // array (am).
+  private def withNullFieldAndWideDecimalDefaults(format: String)(f: => Unit): 
Unit = {
+    val wide = "99999999999999999999999999999999999999"
+    withSQLConf(
+      SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.PARQUET_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true") {
+      withTable("t") {
+        sql(s"create table t(id int) using $format")
+        sql("insert into t values (1), (2)")
+        sql("alter table t add columns (" +
+          "s struct<tier: int, nickname: string> " +
+          "default named_struct('tier', 1, 'nickname', cast(null as string)), 
" +
+          "a struct<tier: int, scores: array<int>> " +
+          "default named_struct('tier', 1, 'scores', array(1, null, 3)), " +
+          "n struct<x: int, inner: struct<y: int>> " +
+          "default named_struct('x', 1, 'inner', cast(null as struct<y: 
int>)), " +
+          "ta array<int> default array(1, null, 3), " +
+          "as array<struct<x: int>> " +
+          "default array(named_struct('x', 1), cast(null as struct<x: int>)), 
" +
+          s"d decimal(38, 0) default $wide, " +
+          "e decimal(19, 0) default -9999999999999999999, " +
+          "f decimal(38, 30) default 1.5, " +
+          "i decimal(9, 2) default 1.25, " +
+          "l decimal(18, 0) default 999999999999999999, " +
+          "c decimal(38, 10) default 123.5, " +
+          "w struct<v: decimal(38, 0), vs: array<decimal(38, 0)>> " +
+          s"default named_struct('v', $wide, 'vs', array($wide)), " +
+          "m map<string, int> default map('a', cast(null as int), 'b', 2), " +
+          s"md map<string, decimal(38, 0)> default map('a', $wide), " +
+          "sm struct<m: map<string, decimal(38, 0)>> " +
+          s"default named_struct('m', map('a', $wide)), " +
+          "sn struct<n: int, m: map<string, int>> " +
+          "default named_struct('n', cast(null as int), 'm', map('a', 1, 'b', 
2)), " +
+          "sw struct<v: decimal(38, 0), m: map<string, int>> " +
+          s"default named_struct('v', $wide, 'm', map('a', 1, 'b', 2)), " +
+          "am array<map<string, int>> " +
+          "default array(map('a', 1, 'b', 2), cast(null as map<string, 
int>)))")
+        f
+      }
+    }
+  }
+
+  test("vectorized readers fill existence defaults with NULL fields and wide 
decimals") {
+    val wide = BigDecimal("99999999999999999999999999999999999999")
+    val filledColumns = Seq("s", "a", "n", "ta", "as", "d", "e", "f", "w", 
"i", "l", "c")
+    val filledValues = Seq(Row(1, null), Row(1, Seq(1, null, 3)), Row(1, 
null), Seq(1, null, 3),
+      Seq(Row(1), null), wide, BigDecimal("-9999999999999999999"), 
BigDecimal("1.5"),
+      // checkAnswer does not convert decimals inside arrays to Scala 
BigDecimal.
+      Row(wide, Seq(wide.bigDecimal)),
+      BigDecimal("1.25"), BigDecimal("999999999999999999"), 
BigDecimal("123.5"))
+    // The map branch does not give each row its own entries yet, so filling 
the NULL or the wide
+    // decimal of a default that contains a map would drop entries. Such 
defaults keep the old
+    // error: the reader's NULL check for a NULL, and an ArithmeticException 
for the decimal.
+    val nullError = "Cannot assign default column value"
+    val decimalError = "BigInteger out of long range"
+    val mapColumnErrors = Seq("m" -> nullError, "md" -> decimalError, "sm" -> 
decimalError,
+      "sn" -> nullError, "sw" -> decimalError, "am" -> nullError)
+    Seq("parquet", "orc").foreach { format =>
+      withNullFieldAndWideDecimalDefaults(format) {
+        // The catalog table reads through the V1 file format. Its files, read 
by path with the
+        // table schema (which carries the existence defaults) and no V1 
fallback, read through
+        // the V2 reader factories.
+        val table = 
spark.sessionState.catalog.getTableMetadata(TableIdentifier("t"))
+        Seq(true, false).foreach { useV1 =>
+          withSQLConf(SQLConf.USE_V1_SOURCE_LIST.key -> (if (useV1) 
"parquet,orc" else "")) {
+            val clue = s"$format, useV1 = $useV1"
+            def read(columns: String): DataFrame = if (useV1) {
+              sql(s"select id, $columns from t")
+            } else {
+              
spark.read.schema(table.schema).format(format).load(table.location.toString)
+                .selectExpr("id" +: columns.split(", ").toSeq: _*)
+            }
+            val df = read(filledColumns.mkString(", "))
+            val plan = df.queryExecution.executedPlan
+            assert(plan.exists(_.isInstanceOf[FileSourceScanExec]) == useV1, 
clue)
+            assert(plan.exists(_.isInstanceOf[BatchScanExec]) == !useV1, clue)
+            checkAnswer(df, Seq(Row(1 +: filledValues: _*), Row(2 +: 
filledValues: _*)))
+            // Only V1: the V2 reader factories do not close a file whose 
batch fails to

Review Comment:
   **[12] Minor: this is pre-existing, but only the ORC V2 factory leaves the 
file open.**
   
   `ParquetPartitionReaderFactory` registers its task-completion listener 
before `initialize` (`ParquetPartitionReaderFactory.scala:343` and `:372`, 
SPARK-23457), as `OrcFileFormat` does (`OrcFileFormat.scala:220-224`, 
SPARK-23399). `OrcPartitionReaderFactory.buildColumnarReader` does not. 
`batchReader.initialize` opens the file at 
`OrcPartitionReaderFactory.scala:152`, and an exception from `initBatch` at 
`:157` leaves it open, because the `PartitionRecordReader` that would close it 
is created only at `:163`. If I read it right, the map-containing error reads 
could also run on Parquet V2, and this comment could name ORC only. Could we 
try that, and file a JIRA for the ORC V2 leak?



##########
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala:
##########
@@ -2063,6 +2065,106 @@ class InsertSuite extends DataSourceTest with 
SharedSparkSession {
     }
   }
 
+  // Creates a table in `format` with two old rows, then adds columns whose 
existence defaults
+  // have a NULL field, a NULL array element, a NULL nested struct or a 
decimal whose unscaled
+  // value overflows a long, at the top level or in a struct and array (s, a, 
n, ta, as, d, e, f,
+  // w); compact and wide decimals that fit in a long (i, l, c); and defaults 
that contain a map
+  // and also a NULL or an overflowing decimal, which keep the old error: in 
the map itself (m,
+  // md), in a map in a struct (sm), next to a map in a struct (sn, sw), and 
next to a map in an
+  // array (am).
+  private def withNullFieldAndWideDecimalDefaults(format: String)(f: => Unit): 
Unit = {
+    val wide = "99999999999999999999999999999999999999"
+    withSQLConf(
+      SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.PARQUET_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> "true",
+      SQLConf.ORC_VECTORIZED_READER_NESTED_COLUMN_ENABLED.key -> "true") {
+      withTable("t") {
+        sql(s"create table t(id int) using $format")
+        sql("insert into t values (1), (2)")
+        sql("alter table t add columns (" +
+          "s struct<tier: int, nickname: string> " +
+          "default named_struct('tier', 1, 'nickname', cast(null as string)), 
" +
+          "a struct<tier: int, scores: array<int>> " +
+          "default named_struct('tier', 1, 'scores', array(1, null, 3)), " +
+          "n struct<x: int, inner: struct<y: int>> " +
+          "default named_struct('x', 1, 'inner', cast(null as struct<y: 
int>)), " +
+          "ta array<int> default array(1, null, 3), " +
+          "as array<struct<x: int>> " +
+          "default array(named_struct('x', 1), cast(null as struct<x: int>)), 
" +
+          s"d decimal(38, 0) default $wide, " +
+          "e decimal(19, 0) default -9999999999999999999, " +
+          "f decimal(38, 30) default 1.5, " +
+          "i decimal(9, 2) default 1.25, " +
+          "l decimal(18, 0) default 999999999999999999, " +
+          "c decimal(38, 10) default 123.5, " +
+          "w struct<v: decimal(38, 0), vs: array<decimal(38, 0)>> " +
+          s"default named_struct('v', $wide, 'vs', array($wide)), " +
+          "m map<string, int> default map('a', cast(null as int), 'b', 2), " +
+          s"md map<string, decimal(38, 0)> default map('a', $wide), " +
+          "sm struct<m: map<string, decimal(38, 0)>> " +
+          s"default named_struct('m', map('a', $wide)), " +
+          "sn struct<n: int, m: map<string, int>> " +
+          "default named_struct('n', cast(null as int), 'm', map('a', 1, 'b', 
2)), " +
+          "sw struct<v: decimal(38, 0), m: map<string, int>> " +
+          s"default named_struct('v', $wide, 'm', map('a', 1, 'b', 2)), " +
+          "am array<map<string, int>> " +
+          "default array(map('a', 1, 'b', 2), cast(null as map<string, 
int>)))")
+        f
+      }
+    }
+  }
+
+  test("vectorized readers fill existence defaults with NULL fields and wide 
decimals") {

Review Comment:
   **[14] Nit: could the test name start with `SPARK-62034: `?**
   
   Most tests in this suite carry their JIRA ID, like the neighbouring 
`SPARK-39985 ...`. That makes a failure easy to trace to its ticket and to run 
with `-z SPARK-62034`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to