ayushtkn commented on code in PR #6152:
URL: https://github.com/apache/hive/pull/6152#discussion_r2618818681
##########
iceberg/iceberg-handler/src/test/queries/positive/variant_type_shredding.q:
##########
@@ -0,0 +1,39 @@
+-- Mask random uuid
+--! qt:replace:/(\s+'uuid'=')\S+('\s*)/$1#Masked#$2/
+-- Mask random snapshot id
+--! qt:replace:/('current-snapshot-id'=')\d+/$1#SnapshotId#/
+-- Mask current-snapshot-timestamp-ms
+--! qt:replace:/('current-snapshot-timestamp-ms'=')\d+/$1#Masked#/
+
+-- SORT_QUERY_RESULTS
+set hive.explain.user=false;
+set hive.fetch.task.conversion=none;
+
+drop table if exists tbl_shredded_variant;
+
+-- Create test table
+CREATE EXTERNAL TABLE tbl_shredded_variant (
+ id INT,
+ data VARIANT
+) STORED BY ICEBERG
+tblproperties(
+ 'format-version'='3',
+ 'variant.shredding.enabled'='true'
+);
+
+-- Insert JSON structures
+INSERT INTO tbl_shredded_variant VALUES
+(1, parse_json('{"name": "John", "age": 30, "active": true}')),
+(2, parse_json('{"name": "Bill", "active": false}')),
+(3, parse_json('{"name": "Henry", "age": 20}'));
+
+-- Disable vectorized execution until Variant type is supported
+set hive.vectorized.execution.enabled=false;
Review Comment:
https://issues.apache.org/jira/browse/HIVE-29372
--
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]