!240 修复sr查询表主键问题

* 修复sr查询表主键问题
This commit is contained in:
MoYuCloud
2025-05-14 12:16:58 +00:00
committed by inrgihc
parent ff47c097b1
commit 41325c7dd8

View File

@@ -172,7 +172,7 @@ public class StarrocksMetadataQueryProvider extends AbstractMetadataProvider {
" from information_schema.columns\n" +
" where TABLE_SCHEMA=\"%s\" and TABLE_NAME=\"%s\"\n" +
" and TABLE_CATALOG is null\n" +
" and COLUMN_KEY is not null;",
" and COLUMN_KEY = 'PRI';",
schemaName, tableName
);
ResultSet primaryKeys = statement.executeQuery(sql);