Skip to content

Commit b3866b9

Browse files
author
yuchenyao
authored
Merge pull request #11 from WeBankFinTech/dev-0.9.0
Dev 0.9.0
2 parents 367b00f + 5956aa2 commit b3866b9

File tree

46 files changed

+218
-146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+218
-146
lines changed

assembly/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>dss</artifactId>
2424
<groupId>com.webank.wedatasphere.dss</groupId>
25-
<version>0.7.0</version>
25+
<version>0.9.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

@@ -103,7 +103,7 @@
103103
<dependency>
104104
<groupId>com.fasterxml.jackson.core</groupId>
105105
<artifactId>jackson-core</artifactId>
106-
<version>2.9.6</version>
106+
<version>2.10.0</version>
107107
</dependency>
108108
<dependency>
109109
<groupId>net.databinder.dispatch</groupId>

bin/checkServices.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ MICRO_SERVICE_PORT=$3
3131

3232
local_host="`hostname --fqdn`"
3333

34-
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
34+
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
3535

3636
function isLocal(){
3737
if [ "$1" == "127.0.0.1" ];then

bin/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ source ${DISTRIBUTION}
104104
isSuccess "load config"
105105

106106
local_host="`hostname --fqdn`"
107-
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
107+
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
108108

109109
function isLocal(){
110110
if [ "$1" == "127.0.0.1" ];then

bin/start-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fi
4343
}
4444
local_host="`hostname --fqdn`"
4545

46-
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
46+
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
4747

4848
function isLocal(){
4949
if [ "$1" == "127.0.0.1" ];then

bin/stop-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export DISTRIBUTION=${DISTRIBUTION:-"${CONF_DIR}/config.sh"}
3434
source ${DISTRIBUTION}
3535

3636
local_host="`hostname --fqdn`"
37-
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
37+
ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
3838

3939
function isSuccess(){
4040
if [ $? -ne 0 ]; then

conf/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ AZKABAN_ADRESS_PORT=8081
7777
QUALITIS_ADRESS_IP=127.0.0.1
7878
QUALITIS_ADRESS_PORT=8090
7979

80-
DSS_VERSION=0.7.0
80+
DSS_VERSION=0.9.0

datachecker-appjoint/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>dss</artifactId>
2424
<groupId>com.webank.wedatasphere.dss</groupId>
25-
<version>0.7.0</version>
25+
<version>0.9.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

datachecker-appjoint/src/main/java/com/webank/wedatasphere/dss/appjoint/schedulis/jobtype/connector/DataCheckerDao.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ private long getTotalCount(Map<String, String> proObjectMap, Connection conn, L
158158

159159
private PreparedStatement getStatement(Connection conn, String dataObject) throws SQLException {
160160
String dataScape = dataObject.contains("{") ? "Partition" : "Table";
161-
String dbName = dataObject.split("\\.")[0];
162-
String tableName = dataObject.split("\\.")[1];
161+
String[] dataObjectArray = dataObject.split("\\.");
162+
String dbName = dataObjectArray[0];
163+
String tableName = dataObjectArray[1];
163164
if(dataScape.equals("Partition")) {
164165
Pattern pattern = Pattern.compile("\\{([^\\}]+)\\}");
165166
Matcher matcher = pattern.matcher(dataObject);
@@ -174,11 +175,13 @@ private PreparedStatement getStatement(Connection conn, String dataObject) throw
174175
pstmt.setString(2, tableName);
175176
pstmt.setString(3, partitionName);
176177
return pstmt;
177-
} else {
178+
} else if(dataObjectArray.length == 2){
178179
PreparedStatement pstmt = conn.prepareCall(SQL_SOURCE_TYPE_JOB_TABLE);
179180
pstmt.setString(1, dbName);
180181
pstmt.setString(2, tableName);
181182
return pstmt;
183+
}else {
184+
throw new SQLException("Incorrect input format for dataObject "+ dataObject);
182185
}
183186
}
184187

db/dss_ddl.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ CREATE TABLE `dss_project` (
154154
`name` varchar(200) COLLATE utf8_bin DEFAULT NULL,
155155
`source` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT 'Source of the dss_project',
156156
`description` text COLLATE utf8_bin,
157+
`workspace_id` bigint(20) DEFAULT 1,
157158
`user_id` bigint(20) DEFAULT NULL,
158159
`create_time` datetime DEFAULT NULL,
159160
`create_by` bigint(20) DEFAULT NULL,
@@ -372,6 +373,7 @@ DROP TABLE IF EXISTS `dss_onestop_user_favorites`;
372373
CREATE TABLE `dss_onestop_user_favorites` (
373374
`id` int(20) NOT NULL AUTO_INCREMENT,
374375
`username` varchar(64) DEFAULT NULL,
376+
`workspace_id` bigint(20) DEFAULT 1,
375377
`menu_application_id` int(20) DEFAULT NULL,
376378
`order` int(2) DEFAULT NULL,
377379
`create_by` varchar(255) DEFAULT NULL,

db/dss_dml.sql

Lines changed: 38 additions & 47 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)