|
4 | 4 | "path": "{{data}}/call_center/", |
5 | 5 | "cluster": "yq-tpc-local", |
6 | 6 | "format": "parquet", |
| 7 | + "constraints": { |
| 8 | + "primary_key": ["cc_call_center_sk"] |
| 9 | + }, |
7 | 10 | "schema": [ |
8 | 11 | "StructType", [ |
9 | 12 | ["cc_call_center_id", ["OptionalType", ["DataType", "String"]]], |
|
45 | 48 | "path": "{{data}}/catalog_page/", |
46 | 49 | "cluster": "yq-tpc-local", |
47 | 50 | "format": "parquet", |
| 51 | + "constraints": { |
| 52 | + "primary_key": ["cp_catalog_page_sk"] |
| 53 | + }, |
48 | 54 | "schema": [ |
49 | 55 | "StructType", [ |
50 | 56 | ["cp_catalog_number", ["OptionalType", ["DataType", "Int32"]]], |
|
64 | 70 | "path": "{{data}}/catalog_returns/", |
65 | 71 | "cluster": "yq-tpc-local", |
66 | 72 | "format": "parquet", |
| 73 | + "constraints": { |
| 74 | + "primary_key": ["cr_item_sk", "cr_order_number"] |
| 75 | + }, |
67 | 76 | "schema": [ |
68 | 77 | "StructType", [ |
69 | 78 | ["cr_call_center_sk", ["OptionalType", ["DataType", "Int32"]]], |
|
101 | 110 | "path": "{{data}}/catalog_sales/", |
102 | 111 | "cluster": "yq-tpc-local", |
103 | 112 | "format": "parquet", |
| 113 | + "constraints": { |
| 114 | + "primary_key": ["cs_item_sk", "cs_order_number"] |
| 115 | + }, |
104 | 116 | "schema": [ |
105 | 117 | "StructType", [ |
106 | 118 | ["cs_bill_addr_sk",["OptionalType",["DataType","Int32"]]], |
|
145 | 157 | "path": "{{data}}/customer/", |
146 | 158 | "cluster": "yq-tpc-local", |
147 | 159 | "format": "parquet", |
| 160 | + "constraints": { |
| 161 | + "primary_key": ["c_customer_sk"] |
| 162 | + }, |
148 | 163 | "schema": [ |
149 | 164 | "StructType", [ |
150 | 165 | ["c_birth_country",["OptionalType",["DataType","String"]]], |
|
173 | 188 | "path": "{{data}}/customer_address/", |
174 | 189 | "cluster": "yq-tpc-local", |
175 | 190 | "format": "parquet", |
| 191 | + "constraints": { |
| 192 | + "primary_key": ["ca_address_sk"] |
| 193 | + }, |
176 | 194 | "schema": [ |
177 | 195 | "StructType", [ |
178 | 196 | ["ca_address_id",["OptionalType",["DataType","String"]]], |
|
196 | 214 | "path": "{{data}}/customer_demographics/", |
197 | 215 | "cluster": "yq-tpc-local", |
198 | 216 | "format": "parquet", |
| 217 | + "constraints": { |
| 218 | + "primary_key": ["cd_demo_sk"] |
| 219 | + }, |
199 | 220 | "schema": [ |
200 | 221 | "StructType", [ |
201 | 222 | ["cd_credit_rating",["OptionalType",["DataType","String"]]], |
|
215 | 236 | "path": "{{data}}/date_dim/", |
216 | 237 | "cluster": "yq-tpc-local", |
217 | 238 | "format": "parquet", |
| 239 | + "constraints": { |
| 240 | + "primary_key": ["d_date_sk"] |
| 241 | + }, |
218 | 242 | "schema": [ |
219 | 243 | "StructType", [ |
220 | 244 | ["d_current_day",["OptionalType",["DataType","String"]]], |
|
253 | 277 | "path": "{{data}}/household_demographics/", |
254 | 278 | "cluster": "yq-tpc-local", |
255 | 279 | "format": "parquet", |
| 280 | + "constraints": { |
| 281 | + "primary_key": ["hd_demo_sk"] |
| 282 | + }, |
256 | 283 | "schema": [ |
257 | 284 | "StructType", [ |
258 | 285 | ["hd_buy_potential",["OptionalType",["DataType","String"]]], |
|
268 | 295 | "path": "{{data}}/income_band/", |
269 | 296 | "cluster": "yq-tpc-local", |
270 | 297 | "format": "parquet", |
| 298 | + "constraints": { |
| 299 | + "primary_key": ["ib_income_band_sk"] |
| 300 | + }, |
271 | 301 | "schema": [ |
272 | 302 | "StructType", [ |
273 | 303 | ["ib_income_band_sk",["OptionalType",["DataType","Int32"]]], |
|
281 | 311 | "path": "{{data}}/inventory/", |
282 | 312 | "cluster": "yq-tpc-local", |
283 | 313 | "format": "parquet", |
| 314 | + "constraints": { |
| 315 | + "primary_key": ["inv_date_sk", "inv_item_sk", "inv_warehouse_sk"] |
| 316 | + }, |
284 | 317 | "schema": [ |
285 | 318 | "StructType", [ |
286 | 319 | ["inv_date_sk",["OptionalType",["DataType","Int32"]]], |
|
295 | 328 | "path": "{{data}}/item/", |
296 | 329 | "cluster": "yq-tpc-local", |
297 | 330 | "format": "parquet", |
| 331 | + "constraints": { |
| 332 | + "primary_key": ["i_item_sk"] |
| 333 | + }, |
298 | 334 | "schema": [ |
299 | 335 | "StructType", [ |
300 | 336 | ["i_brand",["OptionalType",["DataType","String"]]], |
|
327 | 363 | "path": "{{data}}/promotion/", |
328 | 364 | "cluster": "yq-tpc-local", |
329 | 365 | "format": "parquet", |
| 366 | + "constraints": { |
| 367 | + "primary_key": ["p_promo_sk"] |
| 368 | + }, |
330 | 369 | "schema": [ |
331 | 370 | "StructType", [ |
332 | 371 | ["p_channel_catalog",["OptionalType",["DataType","String"]]], |
|
356 | 395 | "path": "{{data}}/reason/", |
357 | 396 | "cluster": "yq-tpc-local", |
358 | 397 | "format": "parquet", |
| 398 | + "constraints": { |
| 399 | + "primary_key": ["r_reason_sk"] |
| 400 | + }, |
359 | 401 | "schema": [ |
360 | 402 | "StructType", [ |
361 | 403 | ["r_reason_desc",["OptionalType",["DataType","String"]]], |
|
369 | 411 | "path": "{{data}}/ship_mode/", |
370 | 412 | "cluster": "yq-tpc-local", |
371 | 413 | "format": "parquet", |
| 414 | + "constrains": { |
| 415 | + "primary_key": ["sm_ship_mode_sk"] |
| 416 | + }, |
372 | 417 | "schema": [ |
373 | 418 | "StructType", [ |
374 | 419 | ["sm_carrier",["OptionalType",["DataType","String"]]], |
|
385 | 430 | "path": "{{data}}/store/", |
386 | 431 | "cluster": "yq-tpc-local", |
387 | 432 | "format": "parquet", |
| 433 | + "constraints": { |
| 434 | + "primary_key": ["s_store_sk"] |
| 435 | + }, |
388 | 436 | "schema": [ |
389 | 437 | "StructType", [ |
390 | 438 | ["s_city",["OptionalType",["DataType","String"]]], |
|
424 | 472 | "path": "{{data}}/store_returns/", |
425 | 473 | "cluster": "yq-tpc-local", |
426 | 474 | "format": "parquet", |
| 475 | + "constraints": { |
| 476 | + "primary_keys": ["sr_item_sk", "sr_ticket_number"] |
| 477 | + }, |
427 | 478 | "schema": [ |
428 | 479 | "StructType", [ |
429 | 480 | ["sr_addr_sk",["OptionalType",["DataType","Int32"]]], |
|
454 | 505 | "path": "{{data}}/store_sales/", |
455 | 506 | "cluster": "yq-tpc-local", |
456 | 507 | "format": "parquet", |
| 508 | + "constraints": { |
| 509 | + "primary_key": ["ss_item_sk", "ss_ticket_number"] |
| 510 | + }, |
457 | 511 | "schema": [ |
458 | 512 | "StructType", [ |
459 | 513 | ["ss_addr_sk",["OptionalType",["DataType","Int32"]]], |
|
487 | 541 | "path": "{{data}}/time_dim/", |
488 | 542 | "cluster": "yq-tpc-local", |
489 | 543 | "format": "parquet", |
| 544 | + "constraints": { |
| 545 | + "primary_key": ["t_time_sk"] |
| 546 | + }, |
490 | 547 | "schema": [ |
491 | 548 | "StructType", [ |
492 | 549 | ["t_am_pm",["OptionalType",["DataType","String"]]], |
|
507 | 564 | "path": "{{data}}/warehouse/", |
508 | 565 | "cluster": "yq-tpc-local", |
509 | 566 | "format": "parquet", |
| 567 | + "constraints": { |
| 568 | + "primary_keys": ["w_warehouse_sk"] |
| 569 | + }, |
510 | 570 | "schema": [ |
511 | 571 | "StructType", [ |
512 | 572 | ["w_city",["OptionalType",["DataType","String"]]], |
|
531 | 591 | "path": "{{data}}/web_page/", |
532 | 592 | "cluster": "yq-tpc-local", |
533 | 593 | "format": "parquet", |
| 594 | + "constraints": { |
| 595 | + "primary_key": ["wp_web_page_sk"] |
| 596 | + }, |
534 | 597 | "schema": [ |
535 | 598 | "StructType", [ |
536 | 599 | ["wp_access_date_sk",["OptionalType",["DataType","Int32"]]], |
|
555 | 618 | "path": "{{data}}/web_returns/", |
556 | 619 | "cluster": "yq-tpc-local", |
557 | 620 | "format": "parquet", |
| 621 | + "constraints": { |
| 622 | + "primary_key": ["wr_item_sk", "wr_order_number"] |
| 623 | + }, |
558 | 624 | "schema": [ |
559 | 625 | "StructType", [ |
560 | 626 | ["wr_account_credit",["OptionalType",["DataType","Double"]]], |
|
589 | 655 | "path": "{{data}}/web_sales/", |
590 | 656 | "cluster": "yq-tpc-local", |
591 | 657 | "format": "parquet", |
| 658 | + "constraints": { |
| 659 | + "primary_key": ["ws_item_sk", "ws_order_number"] |
| 660 | + }, |
592 | 661 | "schema": [ |
593 | 662 | "StructType", [ |
594 | 663 | ["ws_bill_addr_sk",["OptionalType",["DataType","Int32"]]], |
|
633 | 702 | "path": "{{data}}/web_site/", |
634 | 703 | "cluster": "yq-tpc-local", |
635 | 704 | "format": "parquet", |
| 705 | + "constraints": { |
| 706 | + "primary_keys": ["web_site_sk"] |
| 707 | + }, |
636 | 708 | "schema": [ |
637 | 709 | "StructType", [ |
638 | 710 | ["web_city",["OptionalType",["DataType","String"]]], |
|
0 commit comments