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 spenes committed Mar 14, 2024
1 parent 466994a commit 6d76f36
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 6d76f36

Please sign in to comment.