Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Feb 23, 2024
1 parent 5285772 commit d0b1c67
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ private void createDbAndTableForHmsCatalog(HMSExternalCatalog hmsCatalog) {
tbl.getType();
minTimes = 0;
result = TableIf.TableType.HMS_EXTERNAL_TABLE;

tbl.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -169,6 +173,10 @@ private void createDbAndTableForHmsCatalog(HMSExternalCatalog hmsCatalog) {
view1.isSupportedHmsTable();
minTimes = 0;
result = true;

view1.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -211,6 +219,10 @@ private void createDbAndTableForHmsCatalog(HMSExternalCatalog hmsCatalog) {
view2.isSupportedHmsTable();
minTimes = 0;
result = true;

view2.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -253,6 +265,10 @@ private void createDbAndTableForHmsCatalog(HMSExternalCatalog hmsCatalog) {
view3.isSupportedHmsTable();
minTimes = 0;
result = true;

view3.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -295,6 +311,10 @@ private void createDbAndTableForHmsCatalog(HMSExternalCatalog hmsCatalog) {
view4.isSupportedHmsTable();
minTimes = 0;
result = true;

view4.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ private void init(HMSExternalCatalog hmsCatalog) {
// mock initSchemaAndUpdateTime and do nothing
tbl.initSchemaAndUpdateTime();
minTimes = 0;

tbl.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -203,6 +207,10 @@ private void init(HMSExternalCatalog hmsCatalog) {
// mock initSchemaAndUpdateTime and do nothing
tbl2.initSchemaAndUpdateTime();
minTimes = 0;

tbl2.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -254,6 +262,10 @@ private void init(HMSExternalCatalog hmsCatalog) {
view1.getUpdateTime();
minTimes = 0;
result = NOW;

view1.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down Expand Up @@ -304,6 +316,10 @@ private void init(HMSExternalCatalog hmsCatalog) {
view2.getUpdateTime();
minTimes = 0;
result = NOW;

view2.getDatabase();
minTimes = 0;
result = db;
}
};

Expand Down

0 comments on commit d0b1c67

Please sign in to comment.