nssalian commented on code in PR #18851:
URL: https://github.com/apache/iceberg/pull/18851#discussion_r4556359748
##########
spark/v4.1/spark/src/test/java/org/apache/iceberg/spark/sql/TestSparkVariantRead.java:
##########
@@ -557,6 +552,65 @@ public void testReadShreddedWithMetricsDisabled(String
metricsMode)
sql("DROP TABLE IF EXISTS %s", noStatsTable);
}
+ @Test
+ void readShreddedArrayEnabledBySessionConf()
+ throws IOException, NoSuchTableException, ParseException {
+ String table = CATALOG + ".default.var_shredded_array";
+ sql("DROP TABLE IF EXISTS %s", table);
+ sql(
+ "CREATE TABLE %s (id BIGINT, v VARIANT) USING iceberg "
Review Comment:
Added: readShreddedArrayEnabledBySessionConf is now parameterized over an
optional and a required (v VARIANT NOT NULL) variant, in 4.0/4.1/4.2. It checks
the column is required in the table schema, compares vectorized and row-reader
results, and asserts the scan is columnar.
--
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]