Skip to content

[Fix-18217][DataX] Escape single quotes in custom parameters - #18489

Open
richardmilles wants to merge 1 commit into
apache:devfrom
richardmilles:Fix-18217
Open

[Fix-18217][DataX] Escape single quotes in custom parameters#18489
richardmilles wants to merge 1 commit into
apache:devfrom
richardmilles:Fix-18217

Conversation

@richardmilles

Copy link
Copy Markdown

Was this PR generated or assisted by AI?

Yes, assisted by AI.

Purpose of the pull request

Fixes #18217

Replaces #18466 (closed for missing PR template).

Custom DataX -D parameter values that contain single quotes break the generated shell command.

Brief change log

  • Escape single quotes in DataX custom parameter values
  • Add unit coverage for the escaping behavior

Verify this pull request

This change added tests and can be verified as follows:

  • Run the DataX-related unit tests covering custom parameter escaping

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

Prevent shell quote mismatches when DataX -D parameter values contain single quotes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [task datax] The datax task single quotes are not translated, causing the shell to fail.

1 participant