dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Bug] Parameter replace with ? will cause NPE

Open longlongagos opened this issue 1 year ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

When I want to pass parameters and "?" appears inside the SQL statement, the scheduler will report a null pointer error to me.

What you expected to happen

I think that when passing parameters, during the escaping process, the parameters will be replaced with "?" first. At this time, it conflicts with the "?" inside the SQL statement.

How to reproduce

There is no such problem in older versions

Anything else

my demo like this select concat('(?i)', (select name from namelist where tag = '${tag}'))

Version

3.2.x

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

longlongagos avatar Apr 11 '24 09:04 longlongagos

@ruanwenjun please assign to me

xxzuo avatar Apr 16 '24 11:04 xxzuo

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar May 19 '24 00:05 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar May 26 '24 00:05 github-actions[bot]