Skip to content

Conversation

@jaidisido
Copy link
Contributor

Issue #, if available:
#705

Description of changes:
Adding flag to skip committing Redshift transaction.
Use case: user wants to only commit the transaction once writes to multiple tables have succeeded.
Since the flag is set to True by default, there is no impact on current implementation.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jaidisido jaidisido added the enhancement New feature or request label May 25, 2021
@jaidisido jaidisido added this to the 2.9.0 milestone May 25, 2021
@jaidisido jaidisido requested a review from kukushking May 25, 2021 17:15
@jaidisido jaidisido self-assigned this May 25, 2021
@jaidisido
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-sDRE8Pq0duHT
  • Commit ID: 2751457
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@kukushking
Copy link
Contributor

LGTM, how about a test case writing 2 tables within the same transaction?

@jaidisido
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-sDRE8Pq0duHT
  • Commit ID: 5e602fb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@jaidisido jaidisido merged commit 335ce5a into main May 27, 2021
@jaidisido jaidisido deleted the feat-705-skip-commit branch May 27, 2021 22:38
@jaidisido jaidisido added minor release Will be addressed in the next minor release ready to release labels May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor release Will be addressed in the next minor release ready to release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide option to skip commit in redshift.to_sql to allow usage of transactions

2 participants