-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquotes.view.lookml
73 lines (58 loc) · 1.3 KB
/
quotes.view.lookml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
- view: quotes
derived_table:
sql: |
SELECT * FROM [bigquery-samples:nasdaq_stock_quotes.quotes]
fields:
- measure: count
type: count
drill_fields: detail*
- dimension: symbol
type: string
sql: ${TABLE}.symbol
- dimension: start_date
type: int
sql: ${TABLE}.start_date
- dimension_group: date
type: time
timeframes: [date, week, month, year]
sql: timestamp(${TABLE}.start_date)
- dimension: start_time
type: int
sql: ${TABLE}.start_time
- dimension: end_date
type: int
sql: ${TABLE}.end_date
- dimension: end_time
type: int
sql: ${TABLE}.end_time
- dimension: market_center
type: string
sql: ${TABLE}.market_center
- dimension: bid_quantity
type: int
sql: ${TABLE}.bid_quantity
- dimension: bid_price
type: number
sql: ${TABLE}.bid_price
- dimension: ask_quantity
type: int
sql: ${TABLE}.ask_quantity
- dimension: ask_price
type: number
sql: ${TABLE}.ask_price
- dimension: quote_condition
type: string
sql: ${TABLE}.quote_condition
sets:
detail:
- symbol
- start_date
- start_time
- end_date
- end_time
- market_center
- bid_quantity
- bid_price
- ask_quantity
- ask_price
- quote_condition