clownxc commented on code in PR #22301: URL: https://github.com/apache/flink/pull/22301#discussion_r1155962586
########## flink-table/flink-table-common/src/test/java/org/apache/flink/table/api/TableSchemaTest.java: ########## @@ -328,7 +328,7 @@ void testPrimaryKeyPrinting() { + " |-- f0: BIGINT NOT NULL\n" + " |-- f1: STRING NOT NULL\n" + " |-- f2: DOUBLE NOT NULL\n" - + " |-- CONSTRAINT pk PRIMARY KEY (f0, f2)\n"); + + " |-- CONSTRAINT `pk` PRIMARY KEY (`f0`, `f2`) NOT ENFORCED\n"); Review Comment: this is the deprecated UniqueConstraint ```java public final String asSummaryString() { final String typeString; switch (getType()) { case PRIMARY_KEY: typeString = "PRIMARY KEY"; break; case UNIQUE_KEY: typeString = "UNIQUE"; break; default: throw new IllegalStateException("Unknown key type: " + getType()); } return String.format( "CONSTRAINT %s %s (%s)", getName(), typeString, String.join(", ", columns)); } ``` -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org