Open lizc9 opened 3 months ago
Can you provide a message data case? I'll follow up.
hi , @lizc9 Previously op was a reserved field, but now it is open and you can refer to the latest dev
Can you provide a message data case? I'll follow up. kafka key:
{ "id": "c-ecaae896-0bb8-3a37-a142-ef8b7e662900" }
kafka content:
{ "before": { "id": "c-ecaae896-0bb8-3a37-a142-ef8b7e662900", "ingestion_time": 1723018622139909, "city": "unknown" }, "after": { "id": "c-ecaae896-0bb8-3a37-a142-ef8b7e662900", "ingestion_time": 1723018622139909, "city": "unknown" }, "source": { "version": "2.0.1.Final", "connector": "postgresql", "name": "polar", "ts_ms": 1723018690396, "snapshot": "false", "db": "prod_datastore01", "sequence": "[\"343153176654624\",\"343153176654624\"]", "schema": "public", "table": "clips", "txId": 2982233777, "lsn": 343153176654624, "xmin": null }, "op": "u", "ts_ms": 1723018690754, "transaction": null }
hi , @lizc9 Previously op was a reserved field, but now it is open and you can refer to the latest dev
Thanks, may I ask in which Seatunnel version this feature will be released? Is there a release plan?
Search before asking
What happened
When I read the op field from json, and defind it as string type, I get the following error:
java.lang.ClassCastException: java.lang.Byte cannot be cast to org.apache.spark.unsafe.types.UTF8String
This is because of the following code, it defind op column as byte type: org.apache.seatunnel.translation.spark.serialization.InternalRowConverter#convert(org.apache.seatunnel.api.table.type.SeaTunnelRow, org.apache.seatunnel.api.table.type.SeaTunnelRowType)SeaTunnel Version
2.3.6
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
Spark: 3.3
Java or Scala Version
java 1.8
Screenshots
Are you willing to submit PR?
Code of Conduct