org.postgresql.util.PSQLException: ERROR: no partition of relation “table_name“ found for row

        今天测试反馈了一个测试环境的错误,错误信息如下:

### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: no partition of relation "swap_data_info" found for row
  详细:Partition key of the failing row contains (create_time) = (2022-11-15 14:44:38.531).
### The error may exist in file [/home/waiqin365_swapsvr/waiqin365-swapsvr-1.3.1/web/WEB-INF/classes/com/zk/api/swap/config/sqlmap/swapMapper.xml]
### The error may involve com.zk.api.swap.vo.SwapVO.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO swap_data_info                      (                          id                          , tenant_id                          , app_id                          , data_id                          , data_type                          , data_version                          , data_format                          , data_source                          , data                          , status                          , status_time                          , create_time                     )               VALUES (                          ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                          , ?                     )
### Cause: org.postgresql.util.PSQLException: ERROR: no partition of relation "swap_data_info" found for row
  详细:Partition key of the failing row contains (create_time) = (2022-11-15 14:44:38.531).
; SQL []; ERROR: no partition of relation "swap_data_info" found for row

看了下这个错误的详情,得出大致原因:

1.新增数据的时候,分区字段是够传值了

2.分区表是否存在

我的是第二个原因,希望能帮助大家!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值