Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-- SORT_QUERY_RESULTS

Comment thread
kasakrisz marked this conversation as resolved.
set hive.explain.user=false;

drop table if exists iceberg_cow_partitioned;

create external table iceberg_cow_partitioned (
index int,
string_col string,
boolean_col boolean,
str_col string,
tinyint_col int
) partitioned by spec(str_col, tinyint_col)
stored by iceberg
tblproperties ('write.update.mode'='copy-on-write');

insert into iceberg_cow_partitioned partition (str_col, tinyint_col)
values (1, 'a', true, null, 1);

explain update iceberg_cow_partitioned set str_col = 'UPDATED NULLS' where str_col is null;
update iceberg_cow_partitioned set str_col = 'UPDATED NULLS' where str_col is null;

select * from iceberg_cow_partitioned;

-- Disable vectorization

set hive.vectorized.execution.enabled=false;

insert into iceberg_cow_partitioned partition (str_col, tinyint_col)
values (2, 'b', false, null, 2);

explain update iceberg_cow_partitioned set str_col = 'UPDATED NULLS' where str_col is null;
update iceberg_cow_partitioned set str_col = 'UPDATED NULLS' where str_col is null;

select * from iceberg_cow_partitioned;
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ STAGE PLANS:
TableScan
alias: ice_folded
filterExpr: ((id > 4) and (p = 'a')) (type: boolean)
Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: COMPLETE
Filter Operator
predicate: (id > 4) (type: boolean)
Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: COMPLETE
Select Operator
Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 1 Data size: 188 Basic stats: COMPLETE Column stats: COMPLETE
Group By Operator
aggregations: count()
minReductionHashAggr: 0.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ STAGE PLANS:
TableScan
alias: ice_p
filterExpr: (p = 'a') (type: boolean)
Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: COMPLETE
Select Operator
expressions: id (type: int), 'a' (type: string)
outputColumnNames: _col0, _col1
Expand Down Expand Up @@ -156,7 +156,7 @@ STAGE PLANS:
TableScan
alias: ice_p
filterExpr: (p = 'a') (type: boolean)
Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: id (type: int), 'a' (type: string)
outputColumnNames: _col0, _col1
Expand Down Expand Up @@ -198,7 +198,7 @@ STAGE PLANS:
TableScan
alias: ice_p
filterExpr: (p = 'a') (type: boolean)
Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: COMPLETE
Select Operator
expressions: id (type: int), 'a' (type: string)
outputColumnNames: _col0, _col1
Expand Down Expand Up @@ -275,7 +275,7 @@ STAGE PLANS:
TableScan
alias: ice_p
filterExpr: (p = 'a') (type: boolean)
Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: COMPLETE
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: COMPLETE
Select Operator
expressions: id (type: int), 'a' (type: string)
outputColumnNames: _col0, _col1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ STAGE PLANS:
TableScan
alias: ice_parquet_int
filterExpr: (pcol = 2) (type: boolean)
Statistics: Num rows: 2 Data size: 182 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 2 Data size: 190 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: strcol (type: string), intcol (type: int), 3 (type: int)
outputColumnNames: _col0, _col1, _col2
Expand Down Expand Up @@ -374,7 +374,7 @@ STAGE PLANS:
TableScan
alias: ice_parquet_int
filterExpr: (pcol = 2) (type: boolean)
Statistics: Num rows: 2 Data size: 182 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 2 Data size: 190 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: strcol (type: string), intcol (type: int), 4 (type: int)
outputColumnNames: _col0, _col1, _col2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ STAGE PLANS:
TableScan
alias: ice_parquet_int
filterExpr: (pcol = 2) (type: boolean)
Statistics: Num rows: 2 Data size: 182 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 2 Data size: 190 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: strcol (type: string), intcol (type: int), 1 (type: int)
outputColumnNames: _col0, _col1, _col2
Expand Down Expand Up @@ -164,7 +164,7 @@ STAGE PLANS:
TableScan
alias: ice_parquet_int
filterExpr: (pcol = 2) (type: boolean)
Statistics: Num rows: 2 Data size: 376 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 2 Data size: 384 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: strcol (type: string), intcol (type: int), 1 (type: int)
outputColumnNames: _col0, _col1, _col2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ STAGE PLANS:
TableScan
alias: tbl_ice_pp_key
filterExpr: (a > 2) (type: boolean)
Statistics: Num rows: 8 Data size: 51110 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 8 Data size: 32 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
Statistics: Num rows: 8 Data size: 51110 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 8 Data size: 32 Basic stats: COMPLETE Column stats: PARTIAL
Group By Operator
aggregations: count()
minReductionHashAggr: 0.99
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ STAGE PLANS:
TableScan
alias: ice_01
filterExpr: ds is null (type: boolean)
Statistics: Num rows: 1 Data size: 171 Basic stats: COMPLETE Column stats: PARTIAL
Statistics: Num rows: 1 Data size: 355 Basic stats: COMPLETE Column stats: PARTIAL
Select Operator
expressions: key (type: string), value (type: string), null (type: string)
outputColumnNames: _col0, _col1, _col2
Expand Down
Loading
Loading