delta icon indicating copy to clipboard operation
delta copied to clipboard

[Spark] Set active txn during write and ctas commands

Open cstavr opened this issue 1 year ago • 0 comments

Which Delta project/connector is this regarding?

  • [x] Spark
  • [ ] Standalone
  • [ ] Flink
  • [ ] Kernel
  • [ ] Other (fill in here)

Description

Make WRITE commands call OptimisticTransaction.withActive to set as active the transaction the transaction that is created by startTxnForTableCreation().

How was this patch tested?

Existing tests.

Does this PR introduce any user-facing changes?

No

cstavr avatar May 28 '24 14:05 cstavr