okumin commented on code in PR #5089:
URL: https://github.com/apache/hive/pull/5089#discussion_r1495701616
##########
ql/src/java/org/apache/hadoop/hive/ql/Context.java:
##########
@@ -1225,8 +1228,14 @@ public Table getMaterializedTable(String cteName) {
return cteTables.get(cteName);
}
- public void addMaterializedTable(String cteName, Table table) {
+ public void addMaterializedTable(String cteName, Table table, Statistics
statistics) {
cteTables.put(cteName, table);
+ cteTables.put(table.getFullyQualifiedName(), table);
Review Comment:
I moved this logic here for easiness, which means this pair is stored for
SemanticAnalyzer. I would say the overhead is trivial and acceptable. Anyway, I
hope most people use CalcitePlanner.
--
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]