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

Explicit conversion of strings to int64. #2346

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

RicNord
Copy link
Contributor

@RicNord RicNord commented May 28, 2023

Changes

Explicit conversion of strings to int64. Instead of machine dependent conversion when using integer type int (bit size 0 in strconv.ParseInt), that will throw "value out of range" error for platforms that infer int as int32, when larger integers than int32 is used.

Tests

  • make test run locally
  • relevant change in docs/ folder
  • covered with integration tests in internal/acceptance
  • relevant acceptance tests are passing
  • using Go SDK

@alexott alexott requested review from a team May 30, 2023 06:43
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2023

Codecov Report

Merging #2346 (c5bb4f3) into master (cbb3dde) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2346   +/-   ##
=======================================
  Coverage   88.48%   88.48%           
=======================================
  Files         141      141           
  Lines       11642    11642           
=======================================
  Hits        10302    10302           
  Misses        890      890           
  Partials      450      450           
Impacted Files Coverage Δ
access/resource_permission_assignment.go 95.34% <100.00%> (ø)
mws/resource_mws_permission_assignment.go 96.92% <100.00%> (ø)
permissions/resource_permissions.go 89.66% <100.00%> (ø)
repos/resource_git_credential.go 88.57% <100.00%> (ø)

@RicNord
Copy link
Contributor Author

RicNord commented Jun 11, 2023

Please let me know if you have any comments or suggestion of changes to this PR.

Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

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

lgtm

@alexott
Copy link
Contributor

alexott commented Jun 11, 2023

Can you please rebase this branch to the latest master ?

Instead of machine dependant conversion when using integer type int.
Will throw "value out of range" error for platforms that infer int as int32,
when larger integers than int32 is used.
@alexott
Copy link
Contributor

alexott commented Jun 11, 2023

Run aws-prod & aws-ucws acceptance tests. first one failed with not related error - for some reason cluster library wasn't installed

@nfx nfx merged commit 5751fc9 into databricks:master Jun 12, 2023
@nfx nfx mentioned this pull request Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants