Skip to content

Conversation

@erezrokah
Copy link
Member

@erezrokah erezrokah commented Jun 1, 2023

Summary

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 dereference the pointer manually before setting the scalar value.


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 17:28
@github-actions github-actions bot added feat and removed feat labels Jun 1, 2023
@erezrokah erezrokah force-pushed the feat/decimal_support_unwrapping branch from 55e666f to 583a757 Compare June 1, 2023 17:30
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

⏱️ Benchmark results

  • DefaultConcurrencyDFS-2 resources/s: 10,655
  • DefaultConcurrencyRoundRobin-2 resources/s: 10,388
  • Glob-2 ns/op: 203.8
  • TablesWithChildrenDFS-2 resources/s: 26,135
  • TablesWithChildrenRoundRobin-2 resources/s: 25,567
  • TablesWithRateLimitingDFS-2 resources/s: 28.33
  • TablesWithRateLimitingRoundRobin-2 resources/s: 846.4

@kodiakhq kodiakhq bot merged commit 181e676 into cloudquery:main Jun 1, 2023
@erezrokah erezrokah deleted the feat/decimal_support_unwrapping branch June 1, 2023 17:40
@github-actions github-actions bot added feat and removed feat labels Jun 1, 2023
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.

3 participants