Skip to content

[Feature]Timeliness issue in the pre-check before writing data #9991

@JanSay

Description

@JanSay

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

In my current implementation, I’m using a query in the source to execute an INSERT statement for data writing. Before the writing operation, I need to delete the existing data from the target table.

However, I’ve noticed that changing the value of data_save_mode has no effect, even though I have already configured a custom_sql statement.
According to the documentation, the query parameter has a higher priority. But based on my understanding, custom_sql should be executed first.

Could you please confirm whether this behavior is by design or if it might be a bug?

I use the 2.3.12

Usage Scenario

I need to write data from Oracle/MySQL to PostgreSQL, and since the fields need to be mapped correspondingly, I have to write an INSERT statement in the query to complete this operation.

However, due to data issues, an error occurred during synchronization. Therefore, when I execute the process again, I would like to delete the data in the target database before writing.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions