# Nested Fields

[Nested fields](https://cloud.google.com/bigquery/docs/nested-repeated) represent complex data structures within a single column. This allows you to store arrays and structs in a column, enabling more sophisticated data modeling and reducing the need for complex joins.

This is why we have decided to include them in our ingestion to have as much visibility as possible when integrating with BigQuery.

## Columns

We treat the inner fields as first class columns. These columns have their own popularity and other attributes independent of each other, as they are all treated as separate columns.

![Columns generated from nested fields](/files/wOmZY8eagKuo4iniSpxB)

![Nested field column details](/files/NN9vP7WE3hX7nX8ik7J0)

## Lineage

When ingesting nested fields, you will be able to see lineage going to/from them.

![Nested fields lineage](/files/RzBBi7aUBwBVwC3qj5D1)

See the link below for more information on how to navigate through data lineage.

{% content-ref url="/pages/-MgBz1w\_cd0EvhqPLll0" %}
[Data Lineage](/features/lineage.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.selectstar.com/learning-data/getting-started-bigquery/bigquery-nested-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
