Skip to content

Conversation

cnfait
Copy link
Contributor

@cnfait cnfait commented Nov 30, 2022

Feature or Bugfix

  • Feature

Detail

  • ability to pass boto3 arguments to timestream.create_table
  • associated test case

Relates

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

_logger: logging.Logger = logging.getLogger(__name__)

_BOTOCORE_LOADER = Loader()
_TIMESTREAM_JSON_MODEL = _BOTOCORE_LOADER.load_service_model(service_name="timestream-write", type_name="service-2")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious is it possible to reuse the service model loaded by boto itself and avoid loading it again? If not, I would prefer not to do this as it adds an overhead purely for validating the arguments which will be anyhow done by boto at later stage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unsure I can get to what boto is loading for itself, however I hear your point that boto will handle arguments validation anyway. I'm ok removing it entirely. This brings another question though, should we remove it from s3/_fs.py too eventually?

Copy link
Contributor

@kukushking kukushking Nov 30, 2022

Choose a reason for hiding this comment

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

Good point, I wasn't aware we were doing that in the first place... IMO we should remove it as well but I understand this will be a breaking change for the users that pass some unused args that are filtered out and ignored so maybe in 3.0... happy to hear what others think

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

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

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

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

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

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

@cnfait
Copy link
Contributor Author

cnfait commented Dec 1, 2022

Unit tests look OK - the failure is related to Athena

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.

Looks great!

@kukushking kukushking merged commit ca47748 into main Dec 1, 2022
@kukushking kukushking deleted the timestream-boto-createtable branch December 1, 2022 16:57
@kukushking kukushking added this to the 2.18.0 milestone Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants