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

Open
pskrbasu opened this issue Jun 27, 2024 · 0 comments · May be fixed by #4318
Open

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

pskrbasu opened this issue Jun 27, 2024 · 0 comments · May be fixed by #4318
Assignees
Labels
enhancement New feature or request

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": {
   ...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant