Aitozi commented on code in PR #21522:
URL: https://github.com/apache/flink/pull/21522#discussion_r1137041528


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:
##########
@@ -472,7 +510,8 @@ private static int getCount(Map<String, String> map, String 
key, String suffix)
         final String escapedSeparator = Pattern.quote(SEPARATOR);
         final Pattern pattern =
                 Pattern.compile(
-                        escapedKey
+                        "^"

Review Comment:
   Before, for the key `generic.schema.1.name` and `schema.1.name` will all 
pass this pattern, then the column count will misleading the key extractor. It 
actually expect the `^` match here. So for the `generic.schema.1.name` it will 
return 0. Then, we can use the fallback key to get.



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

Reply via email to