AHeise commented on code in PR #30105:
URL: https://github.com/apache/flink/pull/30105#discussion_r4722621518
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/materializedtable/MaterializedTableImpl.java:
##########
@@ -92,6 +97,27 @@ public Optional<String> getRefreshHandlerDescription() {
return lookUp().getRefreshHandlerDescription();
}
+ @Override
+ public String explain(ExplainFormat format, ExplainDetail... extraDetails)
{
Review Comment:
Optional: this could be `tableEnvironment.explainSql(String.format("INSERT
INTO %s\n%s", identifier.asSerializableString(),
materializedTable.getExpandedQuery()), format, extraDetails)` after `lookUp()`.
SQL INSERT conversion builds `getTableOrError(id).toCatalogTable()`, which is
the same `ContextResolvedTable.permanent(..., toResolvedCatalogTable())` built
by hand here, so the cast and parse go away (~11 lines) and the statement is
the one the continuous refresh job runs. I tried it locally and `ExplainTest`
passes against the same golden files. Fine to keep as is if you prefer
mirroring `buildOperation`.
--
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]