twalthr commented on code in PR #27222:
URL: https://github.com/apache/flink/pull/27222#discussion_r2518362352
##########
flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlCreateMaterializedTable.java:
##########
@@ -142,28 +161,41 @@ public SqlIntervalLiteral getFreshness() {
}
@Nullable
- public SqlLiteral getRefreshMode() {
+ public SqlRefreshMode getRefreshMode() {
return refreshMode;
}
public SqlNode getAsQuery() {
return asQuery;
}
+ /** Returns the column constraints plus the table constraints. */
+ public List<SqlTableConstraint> getFullConstraints() {
+ return SqlConstraintValidator.getFullConstraints(tableConstraints,
columnList);
+ }
+
+ @Override
+ public void validate() throws SqlValidateException {
+ if (!isSchemaWithColumnsIdentifiersOnly()) {
Review Comment:
I was just wondering when regular tables have similar logic.
--
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]