Skip to content

Add Malloy demo: LookML to Malloy conversion#42

Merged
nicosuave merged 7 commits intomainfrom
nicosuave/malloy-lookml-demo
Jan 5, 2026
Merged

Add Malloy demo: LookML to Malloy conversion#42
nicosuave merged 7 commits intomainfrom
nicosuave/malloy-lookml-demo

Conversation

@nicosuave
Copy link
Copy Markdown
Member

Adds an interactive demo showing LookML-to-Malloy conversion with sample data and queries.

What it includes:

  • Demo script that parses 3 LookML views and converts to Malloy format
  • Generates sample e-commerce data (200 customers, 40 products, 5000 orders) as Parquet files
  • Includes interactive Malloy file with sample queries and a dashboard example
  • Users can explore in VS Code Malloy extension or GitHub Codespaces (press .)

Changes to Malloy adapter:

  • Fixed dimension export to skip redundant id is id style definitions (Malloy columns are auto-available)
  • Added _strip_model_prefix() to remove internal {model}. placeholders from output

Ready to explore: open examples/malloy_demo/malloy_output/thelook.malloy in VS Code with the Malloy extension.

…tion

- New demo in examples/malloy_demo/ showing LookML-to-Malloy conversion
- Generates sample e-commerce data (customers, products, orders) as Parquet files
- Includes interactive Malloy file with sample queries and dashboard
- Fixed Malloy adapter to skip redundant dimensions and strip {model}. prefixes
- Users can explore generated Malloy in VS Code extension or GitHub Codespaces
Modern Malloy rejects 'id is id' patterns where a dimension redefines
the primary key column. The fix skips exporting dimensions that match
the model's primary key since Malloy auto-exposes the PK column.

Updated roundtrip tests to account for this behavior.
@nicosuave nicosuave merged commit 0405a46 into main Jan 5, 2026
10 checks passed
@nicosuave nicosuave deleted the nicosuave/malloy-lookml-demo branch January 5, 2026 04:16
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.

1 participant