Skip to content

Commit e2c784b

Browse files
committed
updated based on feedback
1 parent 5a19864 commit e2c784b

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

test/test-markdown-frontmatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const chalk = require('chalk')
66
// accepted data field values
77
const sdk_languages = ['nodejs', 'scala', 'python', 'swift', 'csharp', 'objective-c', 'android-java', 'any', 'java', 'kotlin', 'dart', 'golang', 'c++']
88

9-
const tags = ['Ottoman', 'Ktor', 'REST API', 'Express', 'Flask', 'TLS', 'Configuration', 'Next.js', 'iOS', 'Xcode', '.NET', 'Xamarin', 'Authentication', 'OpenID', 'Keycloak', 'Android', 'P2P', 'UIKit', 'Installation', 'Spring Boot', 'Spring Data', 'Transactions', 'SQL++ (N1QL)', 'Optimization', 'Community Edition', 'Docker', 'Data Modeling', 'Metadata', 'Best Practices', 'Data Ingestion', 'Kafka', 'Support', 'Customer', 'Prometheus', 'Monitoring', 'Observability', 'Metrics', 'Query Workbench', 'ASP.NET', 'linq', 'DBaaS', 'App Services', 'Flutter', 'Gin Gonic', 'FastAPI', 'LangChain', "OpenAI", "Streamlit", 'Google Gemini', 'Nvidia NIM', 'LLama3', 'AWS', 'Artificial Intelligence', 'Cohere', 'Jina AI', 'Mistral AI', 'Ragas', 'Haystack', 'LangGraph', 'Amazon Bedrock', 'CrewAI', 'PydanticAI', 'C++', 'C++ SDK', 'smolagents', 'Ag2', 'Autogen', 'Couchbase Edge Server', 'Deepseek', 'OpenRouter', 'mastra', 'Looker Studio', 'Google Data Studio', 'Connector', 'Couchbase Columnar', 'Views-only', 'Data API']
9+
const tags = ['Ottoman', 'Ktor', 'REST API', 'Express', 'Flask', 'TLS', 'Configuration', 'Next.js', 'iOS', 'Xcode', '.NET', 'Xamarin', 'Authentication', 'OpenID', 'Keycloak', 'Android', 'P2P', 'UIKit', 'Installation', 'Spring Boot', 'Spring Data', 'Transactions', 'SQL++ (N1QL)', 'Optimization', 'Community Edition', 'Docker', 'Data Modeling', 'Metadata', 'Best Practices', 'Data Ingestion', 'Kafka', 'Support', 'Customer', 'Prometheus', 'Monitoring', 'Observability', 'Metrics', 'Query Workbench', 'ASP.NET', 'linq', 'DBaaS', 'App Services', 'Flutter', 'Gin Gonic', 'FastAPI', 'LangChain', "OpenAI", "Streamlit", 'Google Gemini', 'Nvidia NIM', 'LLama3', 'AWS', 'Artificial Intelligence', 'Cohere', 'Jina AI', 'Mistral AI', 'Ragas', 'Haystack', 'LangGraph', 'Amazon Bedrock', 'CrewAI', 'PydanticAI', 'C++', 'C++ SDK', 'smolagents', 'Ag2', 'Autogen', 'Couchbase Edge Server', 'Deepseek', 'OpenRouter', 'mastra', 'Looker Studio', 'Google Data Studio', 'Connector', 'Couchbase Columnar', 'TAVs', 'Custom Queries', 'Data API']
1010

1111
const technologies = ['connectors', 'kv', 'query', 'capella', 'server', 'index', 'mobile', 'fts', 'sync gateway', 'eventing', 'analytics', 'udf', 'vector search', 'react', 'edge-server', 'app-services']
1212

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

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ tags:
1717
- Looker Studio
1818
- Couchbase Columnar
1919
- Connector
20-
- Views-only
20+
- TAVs
21+
- Custom Queries
2122
sdk_language:
2223
- nodejs
2324
length: 20 Mins
@@ -57,11 +58,12 @@ When you add the Couchbase Columnar connector in Looker Studio, you'll see the a
5758

5859
For the "By View" mode, create Tabular Analytics Views in Capella:
5960

60-
1. Open your Capella cluster, go to the Analytics tab, and launch the Analytics Workbench.
61-
2. Prepare a SQL++ query that returns a tabular result. For simple, flat data structures, basic SELECT statements work well. For nested objects, consider flattening them for better BI tool compatibility. For example:
61+
1. **Open Analytics Workbench**: In your Capella cluster, go to the Analytics tab and launch the Analytics Workbench.
62+
63+
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:
6264

6365
```sql
64-
-- Example with flattening for nested data structures
66+
-- Example: Flattened airport data for reporting
6567
SELECT a.airportname AS airport_name,
6668
a.city AS city,
6769
a.country AS country,
@@ -73,7 +75,16 @@ WHERE a.country = 'United States'
7375
LIMIT 100;
7476
```
7577

76-
3. Run the query, then click Save as View → Annotate for Tabular View. Define the schema (column names, data types, and primary keys) and save with a descriptive name.
78+
3. **Test the query**: Run your query to verify it returns the expected results and data types.
79+
80+
4. **Create the TAV**:
81+
- Click **Save as View** in the Analytics Workbench
82+
- Select **Annotate for Tabular View**
83+
- **Define the schema**: Specify column names, data types (STRING, NUMBER, BOOLEAN), and mark primary key fields
84+
- **Name your view**: Use a descriptive name like `airports_us_flattened`
85+
- **Save**: The TAV will be created with enforced schema
86+
87+
5. **Verify creation**: Your TAV will appear in the database browser under the specified scope and can be queried like a table.
7788

7889
- For details, see [Tabular Analytics Views](https://docs.couchbase.com/columnar/query/views-tavs.html) and [Buckets, Scopes, and Collections](https://docs.couchbase.com/cloud/clusters/data-service/about-buckets-scopes-collections.html).
7990

@@ -151,7 +162,7 @@ Once your schema is configured, you can customize the fields in your Looker Stud
151162
- **Schema inference errors**: Ensure your TAV exists and contains data. Try adding a `LIMIT` clause for faster sampling (e.g., `LIMIT 100`).
152163
- **API error from Columnar**: Review the response message in Looker Studio and verify TAV names, permissions, and that the view is properly created in Capella.
153164
- **Empty or missing TAV**: Verify that your Tabular Analytics View was saved correctly in the Analytics Workbench and contains data.
154-
- **Mixed data types**: If fields appear as STRING when they should be NUMBER, your data may have mixed types. Consider modifying your TAV creation query to cast fields to consistent types (e.g., `CAST(price AS NUMBER)`) or filter out inconsistent records.
165+
- **Schema mismatch**: If fields appear with unexpected types, verify your TAV schema definition matches your query results. TAVs enforce schema consistency, so ensure your query produces data that matches the defined column types.
155166

156167
## Next Steps
157168

0 commit comments

Comments
 (0)