EricGao888 opened a new issue, #14524:
URL: https://github.com/apache/dolphinscheduler/issues/14524

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   ```text
   
   [ERROR] 2023-07-12 20:23:13.453 +0800 
org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[52] 
   org.springframework.jdbc.BadSqlGrammarException: 
   ### Error querying database.  Cause: 
org.h2.jdbc.JdbcSQLSyntaxErrorException: Ambiguous column name "update_time"; 
SQL statement:
   select
            
           b.id
           , b.name, b.process_definition_version, b.process_definition_code, 
b.project_code, b.state, b.recovery, b.start_time, b.end_time, b.run_times,host,
           command_type, b.command_param, b.task_depend_type, b.max_try_times, 
b.failure_strategy, b.warning_type,
           warning_group_id, b.schedule_time, b.command_start_time, 
b.global_params, b.flag,
           update_time, b.is_sub_process, b.executor_id, b.history_cmd,
           process_instance_priority, b.worker_group,environment_code, 
b.timeout, b.tenant_code, b.var_pool,
           dry_run, b.test_flag, b.next_process_instance_id, b.restart_time, 
b.state_history
        
           from t_ds_trigger_relation a
           join   t_ds_process_instance b on a.job_id  = b.id
           where a.trigger_type = 0 and a.trigger_code = ? [90059-210]
   
   ```
   
   ### What you expected to happen
   
   * `queryProcessInstancesByTriggerCode` should work properly.
   
   ### How to reproduce
   
   * Call DS `queryProcessInstancesByTriggerCode` open api.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to