From f1838570ede37a5599c16f54071bae4f36cf1252 Mon Sep 17 00:00:00 2001
From: bao liang <29528966+lenboo@users.noreply.github.com>
Date: Wed, 30 Oct 2019 18:50:38 +0800
Subject: [PATCH] fix some bugs about postgre. (#1129)
* update english documents
* refactor zk client
* update documents
* update zkclient
* update zkclient
* update documents
* add architecture-design
* change i18n
* update i18n
* update english documents
* add architecture-design
* update english documents
* update en-US documents
* add architecture-design
* update demo site
* add mybatis plus model
* modify mybatisplus
* modify mybatisplus
* change interface by mybatisplus
* add unit test
* refactor dao interface.
* add unit test for dao...
* add unit test for dao...
* add unit test for dao...
* Merge remote-tracking branch 'upstream/dev-db' into dev-db
# Conflicts:
# dolphinscheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProjectMapper.xml
# dolphinscheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ScheduleMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProcessInstanceMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProjectUserMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/QueueMapper.xml
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ProcessInstanceMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ProjectUserMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/QueueMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ResourceUserMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ScheduleMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/SessionMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/TenantMapperTest.java
* Merge remote-tracking branch 'upstream/dev-db' into dev-db
# Conflicts:
# dolphinscheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProjectMapper.xml
# dolphinscheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ScheduleMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProcessInstanceMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/ProjectUserMapper.xml
# escheduler-dao/src/main/resources/cn.escheduler.dao.mapper/QueueMapper.xml
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ProcessInstanceMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ProjectUserMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/QueueMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ResourceUserMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/ScheduleMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/SessionMapperTest.java
# escheduler-dao/src/test/java/cn/escheduler/dao/mapper/TenantMapperTest.java
* Merge remote-tracking branch 'upstream/dev-db' into dev-db
# Conflicts:
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml
* update some dao bugs
* update for some bugs
* update some bugs
* Merge remote-tracking branch 'upstream/dev-db' into dev-db
# Conflicts:
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProjectMapper.xml
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ResourceMapper.xml
# dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml
* update
* update
* add multiply settings for application.yml
* add multiply settings for application.yml
* revert
* update configuration settings in task record dao...
* change application_master to application-master
* change application_master to application-master
* update application.yml to application.properties
* revert
* revert
* add properties
* add properties
* revert
* revert
* add api start up..
add alert send try catch
* update dao info level
* fix bug: task cannot submit when recovery failover
* fix bug: task cannot submit when recovery failover
* merge from dev-db
* revert
* revert
* fix bug: get process definition list failed.
* fix bug: process instance interval is error
* revert
* revert
* update
* support stop submit success tasks
* update kill process
* update for stop process
* update for stop process
* add some logs for stop process
* update for small bug.
* add check strategy before submit task
* revert
* update
* update
* revert
* wait task instance exists if null.
* revert
* update
* change desc to description.
* add check user and definitions function when delete tenant
* update
* change desc to description.
* change desc to description.
* change desc to description.
* remove check resources when delete tenant
* change desc to description.
* change mybatisplus version to 3.2.0
* update
* change the notice to apache.
* update
* update postgre sql
* fix bug: phone can be empty.
* fix bug: postgre test error.
* update create table for postgre quartz
* fix some bugs about postgre.
* update create table for postgre quartz
---
.../dao/mapper/UDFUserMapper.xml | 4 +-
.../dao/mapper/UdfFuncMapper.xml | 4 +-
.../dao/mapper/UserAlertGroupMapper.xml | 2 +-
.../dao/mapper/WorkerGroupMapper.xml | 2 +-
.../dolphinscheduler/dao/entity/UdfFunc.java | 1 -
.../dao/mapper/ProcessDefinitionMapper.xml | 2 +-
.../dao/mapper/UDFUserMapper.xml | 4 +-
.../dao/mapper/UdfFuncMapper.xml | 4 +-
.../dao/mapper/UserAlertGroupMapper.xml | 2 +-
install.sh | 1 +
.../postgresql/dolphinscheduler_ddl.sql | 326 +++++++-----------
11 files changed, 144 insertions(+), 208 deletions(-)
diff --git a/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UDFUserMapper.xml b/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UDFUserMapper.xml
index caa2a910ed..afa35945ea 100644
--- a/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UDFUserMapper.xml
+++ b/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UDFUserMapper.xml
@@ -3,10 +3,10 @@
delete from t_ds_relation_udfs_user
- where `user_id` = #{userId}
+ where user_id=#{userId}
delete from t_ds_relation_udfs_user
- where `udf_id` = #{udfFuncId}
+ where udf_id=#{udfFuncId}
\ No newline at end of file
diff --git a/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml b/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml
index db63fe98f0..0fb496f4a4 100644
--- a/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml
+++ b/dockerfile/conf/dolphinscheduler/conf/org/apache/dolphinscheduler/dao/mapper/UdfFuncMapper.xml
@@ -21,7 +21,7 @@
from t_ds_udfs
where 1=1
- and `name` like concat('%', #{searchVal}, '%')
+ and name like concat('%', #{searchVal}, '%')
and id in (
@@ -33,7 +33,7 @@