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

enhancement: Support optional measure_name in wr.timestream.write() #1925

Conversation

malachi-constant
Copy link
Contributor

Enhancement

  • Adds new optional parameter measure_name to wr.timestream.write().
  • Column measure_name can be named to a string value that does not come from any measure column names.
    • This is intended for use with multi-measure records , but is available as an override for single (scalar) records as well.
  • Unit tests for both multi-measure and single record puts are included.

Relates

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

…a-arg-when-writing-multi-measure-values-to-timestream
…writing-multi-measure-values-to-timestream' of github.com:aws/aws-sdk-pandas into 1885-specify-measure_name-as-explicit-optiona-arg-when-writing-multi-measure-values-to-timestream
@malachi-constant
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: 0083cd2
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@malachi-constant
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: b30f497
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Copy link
Contributor

@jaidisido jaidisido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, minor refactor in tests

tests/test_timestream.py Outdated Show resolved Hide resolved
Copy link
Contributor

@kukushking kukushking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@malachi-constant
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: 0d9632b
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@jaidisido jaidisido self-requested a review January 5, 2023 19:53
@malachi-constant
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: 0d9632b
  • Result: FAILED
  • Build Logs (available for 30 days)

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

@malachi-constant
Copy link
Contributor Author

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: 0d9632b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@malachi-constant malachi-constant merged commit 4df8f26 into main Jan 5, 2023
@malachi-constant malachi-constant deleted the 1885-specify-measure_name-as-explicit-optiona-arg-when-writing-multi-measure-values-to-timestream branch January 5, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify measure_name as explicit optiona arg when writing multi-measure values to Timestream
3 participants