@ken-e/dataform-youtube 0.0.3 → 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.
Files changed (38) hide show
  1. package/includes/definitions/sources/stg_ytc_annotation.js +2 -2
  2. package/includes/definitions/sources/stg_ytc_basic.js +2 -2
  3. package/includes/definitions/sources/stg_ytc_cards.js +2 -2
  4. package/includes/definitions/sources/stg_ytc_combined.js +2 -2
  5. package/includes/definitions/sources/stg_ytc_demographics.js +2 -2
  6. package/includes/definitions/sources/stg_ytc_device_os.js +2 -2
  7. package/includes/definitions/sources/stg_ytc_end_screens.js +2 -2
  8. package/includes/definitions/sources/stg_ytc_list_basic.js +2 -2
  9. package/includes/definitions/sources/stg_ytc_list_combined.js +2 -2
  10. package/includes/definitions/sources/stg_ytc_list_device_os.js +2 -2
  11. package/includes/definitions/sources/stg_ytc_list_playback.js +2 -2
  12. package/includes/definitions/sources/stg_ytc_list_province.js +2 -2
  13. package/includes/definitions/sources/stg_ytc_list_traffic_source.js +2 -2
  14. package/includes/definitions/sources/stg_ytc_playback.js +2 -2
  15. package/includes/definitions/sources/stg_ytc_province.js +2 -2
  16. package/includes/definitions/sources/stg_ytc_share_platform.js +2 -2
  17. package/includes/definitions/sources/stg_ytc_subtitles.js +2 -2
  18. package/includes/definitions/sources/stg_ytc_traffic_source.js +2 -2
  19. package/includes/definitions/ytc_annotation.js +1 -1
  20. package/includes/definitions/ytc_basic.js +1 -1
  21. package/includes/definitions/ytc_cards.js +1 -1
  22. package/includes/definitions/ytc_combined.js +1 -1
  23. package/includes/definitions/ytc_demographics.js +1 -1
  24. package/includes/definitions/ytc_demographics_views.js +1 -1
  25. package/includes/definitions/ytc_device_os.js +1 -1
  26. package/includes/definitions/ytc_end_screens.js +1 -1
  27. package/includes/definitions/ytc_list_basic.js +1 -1
  28. package/includes/definitions/ytc_list_combined.js +1 -1
  29. package/includes/definitions/ytc_list_device_os.js +1 -1
  30. package/includes/definitions/ytc_list_playback.js +1 -1
  31. package/includes/definitions/ytc_list_province.js +1 -1
  32. package/includes/definitions/ytc_list_traffic_source.js +1 -1
  33. package/includes/definitions/ytc_playback.js +1 -1
  34. package/includes/definitions/ytc_province.js +1 -1
  35. package/includes/definitions/ytc_share_platform.js +1 -1
  36. package/includes/definitions/ytc_subtitles.js +1 -1
  37. package/includes/definitions/ytc_traffic_source.js +1 -1
  38. package/package.json +1 -1
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_annotation", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
 
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_basic", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_cards", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_combined", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_demographics", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_device_os", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_end_screens", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_list_basic", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_list_combined", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_list_device_os", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_list_playback", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_list_province", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_list_traffic_source", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_playback", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_province", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_share_platform", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -10,7 +10,7 @@ module.exports = (config) => {
10
10
  return publish("stg_ytc_subtitles", {
11
11
  type: "incremental",
12
12
  database: config.target.database,
13
- schema: config.datasetStaging,
13
+ schema: config.target.datasetStaging,
14
14
  protected: config.protected,
15
15
  tags: ["youtube", "source", "staging", "daily"],
16
16
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  return publish("stg_ytc_traffic_source", {
10
10
  type: "incremental",
11
11
  database: config.target.database,
12
- schema: config.datasetStaging,
12
+ schema: config.target.datasetStaging,
13
13
  protected: config.protected,
14
14
  tags: ["youtube", "source", "staging", "daily"],
15
15
  bigquery: {
@@ -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
  `;
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_annotation", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_basic", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_cards", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_combined", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_demographics", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_demographics_views", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -13,7 +13,7 @@ module.exports = (config) => {
13
13
  // eslint-disable-next-line no-undef
14
14
  return publish("ytc_device_os", {
15
15
  type: "incremental",
16
- schema: config.outputSchema,
16
+ schema: config.target.outputSchema,
17
17
  tags: ["youtube", "output", "daily"],
18
18
  bigquery: {
19
19
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_end_screens", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_basic", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_combined", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_device_os", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_playback", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_province", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_list_traffic_source", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_playback", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_province", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -13,7 +13,7 @@ module.exports = (config) => {
13
13
  // eslint-disable-next-line no-undef
14
14
  return publish("ytc_share_platform", {
15
15
  type: "incremental",
16
- schema: config.outputSchema,
16
+ schema: config.target.outputSchema,
17
17
  tags: ["youtube", "output", "daily"],
18
18
  bigquery: {
19
19
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_subtitles", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
@@ -9,7 +9,7 @@ module.exports = (config) => {
9
9
  // eslint-disable-next-line no-undef
10
10
  return publish("ytc_traffic_source", {
11
11
  type: "incremental",
12
- schema: config.outputSchema,
12
+ schema: config.target.outputSchema,
13
13
  tags: ["youtube", "output", "daily"],
14
14
  bigquery: {
15
15
  partitionBy: "data_date",
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.3",
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": {