kasakrisz commented on code in PR #6600:
URL: https://github.com/apache/hive/pull/6600#discussion_r3721581903
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/views/HiveMaterializedViewUtils.java:
##########
@@ -566,6 +566,9 @@ public static RelOptMaterialization
createCTEMaterialization(String viewName, Re
throw new CalciteCteException("Failed to create temporary location", e);
}
Table hiveTable = new Table(metaTable);
+ hiveTable.setFields(columns.stream()
Review Comment:
This is called when a CTE is materialized at the CBO level. A temporary
table is created to store the CTE result set and the table's fields were not
set.
--
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]