Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
e34f6b77
Commit
e34f6b77
authored
Dec 02, 2021
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决血缘分析与执行图分析异常
parent
8b7896f2
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
16 deletions
+14
-16
StudioServiceImpl.java
...c/main/java/com/dlink/service/impl/StudioServiceImpl.java
+2
-0
Explainer.java
dlink-core/src/main/java/com/dlink/explainer/Explainer.java
+1
-1
FlinkInterceptor.java
...src/main/java/com/dlink/interceptor/FlinkInterceptor.java
+3
-3
GatewayType.java
...-gateway/src/main/java/com/dlink/gateway/GatewayType.java
+1
-1
index.tsx
...eb/src/components/Studio/StudioConsole/StudioCA/index.tsx
+2
-2
index.tsx
dlink-web/src/components/Studio/StudioMenu/index.tsx
+2
-9
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+3
-0
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/StudioServiceImpl.java
View file @
e34f6b77
...
...
@@ -8,6 +8,7 @@ import com.dlink.dto.StudioExecuteDTO;
import
com.dlink.explainer.ca.CABuilder
;
import
com.dlink.explainer.ca.ColumnCANode
;
import
com.dlink.explainer.ca.TableCANode
;
import
com.dlink.gateway.GatewayType
;
import
com.dlink.gateway.model.JobInfo
;
import
com.dlink.gateway.result.SavePointResult
;
import
com.dlink.job.JobConfig
;
...
...
@@ -89,6 +90,7 @@ public class StudioServiceImpl implements StudioService {
@Override
public
ObjectNode
getStreamGraph
(
StudioExecuteDTO
studioExecuteDTO
)
{
JobConfig
config
=
studioExecuteDTO
.
getJobConfig
();
config
.
setType
(
GatewayType
.
LOCAL
.
getLongValue
());
if
(!
config
.
isUseSession
())
{
config
.
setAddress
(
clusterService
.
buildEnvironmentAddress
(
config
.
isUseRemote
(),
studioExecuteDTO
.
getClusterId
()));
}
...
...
dlink-core/src/main/java/com/dlink/explainer/Explainer.java
View file @
e34f6b77
...
...
@@ -51,7 +51,7 @@ public class Explainer {
if
(
Asserts
.
isNullString
(
sql
)){
continue
;
}
SqlType
operationType
=
Operations
.
getOperationType
(
statement
);
SqlType
operationType
=
Operations
.
getOperationType
(
item
);
if
(
operationType
.
equals
(
SqlType
.
INSERT
)||
operationType
.
equals
(
SqlType
.
SELECT
))
{
record
=
executor
.
explainSqlRecord
(
sql
);
if
(
Asserts
.
isNull
(
record
)){
...
...
dlink-executor/src/main/java/com/dlink/interceptor/FlinkInterceptor.java
View file @
e34f6b77
...
...
@@ -36,14 +36,14 @@ public class FlinkInterceptor {
// return false to continue with executeSql
public
static
boolean
build
(
Executor
executor
,
String
statement
)
{
if
(
executor
.
parseAndLoadConfiguration
(
statement
)){
return
true
;
}
Operation
operation
=
Operations
.
buildOperation
(
statement
);
if
(
Asserts
.
isNotNull
(
operation
))
{
operation
.
build
(
executor
.
getCustomTableEnvironmentImpl
());
return
operation
.
noExecute
();
}
if
(
executor
.
parseAndLoadConfiguration
(
statement
)){
return
true
;
}
return
false
;
}
...
...
dlink-gateway/src/main/java/com/dlink/gateway/GatewayType.java
View file @
e34f6b77
...
...
@@ -10,7 +10,7 @@ import com.dlink.assertion.Asserts;
**/
public
enum
GatewayType
{
STANDALONE
(
"s"
,
"standalone"
),
YARN_SESSION
(
"ys"
,
"yarn-session"
),
YARN_APPLICATION
(
"ya"
,
"yarn-application"
),
YARN_PER_JOB
(
"ypj"
,
"yarn-per-job"
);
LOCAL
(
"l"
,
"local"
),
STANDALONE
(
"s"
,
"standalone"
),
YARN_SESSION
(
"ys"
,
"yarn-session"
),
YARN_APPLICATION
(
"ya"
,
"yarn-application"
),
YARN_PER_JOB
(
"ypj"
,
"yarn-per-job"
);
private
String
value
;
private
String
longValue
;
...
...
dlink-web/src/components/Studio/StudioConsole/StudioCA/index.tsx
View file @
e34f6b77
...
...
@@ -165,7 +165,7 @@ const StudioCA = (props:any) => {
{
oneTableCAData
!=
null
?<
IndentedTreeGraph
{
...
config
}
/>:<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
</
div
>
</
TabPane
>
<
TabPane
{
/*
<TabPane
tab={
<span>
单任务字段级血缘
...
...
@@ -185,7 +185,7 @@ const StudioCA = (props:any) => {
</div>
{oneColumnCAData!=null?<IndentedTreeGraph {...columnConfig} />:<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />}
</div>
</
TabPane
>
</TabPane>
*/
}
{
/*<TabPane
tab={
<span>
...
...
dlink-web/src/components/Studio/StudioMenu/index.tsx
View file @
e34f6b77
...
...
@@ -174,18 +174,11 @@ const StudioMenu = (props: any) => {
}
let
useSession
=
!!
currentSession
.
session
;
let
param
=
{
...
current
.
task
,
useSession
:
useSession
,
session
:
currentSession
.
session
,
useRemote
:
current
.
task
.
useRemote
,
clusterId
:
current
.
task
.
clusterId
,
useResult
:
current
.
task
.
useResult
,
maxRowNum
:
current
.
task
.
maxRowNum
,
configJson
:
JSON
.
stringify
(
current
.
task
.
config
),
statement
:
selectsql
,
fragment
:
current
.
task
.
fragment
,
jobName
:
current
.
task
.
jobName
,
parallelism
:
current
.
task
.
parallelism
,
checkPoint
:
current
.
task
.
checkPoint
,
savePointPath
:
current
.
task
.
savePointPath
,
};
const
res
=
getStreamGraph
(
param
);
handleGraphModalVisible
(
true
);
...
...
dlink-web/src/pages/Welcome.tsx
View file @
e34f6b77
...
...
@@ -441,6 +441,9 @@ export default (): React.ReactNode => {
<
li
>
<
Link
>
优化打包及扩展方式
</
Link
>
</
li
>
<
li
>
<
Link
>
解决血缘分析与执行图分析异常
</
Link
>
</
li
>
</
ul
>
</
Paragraph
>
</
Timeline
.
Item
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment