private static void makeDRDSShardColumnsAsPrimaryKeys(Table table, final JdbcTemplate jdbcTemplate,
                                                          final String catalogName, final String schemaName,
                                                          final String tableName) {
        String shardColumns = getShardKeyByDRDS(jdbcTemplate, catalogName, schemaName, tableName);
        if (StringUtils.isNotEmpty(shardColumns)) {
            String columns[] = StringUtils.split(shardColumns, ',');
            for (String key : columns) {
                Column col = table.findColumn(key, false);
                if (col != null) {
                    col.setPrimaryKey(true);
                } else {
                    throw new NullPointerException(String.format("%s pk %s is null", tableName, key));
                }
            }
        }
    }
Treat tables with no primary keys as a table with all primary keys.
shared/common/src/main/java/com/alibaba/otter/shared/common/utils/meta/DdlUtils.java