@ken-e/dataform-youtube 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_channel_annotations_a1_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
 
@@ -83,7 +83,7 @@ select
83
83
  from ${ctx.ref(t.database, t.schema, "p_channel_basic_a2_" + t.suffix)}
84
84
  ${ctx.when(
85
85
  ctx.incremental(),
86
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
86
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
87
87
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
88
88
  )}
89
89
  `;
@@ -64,7 +64,7 @@ select
64
64
  from ${ctx.ref(t.database, t.schema, "p_channel_cards_a1_" + t.suffix)}
65
65
  ${ctx.when(
66
66
  ctx.incremental(),
67
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
67
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
68
68
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
69
69
  )}
70
70
  `;
@@ -71,7 +71,7 @@ select
71
71
  from ${ctx.ref(t.database, t.schema, "p_channel_combined_a2_" + t.suffix)}
72
72
  ${ctx.when(
73
73
  ctx.incremental(),
74
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
74
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
75
75
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
76
76
  )}
77
77
  `;
@@ -59,7 +59,7 @@ select
59
59
  from ${ctx.ref(t.database, t.schema, "p_channel_demographics_a1_" + t.suffix)}
60
60
  ${ctx.when(
61
61
  ctx.incremental(),
62
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
62
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
63
63
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
64
64
  )}
65
65
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_channel_device_os_a2_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -44,7 +44,7 @@ select
44
44
  from ${ctx.ref(t.database, t.schema, "p_channel_end_screens_a1_" + t.suffix)}
45
45
  ${ctx.when(
46
46
  ctx.incremental(),
47
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
47
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
48
48
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
49
49
  )}
50
50
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_playlist_basic_a1_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -68,7 +68,7 @@ select
68
68
  from ${ctx.ref(t.database, t.schema, "p_playlist_combined_a1_" + t.suffix)}
69
69
  ${ctx.when(
70
70
  ctx.incremental(),
71
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
71
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
72
72
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
73
73
  )}
74
74
  `;
@@ -66,7 +66,7 @@ select
66
66
  from ${ctx.ref(t.database, t.schema, "p_playlist_device_os_a1_" + t.suffix)}
67
67
  ${ctx.when(
68
68
  ctx.incremental(),
69
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
69
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
70
70
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
71
71
  )}
72
72
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_playlist_playback_location_a1_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_playlist_province_a1_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_playlist_traffic_source_a1_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -65,7 +65,7 @@ select
65
65
  from ${ctx.ref(t.database, t.schema, "p_channel_playback_location_a2_" + t.suffix)}
66
66
  ${ctx.when(
67
67
  ctx.incremental(),
68
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
68
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
69
69
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
70
70
  )}
71
71
  `;
@@ -77,7 +77,7 @@ select
77
77
  from ${ctx.ref(t.database, t.schema, "p_channel_province_a2_" + t.suffix)}
78
78
  ${ctx.when(
79
79
  ctx.incremental(),
80
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
80
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
81
81
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
82
82
  )}
83
83
  `;
@@ -57,7 +57,7 @@ select
57
57
  from ${ctx.ref(t.database, t.schema, "p_channel_sharing_service_a1_" + t.suffix)}
58
58
  ${ctx.when(
59
59
  ctx.incremental(),
60
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
60
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
61
61
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
62
62
  )}
63
63
  `;
@@ -64,7 +64,7 @@ select
64
64
  from ${ctx.ref(t.database, t.schema, "p_channel_subtitles_a2_" + t.suffix)}
65
65
  ${ctx.when(
66
66
  ctx.incremental(),
67
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
67
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
68
68
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
69
69
  )}
70
70
  `;
@@ -64,7 +64,7 @@ select
64
64
  from ${ctx.ref(t.database, t.schema, "p_channel_traffic_source_a2_" + t.suffix)}
65
65
  ${ctx.when(
66
66
  ctx.incremental(),
67
- `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t}"))`,
67
+ `where date(_PARTITIONTIME) in unnest((select partition_dates from unnest(partitions_to_update) where site_nm = "${t.schema}"))`,
68
68
  `where date(_PARTITIONTIME) > date(self_checkpoint)`,
69
69
  )}
70
70
  `;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "globals": "^15.14.0",
12
12
  "prettier": "3.4.2"
13
13
  },
14
- "version": "0.0.4",
14
+ "version": "0.0.5",
15
15
  "description": "A dataform package to process Youtube data from the BQ Data Transfer.",
16
16
  "main": "index.js",
17
17
  "scripts": {