mbutrovich commented on code in PR #7575:
URL: https://github.com/apache/datafusion-comet/pull/7575#discussion_r4779708010
##########
spark/src/test/scala/org/apache/comet/CometIcebergNativeSuite.scala:
##########
@@ -8088,11 +8085,14 @@ class CometIcebergNativeSuite
INSERT INTO $table VALUES
(1, parse_json('{"num": 25}')),
(2, parse_json('{"num": 30}')),
- (3, parse_json('{"num": 35}'))
+ (3, parse_json('{"num": 35}')),
+ (4, parse_json('null')),
+ (5, NULL)
""")
- checkIcebergNativeScanFallback(
- s"SELECT id FROM $table WHERE try_variant_get(data, '$$.num', 'int')
> 30 ORDER BY id",
- "the native scan does not support the VARIANT type")
+ checkIcebergNativeScan(
+ s"SELECT id FROM $table WHERE try_variant_get(data, '$$.num', 'int')
> 30 ORDER BY id")
+ checkIcebergNativeScan(s"SELECT id, to_json(data) FROM $table ORDER BY
id")
Review Comment:
Added `variant columns added after files were written read natively`. It
writes a file, adds a top-level `data VARIANT` and a `nested.data VARIANT`,
writes a second file, and checks native reads of both files against Spark. A
read of `nested.data` without `nested.label` falls back on the existing check
for structs whose projected fields were all added by schema evolution, so the
test checks that fallback too.
--
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]