Skip to content

Commit 9291c4b

Browse files
committed
made query simple and removed flattening
1 parent 6ae502b commit 9291c4b

File tree

1 file changed

+7
-8
lines changed
  • tutorial/markdown/connectors/looker-studio/columnar

1 file changed

+7
-8
lines changed

tutorial/markdown/connectors/looker-studio/columnar/readme.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,15 @@ For the "By View" mode, create Tabular Analytics Views in Capella:
8080

8181
1. **Open Analytics Workbench**: In your Capella cluster, go to the Analytics tab and launch the Analytics Workbench.
8282

83-
2. **Create your SQL++ query**: Write a query that returns the data structure you want for reporting. For nested objects, consider flattening them for better BI tool compatibility:
83+
2. **Create your SQL++ query**: Write a query that returns the data structure you want for reporting:
8484

8585
```sql
86-
-- Example: Flattened airport data for reporting
87-
SELECT a.airportname AS airport_name,
88-
a.city AS city,
89-
a.country AS country,
90-
a.geo.lat AS latitude,
91-
a.geo.lon AS longitude,
92-
ARRAY_FLATTEN(a.faa, ', ') AS faa_codes
86+
-- Example airport query for TAV creation
87+
SELECT a.airportname,
88+
a.city,
89+
a.country,
90+
a.faa,
91+
a.icao
9392
FROM `travel-sample`.`inventory`.`airport` AS a
9493
WHERE a.country = 'United States'
9594
LIMIT 100;

0 commit comments

Comments
 (0)