featzhang commented on code in PR #27467:
URL: https://github.com/apache/flink/pull/27467#discussion_r2731501739
##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogMaterializedTable.java:
##########
@@ -180,6 +180,18 @@ default String getDefinitionQuery() {
@Nullable
byte[] getSerializedRefreshHandler();
+ /** Convert this object to a {@link CatalogTable} object for planner
optimize query. */
Review Comment:
/**
* Converts this materialized table into a {@link CatalogTable}
representation
* for planner usage.
*
* <p>This conversion preserves schema, options, distribution, partitions
and snapshot,
* but intentionally drops materialized-table-specific semantics such as
refresh behavior.
*/
##########
flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/catalog/CatalogBaseTableResolutionTest.java:
##########
@@ -347,6 +347,45 @@ void testInvalidDistributionBucketCount() {
+ "distributed table must be at least 1.");
}
+ @Test
+ void testCatalogMaterializedTableToCatalogTable() {
Review Comment:
Consider adding a test asserting that materialized-table-specific semantics
(e.g. refresh behavior) are intentionally not propagated.
--
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]