Copilot commented on code in PR #5961: URL: https://github.com/apache/hive/pull/5961#discussion_r2245505818
########## iceberg/iceberg-handler/src/test/queries/positive/iceberg_v3_deletion_vectors.q: ########## @@ -0,0 +1,79 @@ +-- Mask random uuid +--! qt:replace:/(\s+'uuid'=')\S+('\s*)/$1#Masked#$2/ +-- Mask a random snapshot id +--! qt:replace:/(\s\'current-snapshot-id\'=\')(\d+)(\')/$1#Masked#$3/ +-- Mask added file size +--! qt:replace:/(\S+\"added-files-size\":\")(\d+)(\")/$1#Masked#$3/ +-- Mask total file size +--! qt:replace:/(\S+\"total-files-size\":\")(\d+)(\")/$1#Masked#$3/ +-- Mask current-snapshot-timestamp-ms +--! qt:replace:/(\s\'current-snapshot-timestamp-ms\'=\')(\d+)(\')/$1#Masked#$3/ +-- Mask iceberg version +--! qt:replace:/("iceberg-version":")(\w+\s\w+\s\d+\.\d+\.\d+\s\(\w+\s\w+\))/$1#Masked#/ + +-- create an unpartitioned table + create table ice01 (id int) Stored by Iceberg stored as ORC + TBLPROPERTIES('format-version'='3'); + +-- check the property value +show create table ice01; + +-- insert some values +insert into ice01 values (1),(2),(3),(4); + +-- check the inserted values +select * from ice01; + +-- delete some values +delete from ice01 where id>2; +select content, file_format, spec_id, record_count, content_offset from default.ice01.delete_files; + +-- check the values, the delete value should be there +select * from ice01 order by id; + +-- insert some more data + insert into ice01 values (5),(6),(7),(8); + +-- check the values, only the delete value shouldn't be there +select * from ice01 order by id; + +-- delete one value +delete from ice01 where id=7; +select content, file_format, spec_id, record_count, content_offset from default.ice01.delete_files; + +-- check the entries, the deleted entries shouldn't be there. +select * from ice01 order by id; + +-- create a partitioned table + create table icepart01 (id int) partitioned by (part int) Stored by Iceberg stored as ORC + TBLPROPERTIES('format-version'='3'); + +-- insert some values +insert into icepart01 values (1,1),(2,1),(3,2),(4,2); + +-- check the inserted values +select * from icepart01 order by id;; Review Comment: There is an extra semicolon at the end of the SQL statement. It should be 'select * from icepart01 order by id;' with only one semicolon. ```suggestion select * from icepart01 order by id; ``` ########## iceberg/iceberg-handler/src/test/queries/positive/iceberg_v3_deletion_vectors.q: ########## @@ -0,0 +1,79 @@ +-- Mask random uuid +--! qt:replace:/(\s+'uuid'=')\S+('\s*)/$1#Masked#$2/ +-- Mask a random snapshot id +--! qt:replace:/(\s\'current-snapshot-id\'=\')(\d+)(\')/$1#Masked#$3/ +-- Mask added file size +--! qt:replace:/(\S+\"added-files-size\":\")(\d+)(\")/$1#Masked#$3/ +-- Mask total file size +--! qt:replace:/(\S+\"total-files-size\":\")(\d+)(\")/$1#Masked#$3/ +-- Mask current-snapshot-timestamp-ms +--! qt:replace:/(\s\'current-snapshot-timestamp-ms\'=\')(\d+)(\')/$1#Masked#$3/ +-- Mask iceberg version +--! qt:replace:/("iceberg-version":")(\w+\s\w+\s\d+\.\d+\.\d+\s\(\w+\s\w+\))/$1#Masked#/ + +-- create an unpartitioned table + create table ice01 (id int) Stored by Iceberg stored as ORC + TBLPROPERTIES('format-version'='3'); + +-- check the property value +show create table ice01; + +-- insert some values +insert into ice01 values (1),(2),(3),(4); + +-- check the inserted values +select * from ice01; + +-- delete some values +delete from ice01 where id>2; +select content, file_format, spec_id, record_count, content_offset from default.ice01.delete_files; + +-- check the values, the delete value should be there +select * from ice01 order by id; + +-- insert some more data + insert into ice01 values (5),(6),(7),(8); + +-- check the values, only the delete value shouldn't be there +select * from ice01 order by id; + +-- delete one value +delete from ice01 where id=7; +select content, file_format, spec_id, record_count, content_offset from default.ice01.delete_files; + +-- check the entries, the deleted entries shouldn't be there. +select * from ice01 order by id; + +-- create a partitioned table + create table icepart01 (id int) partitioned by (part int) Stored by Iceberg stored as ORC + TBLPROPERTIES('format-version'='3'); + +-- insert some values +insert into icepart01 values (1,1),(2,1),(3,2),(4,2); + +-- check the inserted values +select * from icepart01 order by id;; + +-- delete some values +delete from icepart01 where id>=2 AND id<4; +select content, file_format, spec_id, record_count, content_offset from default.icepart01.delete_files; + +-- check the values, the delete value should be there +select * from icepart01; + +-- insert some more data + insert into icepart01 values (5,1),(6,2),(7,1),(8,2); + +-- check the values, only the delete value shouldn't be there +select * from icepart01 order by id; + +-- delete one value +delete from icepart01 where id=7; +select content, file_format, spec_id, record_count, content_offset from default.icepart01.delete_files; + +-- check the entries, the deleted entries shouldn't be there. +select * from icepart01 order by id;; Review Comment: There is an extra semicolon at the end of the SQL statement. It should be 'select * from icepart01 order by id;' with only one semicolon. ```suggestion select * from icepart01 order by id; ``` -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org