Update setFireTriggers to have the correct configs
- serFireTriggers was incorrectly set to get the configs from BulkCopyKeepIdentity. Updated this to have the correct configuration.
This commit is contained in:
Родитель
cf8b7a3d19
Коммит
98f8d854f0
|
@ -87,8 +87,8 @@ private[spark] object BulkCopyUtils extends LoggingTrait {
|
|||
.getOrElse(SqlDBConfig.BulkCopyCheckConstraintsDefault.toString).toBoolean
|
||||
)
|
||||
copyOptions.setFireTriggers(
|
||||
config.get[String](SqlDBConfig.BulkCopyKeepIdentity)
|
||||
.getOrElse(SqlDBConfig.BulkCopyKeepIdentityDefault.toString).toBoolean
|
||||
config.get[String](SqlDBConfig.BulkCopyFireTriggers)
|
||||
.getOrElse(SqlDBConfig.BulkCopyFireTriggersDefault.toString).toBoolean
|
||||
)
|
||||
copyOptions.setKeepIdentity(
|
||||
config.get[String](SqlDBConfig.BulkCopyKeepIdentity)
|
||||
|
|
Загрузка…
Ссылка в новой задаче