【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】OMS4.2.11_CE OB 4.5.0.0
【 使用版本 】
【问题描述】POSTGRES迁移到OB时,主键是UUID是报错
【复现路径】正常通过OMS配置,做全量数据迁移,如果表主键不是UUID已正常迁移,如果表中有字段为UUID,不是主键,也可以正常迁移,但是主键是UUID时,迁移会报错,长时间卡信
【附件及日志】879
[2026-01-15 10:19:56.488] [WARN] [slice-worker-3] [retryTask task run error : ]
880
java.lang.Exception: dify.public.apps PK error from id:30303436326131332D336339632D346432332D613966312D653561613535633365623737
881
at com.oceanbase.oms.dataflow.slice.AbstractSliceService.sliceException(AbstractSliceService.java:133)
882
at com.oceanbase.oms.dataflow.slice.PkSliceService.lambda$slice$2(PkSliceService.java:233)
883
at com.oceanbase.oms.connector.common.util.RetryUtil.retryTask(RetryUtil.java:33)
884
at com.oceanbase.oms.dataflow.slice.PkSliceService.slice(PkSliceService.java:226)
885
at com.oceanbase.oms.dataflow.slice.LocalSliceProvider.provider(LocalSliceProvider.java:58)
886
at com.oceanbase.oms.connector.source.dataflow.DataFlowSliceTask.doSlice(DataFlowSliceTask.java:66)
887
at com.oceanbase.oms.connector.source.dataflow.SliceTaskManager$InnerSliceTask.run(SliceTaskManager.java:759)
888
at java.lang.Thread.run(Thread.java:853)
889
Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: uuid > bytea
890
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
891
Position: 62
892
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2713)
893
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2401)
894
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:368)
895
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:498)
896
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:415)
897
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:190)
898
at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:134)
899
at com.alibaba.druid.pool.DruidPooledPreparedStatement.executeQuery(DruidPooledPreparedStatement.java:227)
900
at com.oceanbase.oms.dataflow.jdbcclient.AbstractJDBCClient.nextSlicePkTop(AbstractJDBCClient.java:1448)
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!