Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
wg1026688210 committed Jun 20, 2024
1 parent 9d055e6 commit 1dae756
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ public class CalciteModule3 {
private final SqlIndentifierDelegate sqlIndentifierDelegate;

static {
boolean findCalciteInCurrentClassLoader = false;
boolean calciteFound = false;
ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
try {
currentClassLoader.loadClass(SqlParserDelegate.CLASS_NAME);
findCalciteInCurrentClassLoader = true;
calciteFound = true;
} catch (ClassNotFoundException e) {
}

try {
if (findCalciteInCurrentClassLoader) {
if (calciteFound) {
submoduleClassLoader = currentClassLoader;
} else {
submoduleClassLoader = initCalciteClassLoader();
Expand Down

0 comments on commit 1dae756

Please sign in to comment.