Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [API] Query task instance error #15481

Closed
2 of 3 tasks
wangbowen1024 opened this issue Jan 13, 2024 · 2 comments
Closed
2 of 3 tasks

[Bug] [API] Query task instance error #15481

wangbowen1024 opened this issue Jan 13, 2024 · 2 comments
Labels
bug Something isn't working Waiting for reply Waiting for reply

Comments

@wangbowen1024
Copy link
Contributor

wangbowen1024 commented Jan 13, 2024

Search before asking

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

What happened

i use pg to save ds, and i get error when search task instance name:
image

[ERROR] 2024-01-13 14:08:22.192 +0800 org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[52] - 分页查询任务列表错误
org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3
### The error may exist in class path resource [org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT COUNT(*) AS total FROM t_ds_task_instance WHERE project_code = ? AND task_execute_type = ? AND process_instance_name LIKE concat('%', ?, '%')
### Cause: org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3
; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3

and i find all search will faild with

 like concat('%', #{xxx}, '%')

What you expected to happen

no error

How to reproduce

every time

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@wangbowen1024 wangbowen1024 added bug Something isn't working Waiting for reply Waiting for reply labels Jan 13, 2024
Copy link

Search before asking

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

What happened

i use pg to save ds, and i get error when search task instance name:

[ERROR] 2024-01-13 14:08:22.192 +0800 org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[52] - 分页查询任务列表错误
org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3
### The error may exist in class path resource [org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT COUNT(*) AS total FROM t_ds_task_instance WHERE project_code = ? AND task_execute_type = ? AND process_instance_name LIKE concat('%', ?, '%')
### Cause: org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3
; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: could not determine data type of parameter $3

and i find all search will faild with

 like concat('%', #{xxx}, '%')

What you expected to happen

no error

How to reproduce

every time

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@wangbowen1024
Copy link
Contributor Author

because i use param stringtype=unspecified in url:
jdbc:postgresql://IP:PORT/dolphinscheduler?stringtype=unspecified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant