Skip to content

Commit f4c0a64

Browse files
add query tags
1 parent fe9a8ba commit f4c0a64

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

tasty_bytes_dbt_demo/setup/tasty_bytes_setup.sql

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ CREATE OR REPLACE TABLE tb_101.raw.country
2727
city_id NUMBER(19,0),
2828
city VARCHAR(16777216),
2929
city_population VARCHAR(16777216)
30-
);
30+
)
31+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
3132

3233
-- franchise table build
3334
CREATE OR REPLACE TABLE tb_101.raw.franchise
@@ -39,7 +40,8 @@ CREATE OR REPLACE TABLE tb_101.raw.franchise
3940
country VARCHAR(16777216),
4041
e_mail VARCHAR(16777216),
4142
phone_number VARCHAR(16777216)
42-
);
43+
)
44+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
4345

4446
-- location table build
4547
CREATE OR REPLACE TABLE tb_101.raw.location
@@ -51,7 +53,8 @@ CREATE OR REPLACE TABLE tb_101.raw.location
5153
region VARCHAR(16777216),
5254
iso_country_code VARCHAR(16777216),
5355
country VARCHAR(16777216)
54-
);
56+
)
57+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
5558

5659
-- menu table build
5760
CREATE OR REPLACE TABLE tb_101.raw.menu
@@ -67,7 +70,8 @@ CREATE OR REPLACE TABLE tb_101.raw.menu
6770
cost_of_goods_usd NUMBER(38,4),
6871
sale_price_usd NUMBER(38,4),
6972
menu_item_health_metrics_obj VARIANT
70-
);
73+
)
74+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
7175

7276
-- truck table build
7377
CREATE OR REPLACE TABLE tb_101.raw.truck
@@ -86,7 +90,8 @@ CREATE OR REPLACE TABLE tb_101.raw.truck
8690
ev_flag NUMBER(38,0),
8791
franchise_id NUMBER(38,0),
8892
truck_opening_date DATE
89-
);
93+
)
94+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
9095

9196
-- order_header table build
9297
CREATE OR REPLACE TABLE tb_101.raw.order_header
@@ -107,7 +112,8 @@ CREATE OR REPLACE TABLE tb_101.raw.order_header
107112
order_tax_amount VARCHAR(16777216),
108113
order_discount_amount VARCHAR(16777216),
109114
order_total NUMBER(38,4)
110-
);
115+
)
116+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
111117

112118
-- order_detail table build
113119
CREATE OR REPLACE TABLE tb_101.raw.order_detail
@@ -121,7 +127,8 @@ CREATE OR REPLACE TABLE tb_101.raw.order_detail
121127
unit_price NUMBER(38,4),
122128
price NUMBER(38,4),
123129
order_item_discount_amount VARCHAR(16777216)
124-
);
130+
)
131+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
125132

126133
-- customer loyalty table build
127134
CREATE OR REPLACE TABLE tb_101.raw.customer_loyalty
@@ -141,7 +148,8 @@ CREATE OR REPLACE TABLE tb_101.raw.customer_loyalty
141148
birthday_date DATE,
142149
e_mail VARCHAR(16777216),
143150
phone_number VARCHAR(16777216)
144-
);
151+
)
152+
COMMENT = '{"origin":"sf_sit-is", "name":"tasty-bytes-dbt", "version":{"major":1, "minor":0}, "attributes":{"is_quickstart":0, "source":"sql"}}';
145153

146154
/*--
147155
raw zone table load

0 commit comments

Comments
 (0)