Skip to content

Commit

Permalink
reduce duplicated codes
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzy523 committed Dec 11, 2023
1 parent 9cdb808 commit 97d9e04
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public Map<String, String> configs() {
@Override
public ResultSet executeStatement(String catalog, String statement) {
if (currentCatalog == null || !currentCatalog.equalsIgnoreCase(catalog)) {
String useCatalog;
if (TerminalSession.canUseSparkSessionCatalog(sessionConf, catalog)) {
logs.add(
String.format(
Expand Down

0 comments on commit 97d9e04

Please sign in to comment.