-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
data_test.sql
49 lines (43 loc) · 1.06 KB
/
data_test.sql
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
select
1 as idx,
'2020-10-21' as date_col,
cast(0 as {{ dbt.type_float() }}) as col_numeric_a,
cast(1 as {{ dbt.type_float() }}) as col_numeric_b,
'a' as col_string_a,
'b' as col_string_b,
cast(null as {{ dbt.type_string() }}) as col_null,
cast(null as {{ dbt.type_string() }}) as col_null_2,
1.0 as col_numeric_a_plus_b
union all
select
2 as idx,
'2020-10-22' as date_col,
1 as col_numeric_a,
0 as col_numeric_b,
'b' as col_string_a,
'ab' as col_string_b,
null as col_null,
null as col_null_2,
1.0 as col_numeric_a_plus_b
union all
select
3 as idx,
'2020-10-23' as date_col,
0.5 as col_numeric_a,
0.5 as col_numeric_b,
'c' as col_string_a,
'abc' as col_string_b,
null as col_null,
null as col_null_2,
1.0 as col_numeric_a_plus_b
union all
select
4 as idx,
'2020-10-23' as date_col,
0.5 as col_numeric_a,
0.5 as col_numeric_b,
'c' as col_string_a,
'abcd' as col_string_b,
null as col_null,
null as col_null_2,
1.0 as col_numeric_a_plus_b