Skip to content

Commit

Permalink
[DOP-16999] Log detected JDBC dialect while using DBWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Oct 2, 2024
1 parent 45c6bb8 commit 97779a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/next_release/+.feature.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Log detected JDBC dialect while using ``DBWriter``.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def write_df_to_target(
else write_options.if_exists.value
)
log.info("|%s| Saving data to a table %r", self.__class__.__name__, target)
log.info("|%s| Detected dialect: '%s'", self.__class__.__name__, self._get_spark_dialect_name())
df.write.format("jdbc").mode(mode).options(dbtable=target, **jdbc_properties).save()
log.info("|%s| Table %r successfully written", self.__class__.__name__, target)

Expand Down

0 comments on commit 97779a1

Please sign in to comment.