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

fix: Reduce JSON column schema nesting #1819

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

erezrokah
Copy link
Member

Summary

Otherwise we generate too big gRPC messages and the tables command fails:
https://github.com/cloudquery/cloudquery-private/actions/runs/10076465888/job/27856903583#step:6:15


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 a team as a code owner July 24, 2024 13:23
@erezrokah erezrokah requested a review from marianogappa July 24, 2024 13:23
@github-actions github-actions bot added the fix label Jul 24, 2024
@kodiakhq kodiakhq bot merged commit 2e1112f into cloudquery:main Jul 24, 2024
8 checks passed
kodiakhq bot pushed a commit that referenced this pull request Jul 24, 2024
🤖 I have created a release *beep* *boop*
---


## [4.52.1](v4.52.0...v4.52.1) (2024-07-24)


### Bug Fixes

* Don't panic when trying `ToSnake` on `s` character ([#1816](#1816)) ([30e02da](30e02da))
* Properly handle map and slice pointers ([#1817](#1817)) ([8fe9081](8fe9081))
* Reduce JSON column schema nesting ([#1819](#1819)) ([2e1112f](2e1112f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit that referenced this pull request Aug 1, 2024
#### Summary

#1819 fixed it for the gRPC message, but it seems our backend [can't handle](https://github.com/cloudquery/cloudquery-private/actions/runs/10164552583/job/28110217028#step:13:10) the size of the Stripe `tables.json` (see https://stackoverflow.com/questions/59209884/cloud-run-request-limit).
With the current default max depth of 4 it's ~40MB.
Setting it to 3 lowers it to ~11MB.

---
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