Skip to content

Commit

Permalink
Loader: Fix table name in COPY logs (close #1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanunlu authored and AlexBenny committed Mar 13, 2024
1 parent ce01165 commit 058b366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ object Migration {
val inAction = Logging[F].info(s"Creating ${b.getName} table for ${target.getInfo.toSchemaUri}") *>
in.traverse_(item => DAO[F].executeUpdate(item.statement, DAO.Purpose.NonLoading)) *>
DAO[F].executeUpdate(b.getCommentOn, DAO.Purpose.NonLoading) *>
Logging[F].info("Table created")
Logging[F].info(s"Table ${b.getName} created")
migration.addInTransaction(inAction)

case (migration, b @ Block(Nil, in, _)) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object Statement {
tableName: String
) extends Statement
with Loading {
def table: String = shreddedType.info.getName
def table: String = tableName
def path: String = shreddedType.getLoadPath
def title = s"COPY $table FROM $path"
}
Expand Down

0 comments on commit 058b366

Please sign in to comment.