[
https://issues.apache.org/jira/browse/HIVE-27073?focusedWorklogId=845560&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-845560
]
ASF GitHub Bot logged work on HIVE-27073:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Feb/23 07:57
Start Date: 15/Feb/23 07:57
Worklog Time Spent: 10m
Work Description: veghlaci05 commented on code in PR #4059:
URL: https://github.com/apache/hive/pull/4059#discussion_r1106766524
##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/create/CreateMaterializedViewDesc.java:
##########
@@ -349,6 +349,12 @@ public Table toTable(HiveConf conf) throws HiveException {
org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_STORAGE,
getStorageHandler());
}
+ if (getSerdeProps() != null) {
+ for (Map.Entry<String, String> entry : getSerdeProps().entrySet()) {
Review Comment:
You could use java stream API instead.
Issue Time Tracking
-------------------
Worklog Id: (was: 845560)
Time Spent: 20m (was: 10m)
> Apply SerDe properties when creating materialized view
> ------------------------------------------------------
>
> Key: HIVE-27073
> URL: https://issues.apache.org/jira/browse/HIVE-27073
> Project: Hive
> Issue Type: Improvement
> Components: Iceberg integration, Materialized views
> Reporter: Krisztian Kasa
> Assignee: Krisztian Kasa
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {code}
> create table tbl_ice(a int, b string, c int) stored by iceberg stored as orc
> tblproperties ('format-version'='1');
> create materialized view mat1 stored by iceberg stored as orc tblproperties
> ('format-version'='1') as
> select tbl_ice.b, tbl_ice.c from tbl_ice where tbl_ice.c > 52;
> {code}
> Materialized view {{mat1}} should use {{ORC}} file format.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)