-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
34 lines (30 loc) · 900 Bytes
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/styles/github.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/highlight.min.js"></script>
<script src="https://unpkg.com/highlightjs-lookml/dist/lookml.min.js"></script>
<script>
hljs.highlightAll();
</script>
<pre><code class=""language-lookml">
include: "/views/*.view.lkml"
datagroup: ecommerce_etl {
sql_trigger: SELECT MAX(created_at) FROM {{ _user_attributes['events'] }} ;;
max_cache_age: "24 hours"
}
explore: +order_items {
join: orders {
type: left_outer
view_label: "Orders"
relationship: many_to_one
sql_on: ${order_facts.order_id} = ${order_items.order_id} ;;
}
}
view: orders {
sql_table_name: analytics.fct_order ;;
dimension: order_id {
label: "Order ID"
type: number
hidden: yes
sql: ${TABLE}.order_id ;;
}
}
</code></pre>