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 committed Nov 9, 2023
1 parent 79868f8 commit c806229
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 @@ -253,7 +253,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 @@ -75,7 +75,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 c806229

Please sign in to comment.