Au-Miner commented on code in PR #26632:
URL: https://github.com/apache/flink/pull/26632#discussion_r2127821502


##########
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
   
   We do not allow INDEX_a_b because it should be named in order



-- 
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]

Reply via email to