davidradl commented on code in PR #26632: URL: https://github.com/apache/flink/pull/26632#discussion_r2127078020
########## flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/catalog/SchemaResolutionTest.java: ########## @@ -357,6 +401,23 @@ void testGeneratedConstraintName() { .isEqualTo("PK_b_a"); } + @Test + void testGeneratedIndexName() { + final Schema schema = + Schema.newBuilder() + .column("a", DataTypes.INT()) + .column("b", DataTypes.STRING()) + .column("c", DataTypes.STRING()) + .index("b", "a") + .build(); + assertThat( + schema.getIndexes().stream() + .findFirst() + .orElseThrow(IllegalStateException::new) + .getIndexName()) + .isEqualTo("INDEX_b_a"); Review Comment: do/should we allow INDEX_b_a and INDEX_a_b -- 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