Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
urosstan-db authored Dec 9, 2024
1 parent 42d09fb commit bee74aa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ class JDBCTableCatalog extends TableCatalog
override def listTables(namespace: Array[String]): Array[Identifier] = {
checkNamespace(namespace)
JdbcUtils.withConnection(options) { conn =>
val schemaNameExists = namespace.length == 1
val schemaPattern: Option[String] = if (schemaNameExists) {
val schemaPattern: Option[String] = if (namespace.length == 1) {
val schemaName = namespace.head
Some(this.convertSchemaNameToPattern(schemaName))
} else {
Expand Down

0 comments on commit bee74aa

Please sign in to comment.