catalog查询报错,版本2.1.2

Viewed 26

1105 - RuntimeException, msg: org.apache.doris.common.UserException: errCode = 2, detailMessage = java.lang.RuntimeException:
Conflict table names found in remote database/schema: xx when lower_case_table_names is 1: [xx, xx]. Please use meta_name_mapping to specify the names.
at org.apache.doris.datasource.mapping.IdentifierMapping.setTableNameMapping(IdentifierMapping.java:111)
at org.apache.doris.datasource.jdbc.client.JdbcClient.filterTableNames(JdbcClient.j

2 Answers

已解决;类似问题可以参考 ALTER CATALOG xxx SET PROPERTIES ('meta_names_mapping' = '{
"tables": [
{
"remoteDatabase": "xx",
"remoteTable": "table_name",
"mapping": "table_name_1"
}
]
}');