Skip to content

BigQuery: Struct data type display #710

@k-lawecki

Description

@k-lawecki

Hi,

One more feature request, this is one seems a bit bigger - we are heavily using STRUCT data type, as well as repeated STRUCTs.

Currently this is displayed in DBCode as jsons, see example below (status column):

Image Image

in reality, big advantage of STRUCT data type in bigquery is the fact it can be displayed in much better format than JSON / json-like string, see below:

Image

Data format in this example:

  • custom_id - string
    • status - struct containing:
    • status.bucket - string
    • status.status_history - struct (repeated) containing:
      • status.status_history.status_group - string
      • status.status_history.status - string
      • status.status_history.status_since - timestamp
      • status.status_history.minutes_in_status - int

Table schema looks in BigQuery like this:

Image

So in ideal world if we could have separate column view for struct(s) subcolumns (with respecting subcolumns data types in display) as well as repeated rows handled that would be amazing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions