|
1 | | -# build_copy_queries snapshot test for pixarfilms |
2 | | - |
3 | | - Code |
4 | | - pixar_dm %>% build_copy_queries(src_db, .) %>% as.list() |
5 | | - Output |
6 | | - $name |
7 | | - [1] "pixar_films" "academy" "box_office" "genres" |
8 | | - [5] "public_response" |
9 | | - |
10 | | - $remote_name |
11 | | - pixar_films academy box_office genres |
12 | | - "pixar_films" "academy" "box_office" "genres" |
13 | | - public_response |
14 | | - "public_response" |
15 | | - |
16 | | - $columns |
17 | | - $columns[[1]] |
18 | | - [1] "number" "film" "release_date" "run_time" "film_rating" |
19 | | - |
20 | | - $columns[[2]] |
21 | | - [1] "film" "award_type" "status" |
22 | | - |
23 | | - $columns[[3]] |
24 | | - [1] "film" "budget" "box_office_us_canada" |
25 | | - [4] "box_office_other" "box_office_worldwide" |
26 | | - |
27 | | - $columns[[4]] |
28 | | - [1] "film" "genre" |
29 | | - |
30 | | - $columns[[5]] |
31 | | - [1] "film" "rotten_tomatoes" "metacritic" "cinema_score" |
32 | | - [5] "critics_choice" |
33 | | - |
34 | | - |
35 | | - $sql_table |
36 | | - <SQL> CREATE TEMPORARY TABLE pixar_films ( |
37 | | - number STRING, |
38 | | - film STRING, |
39 | | - release_date DATE, |
40 | | - run_time DOUBLE, |
41 | | - film_rating STRING, |
42 | | - PRIMARY KEY (film) |
43 | | - ) |
44 | | - <SQL> CREATE TEMPORARY TABLE academy ( |
45 | | - film STRING, |
46 | | - award_type STRING, |
47 | | - status STRING, |
48 | | - PRIMARY KEY (film, award_type), |
49 | | - FOREIGN KEY (film) REFERENCES pixar_films (film) |
50 | | - ) |
51 | | - <SQL> CREATE TEMPORARY TABLE box_office ( |
52 | | - film STRING, |
53 | | - budget DOUBLE, |
54 | | - box_office_us_canada DOUBLE, |
55 | | - box_office_other DOUBLE, |
56 | | - box_office_worldwide DOUBLE, |
57 | | - PRIMARY KEY (film), |
58 | | - FOREIGN KEY (film) REFERENCES pixar_films (film) |
59 | | - ) |
60 | | - <SQL> CREATE TEMPORARY TABLE genres ( |
61 | | - film STRING, |
62 | | - genre STRING, |
63 | | - PRIMARY KEY (film, genre), |
64 | | - FOREIGN KEY (film) REFERENCES pixar_films (film) |
65 | | - ) |
66 | | - <SQL> CREATE TEMPORARY TABLE public_response ( |
67 | | - film STRING, |
68 | | - rotten_tomatoes DOUBLE, |
69 | | - metacritic DOUBLE, |
70 | | - cinema_score STRING, |
71 | | - critics_choice DOUBLE, |
72 | | - PRIMARY KEY (film), |
73 | | - FOREIGN KEY (film) REFERENCES pixar_films (film) |
74 | | - ) |
75 | | - |
76 | | - $sql_index |
77 | | - $sql_index[[1]] |
78 | | - NULL |
79 | | - |
80 | | - $sql_index[[2]] |
81 | | - <SQL> CREATE INDEX academy__film ON academy (film) |
82 | | - |
83 | | - $sql_index[[3]] |
84 | | - <SQL> CREATE INDEX box_office__film ON box_office (film) |
85 | | - |
86 | | - $sql_index[[4]] |
87 | | - <SQL> CREATE INDEX genres__film ON genres (film) |
88 | | - |
89 | | - $sql_index[[5]] |
90 | | - <SQL> CREATE INDEX public_response__film ON public_response (film) |
91 | | - |
92 | | - |
93 | | - $index_name |
94 | | - $index_name[[1]] |
95 | | - NULL |
96 | | - |
97 | | - $index_name[[2]] |
98 | | - [1] "academy__film" |
99 | | - |
100 | | - $index_name[[3]] |
101 | | - [1] "box_office__film" |
102 | | - |
103 | | - $index_name[[4]] |
104 | | - [1] "genres__film" |
105 | | - |
106 | | - $index_name[[5]] |
107 | | - [1] "public_response__film" |
108 | | - |
109 | | - |
110 | | - |
111 | 1 | # build_copy_queries snapshot test for dm_for_filter() |
112 | 2 |
|
113 | 3 | Code |
|
0 commit comments