zexin gong created FLINK-39289:
----------------------------------

             Summary: The truncate command cannot be executed on the paimon 
table where deletion-vectors.enabled:true is set
                 Key: FLINK-39289
                 URL: https://issues.apache.org/jira/browse/FLINK-39289
             Project: Flink
          Issue Type: Bug
          Components: Flink CDC
         Environment: flink: 1.20.3

flink-cdc: 3.5.0

paimon: 1.3.1
            Reporter: zexin gong


When using the Flink-CDC pipeline to build a MySQL to Paimon synchronization 
task, an error occurs when MySQL executes `truncate table xxx`:

```
Caused by: 
UnsupportedSchemaChangeEventException\{applyingEvent=TruncateTableEvent{tableId=xxx},
 exceptionMessage='Unable to truncate a table with de
letion vectors enabled.', cause='null'}
        at 
org.apache.flink.cdc.connectors.paimon.sink.PaimonMetadataApplier.applyTruncateTable(PaimonMetadataApplier.java:348)
        ... 11 more

```

No exception is observed when executing `truncate table paimon_table` using 
Flink-SQL.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to