Skip to content

Conversation

@cbruno10
Copy link
Contributor

@cbruno10 cbruno10 commented May 6, 2025

No description provided.

@cbruno10 cbruno10 requested a review from Copilot May 6, 2025 14:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new examples demonstrating how to unnest nested STRUCT and JSON data in SQL queries. The changes include new SQL snippets and accompanying JSON examples in three documentation files.

  • Added a SQL snippet in docs/sql/tips.md to illustrate filtering on JSON expressions.
  • Updated docs/sql/querying-struct.md with an example for unnesting nested STRUCT values.
  • Enhanced docs/sql/querying-json.md with examples using unnesting on JSON arrays and updated JSON extraction functions.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/sql/tips.md Added a SQL example showing how to filter and order cloudtrail logs.
docs/sql/querying-struct.md Introduced a JSON example and SQL query to demonstrate unnesting in STRUCT columns.
docs/sql/querying-json.md Updated examples to use json_extract_string and added unnesting examples for JSON arrays.

@cbruno10 cbruno10 merged commit 75659ae into main May 6, 2025
5 checks passed
@cbruno10 cbruno10 deleted the add-json-struct-unnest-examples branch May 6, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants