Skip to content

Conversation

@erezrokah
Copy link
Member

@erezrokah erezrokah commented Jun 1, 2023

Summary

Added due to cloudquery/cloudquery#11115, where I'm using decimal to represent all different int types.
For the tests of that PR I need to convert Go int types (generated by the test data) to scalars so I can compare with the data read from the database


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested a review from yevgenypats as a code owner June 1, 2023 16:42
@github-actions github-actions bot added feat and removed feat labels Jun 1, 2023
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

⏱️ Benchmark results

  • DefaultConcurrencyDFS-2 resources/s: 10,185
  • DefaultConcurrencyRoundRobin-2 resources/s: 12,368
  • Glob-2 ns/op: 151.4
  • TablesWithChildrenDFS-2 resources/s: 27,983
  • TablesWithChildrenRoundRobin-2 resources/s: 27,049
  • TablesWithRateLimitingDFS-2 resources/s: 28.38
  • TablesWithRateLimitingRoundRobin-2 resources/s: 821.9

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Patch coverage: 50.00% and project coverage change: +0.24 🎉

Comparison is base (8cfc215) 51.79% compared to head (fa5e700) 52.04%.

❗ Current head fa5e700 differs from pull request most recent head fe6806a. Consider uploading reports for the commit fe6806a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #937      +/-   ##
==========================================
+ Coverage   51.79%   52.04%   +0.24%     
==========================================
  Files          62       62              
  Lines        6197     6325     +128     
==========================================
+ Hits         3210     3292      +82     
- Misses       2702     2728      +26     
- Partials      285      305      +20     
Impacted Files Coverage Δ
scalar/decimal.go 43.57% <50.00%> (+17.25%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kodiakhq kodiakhq bot merged commit 159e975 into cloudquery:main Jun 1, 2023
@erezrokah erezrokah deleted the feat/decimal_int_types branch June 1, 2023 17:36
kodiakhq bot pushed a commit that referenced this pull request Jun 1, 2023

Follow up to #937, also needed for cloudquery/cloudquery#11115

When reading data from a database it is common to pass a pointer to a value to support reading `nil` values, so the type of the value read is a pointer to a pointer.

Without this PR, if someone uses the decimal scalar they need to dereferences the pointer manually before setting the scalar value.

---
kodiakhq bot pushed a commit that referenced this pull request Jun 1, 2023
🤖 I have created a release *beep* *boop*
---


## [3.10.0](v3.9.0...v3.10.0) (2023-06-01)


### Features

* **scalar:** Support all int variations in decimal scalar ([#937](#937)) ([159e975](159e975))
* **scalar:** Support pointer dereferencing in decimal ([#938](#938)) ([181e676](181e676))


### Bug Fixes

* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 7f8dd24 ([#936](#936)) ([8cfc215](8cfc215))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to c1359c5 ([#933](#933)) ([dab8d86](dab8d86))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to c67fb39 ([#935](#935)) ([82f5f60](82f5f60))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants