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

Update JSON output to be consistent across pipelings - also handle duplicate column names #4317

Closed
pskrbasu opened this issue Jun 27, 2024 · 1 comment · Fixed by #4318
Closed
Assignees
Labels
enhancement New feature or request stale No recent activity has been detected on this issue/PR and it will be closed

Comments

@pskrbasu
Copy link
Contributor

Update Steampipe JSON output to align all cases around a single format.
Cases:

  • steampipe query --output json
  • powerpipe query run --output json
  • snapshot data format
  • Pipes query API

Proposed format:

{
  "columns": [
    {
      "name": "foo",
      "data_type": "int4"
    },
    {
      "name": "foo_{random4}",
      "data_type": "int4",
      "original_name": "foo"
    }
  ],
  "rows": [
    {
      "foo": 1,
      "foo_{random4}": 2
    }
  ],
  "metadata": {
   ...
  }
}
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Aug 27, 2024
kaidaguerre pushed a commit that referenced this issue Sep 2, 2024
pskrbasu added a commit that referenced this issue Sep 5, 2024
@pskrbasu pskrbasu mentioned this issue Sep 5, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale No recent activity has been detected on this issue/PR and it will be closed
Projects
None yet
1 participant