Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
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
wangpeng
dinky
Commits
299b950b
Unverified
Commit
299b950b
authored
Dec 13, 2023
by
Licho
Committed by
GitHub
Dec 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ClassLoader empty (#2632)
* fix: ClassLoader null * Spotless Apply --------- Co-authored-by:
leechor
<
leechor@users.noreply.github.com
>
parent
c76087de
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
Executor.java
dinky-core/src/main/java/org/dinky/executor/Executor.java
+2
-4
Explainer.java
dinky-core/src/main/java/org/dinky/explainer/Explainer.java
+1
-2
No files found.
dinky-core/src/main/java/org/dinky/executor/Executor.java
View file @
299b950b
...
@@ -139,6 +139,8 @@ public abstract class Executor {
...
@@ -139,6 +139,8 @@ public abstract class Executor {
tableEnvironment
=
createCustomTableEnvironment
(
classLoader
);
tableEnvironment
=
createCustomTableEnvironment
(
classLoader
);
CustomTableEnvironmentContext
.
set
(
tableEnvironment
);
CustomTableEnvironmentContext
.
set
(
tableEnvironment
);
// after 1.18 version, this two injection should be removed
tableEnvironment
.
injectParser
(
tableEnvironment
.
injectParser
(
new
CustomParserImpl
(
tableEnvironment
.
getPlanner
().
getParser
()));
new
CustomParserImpl
(
tableEnvironment
.
getPlanner
().
getParser
()));
tableEnvironment
.
injectExtendedExecutor
(
tableEnvironment
.
injectExtendedExecutor
(
...
@@ -286,10 +288,6 @@ public abstract class Executor {
...
@@ -286,10 +288,6 @@ public abstract class Executor {
return
statementSet
.
explain
();
return
statementSet
.
explain
();
}
}
public
boolean
parseAndLoadConfiguration
(
String
statement
)
{
return
tableEnvironment
.
parseAndLoadConfiguration
(
statement
,
setConfig
);
}
public
List
<
LineageRel
>
getLineage
(
String
statement
)
{
public
List
<
LineageRel
>
getLineage
(
String
statement
)
{
return
tableEnvironment
.
getLineage
(
statement
);
return
tableEnvironment
.
getLineage
(
statement
);
}
}
...
...
dinky-core/src/main/java/org/dinky/explainer/Explainer.java
View file @
299b950b
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
package
org
.
dinky
.
explainer
;
package
org
.
dinky
.
explainer
;
import
org.dinky.assertion.Asserts
;
import
org.dinky.assertion.Asserts
;
import
org.dinky.classloader.DinkyClassLoader
;
import
org.dinky.constant.FlinkSQLConstant
;
import
org.dinky.constant.FlinkSQLConstant
;
import
org.dinky.data.model.LineageRel
;
import
org.dinky.data.model.LineageRel
;
import
org.dinky.data.model.SystemConfiguration
;
import
org.dinky.data.model.SystemConfiguration
;
...
@@ -127,7 +126,7 @@ public class Explainer {
...
@@ -127,7 +126,7 @@ public class Explainer {
if
(
operationType
.
equals
(
SqlType
.
ADD
))
{
if
(
operationType
.
equals
(
SqlType
.
ADD
))
{
AddJarSqlParseStrategy
.
getAllFilePath
(
statement
)
AddJarSqlParseStrategy
.
getAllFilePath
(
statement
)
.
forEach
(
t
->
jobManager
.
getUdfPathContextHolder
().
addOtherPlugins
(
t
));
.
forEach
(
t
->
jobManager
.
getUdfPathContextHolder
().
addOtherPlugins
(
t
));
(
(
DinkyClassLoader
)
executor
.
getCustomTableEnvironment
().
getUser
ClassLoader
())
(
executor
.
getDinky
ClassLoader
())
.
addURLs
(
URLUtils
.
getURLs
(
.
addURLs
(
URLUtils
.
getURLs
(
jobManager
.
getUdfPathContextHolder
().
getOtherPluginsFiles
()));
jobManager
.
getUdfPathContextHolder
().
getOtherPluginsFiles
()));
}
else
if
(
operationType
.
equals
(
SqlType
.
ADD_JAR
))
{
}
else
if
(
operationType
.
equals
(
SqlType
.
ADD_JAR
))
{
...
...
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