Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spark] Replaces startTransaction calls with catalogTable overload #2125

Conversation

LukasRupprecht
Copy link
Contributor

@LukasRupprecht LukasRupprecht commented Sep 29, 2023

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR replaces all calls to DeltaLog.startTransaction() with calls to DeltaLog.startTransaction(Option[CatalogTable]). This PR is part of #2105 and ensures that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

How was this patch tested?

This is a small refactoring change so existing test coverage is sufficient.

Does this PR introduce any user-facing changes?

No

@lzlfred
Copy link
Contributor

lzlfred commented Sep 29, 2023

very nice !

@vkorukanti vkorukanti closed this in 789ea30 Oct 2, 2023
vkorukanti pushed a commit to vkorukanti/delta that referenced this pull request Oct 3, 2023
This PR replaces all calls to OptimisticTransaction.startTransaction() with calls to OptimisticTransaction.startTransaction(Option[CatalogTable]). This PR is part of delta-io#2105 and ensures that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes delta-io#2125

GitOrigin-RevId: 014a459275e5fec5bfc51ff143563b2949c607c3
vkorukanti pushed a commit to vkorukanti/delta that referenced this pull request Oct 3, 2023
This PR replaces all calls to OptimisticTransaction.startTransaction() with calls to OptimisticTransaction.startTransaction(Option[CatalogTable]). This PR is part of delta-io#2105 and ensures that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes delta-io#2125

GitOrigin-RevId: 014a459275e5fec5bfc51ff143563b2949c607c3
Kimahriman pushed a commit to Kimahriman/delta that referenced this pull request Oct 3, 2023
This PR replaces all calls to OptimisticTransaction.startTransaction() with calls to OptimisticTransaction.startTransaction(Option[CatalogTable]). This PR is part of delta-io#2105 and ensures that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes delta-io#2125

GitOrigin-RevId: 014a459275e5fec5bfc51ff143563b2949c607c3
vkorukanti pushed a commit to vkorukanti/delta that referenced this pull request Oct 6, 2023
…verload

This PR replaces all calls to DeltaLog.startTransaction(Snapshot) with calls to DeltaLog.startTransaction(Option[CatalogTable], Snapshot). This PR is part of delta-io#2105 and a follow-up to delta-io#2125. It makes sure that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes delta-io#2126

GitOrigin-RevId: d82787c64979a2dd4a363bf92a1640b7635ec02e
scottsand-db pushed a commit that referenced this pull request Oct 6, 2023
…verload

This PR replaces all calls to DeltaLog.startTransaction(Snapshot) with calls to DeltaLog.startTransaction(Option[CatalogTable], Snapshot). This PR is part of #2105 and a follow-up to #2125. It makes sure that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes #2126

GitOrigin-RevId: d82787c64979a2dd4a363bf92a1640b7635ec02e
vkorukanti pushed a commit to vkorukanti/delta that referenced this pull request Oct 26, 2023
…ith catalogTable overload

#### Which Delta project/connector is this regarding?

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

## Description

This PR replaces the call to DeltaLog.startTransaction() in StatisticsCollection.recompute with calls to DeltaLog.startTransaction(Option[CatalogTable], Snapshot). This PR is part of delta-io#2105 and a follow-up to delta-io#2125, to ensure that all transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This PR also introduces a new helper in DeltaTestImplicits, which allows unit test call sites to still call the old version of StatisticsCollection.recompute and passes None as the catalogTable. This implicit should only be used if the test really only runs against a path-based Delta table and so no catalogTable is present.

This is a small refactoring change so existing test coverage is sufficient.

## Does this PR introduce _any_ user-facing changes?

No

Closes delta-io#2217

GitOrigin-RevId: bc3783d298de7d7ad442ac347042d8fc7820afbe
xupefei pushed a commit to xupefei/delta that referenced this pull request Oct 31, 2023
…verload

This PR replaces all calls to DeltaLog.startTransaction(Snapshot) with calls to DeltaLog.startTransaction(Option[CatalogTable], Snapshot). This PR is part of delta-io#2105 and a follow-up to delta-io#2125. It makes sure that transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This is a small refactoring change so existing test coverage is sufficient.

No

Closes delta-io#2126

GitOrigin-RevId: d82787c64979a2dd4a363bf92a1640b7635ec02e
xupefei pushed a commit to xupefei/delta that referenced this pull request Oct 31, 2023
…ith catalogTable overload

#### Which Delta project/connector is this regarding?

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

## Description

This PR replaces the call to DeltaLog.startTransaction() in StatisticsCollection.recompute with calls to DeltaLog.startTransaction(Option[CatalogTable], Snapshot). This PR is part of delta-io#2105 and a follow-up to delta-io#2125, to ensure that all transactions have a valid catalogTable attached to them so Uniform can correctly update the table in the catalog.

This PR also introduces a new helper in DeltaTestImplicits, which allows unit test call sites to still call the old version of StatisticsCollection.recompute and passes None as the catalogTable. This implicit should only be used if the test really only runs against a path-based Delta table and so no catalogTable is present.

This is a small refactoring change so existing test coverage is sufficient.

## Does this PR introduce _any_ user-facing changes?

No

Closes delta-io#2217

GitOrigin-RevId: bc3783d298de7d7ad442ac347042d8fc7820afbe
@LukasRupprecht LukasRupprecht deleted the replace-start-transaction branch April 3, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants