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

Flatten nested json causing bad results #40

Closed
steven-deboer opened this issue May 13, 2022 · 0 comments
Closed

Flatten nested json causing bad results #40

steven-deboer opened this issue May 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@steven-deboer
Copy link
Contributor

Describe the bug

After receiving some unexpected results I investigated the code. I received much more rows then expected.

Expected behavior

The json should be flattened resulting in new columns, not new rows.

Current behavior

We are seeing more rows with the same ids/index. Something goes wrong.

Possible solution

Rewrite flatten_nested_json

Steps to reproduce

Test with

pc -vv --columns id,alertTime,policyId,resource.name,resource.account alert list --policy-id ad23603d-754e-4499-8988-b80178785898 --unit hour --amount 24

@steven-deboer steven-deboer added the bug Something isn't working label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant