clownxc commented on code in PR #22301: URL: https://github.com/apache/flink/pull/22301#discussion_r1155957023
########## 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: there are some minor differences between the new and old APIs ```java public final String asSummaryString() { return String.format( "CONSTRAINT %s %s (%s)%s", EncodingUtils.escapeIdentifier(getName()), getTypeString(), columns.stream() .map(EncodingUtils::escapeIdentifier) .collect(Collectors.joining(", ")), isEnforced() ? "" : " NOT ENFORCED"); } ``` The method `escapeIdentifier` of the new api adds a symbol `` to each field ```java public static String escapeIdentifier(String s) { return "`" + escapeBackticks(s) + "`"; } ``` @Aitozi -- 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