apache / apache/paimon

[Bug] Parsing of canal json failed

Open
#2,112 4 comments 0 reactions 1 assignee Claimed by @zhuangchong View on GitHub
bug
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/incubator-paimon/issues) and found nothing similar.

### Paimon version

Caused by: java.lang.IllegalArgumentException: Expected node 'pkNames' to be of type org.apache.paimon.shade.jackson2.com.fasterxml.jackson.databind.node.ArrayNode but was either not found or of a different type.

```
{
"data": [
{
"VERSION": "6.3.1",
"GUID": "3895b336-f7d4-4b00-b110-c82fb6c3ad88",
"LAST_UPDATE_INSTANT": "1676564925610",
"TS": "0",
"HOSTNAME": "cdh1/172.18.5.44",
"LAST_ACTIVE_TIMESTAMP": "1696939709931"
}
],
"database": "scm",
"es": 1696939709000,
"gtid": "",
"id": 641,
"isDdl": false,
"mysqlType": {
"VERSION": "varchar(256)",
"GUID": "varchar(36)",
"LAST_UPDATE_INSTANT": "bigint",
"TS": "bigint",
"HOSTNAME": "varchar(255)",
"LAST_ACTIVE_TIMESTAMP": "bigint"
},
"old": [
{
"LAST_ACTIVE_TIMESTAMP": "1696939694927"
}
],
"pkNames": null,
"sql": "",
"sqlType": {
"VERSION": 12,
"GUID": 12,
"LAST_UPDATE_INSTANT": -5,
"TS": -5,
"HOSTNAME": 12,
"LAST_ACTIVE_TIMESTAMP": -5
},
"table": "cm_version",
"ts": 1696939709937,
"type": "UPDATE"
}
```

### Compute Engine

flink

### Minimal reproduce step

flink

### What doesn't meet your expectations?

flink

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.