Skip to content

Commit

Permalink
drop if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Sep 19, 2024
1 parent e9c0a0c commit e9e09ce
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions definitions/output/sample_data/pages_10k.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
publish("pages_10k", {
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "rank"]
},
tags: ["crawl_results_all"]
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "rank"]
},
tags: ["crawl_results_all"]
}).preOps(ctx => `
DROP TABLE ${ctx.self()};
DROP TABLE IF EXISTS ${ctx.self()};
`).query(ctx => `
SELECT *
FROM ${ctx.ref("all", "pages")}
Expand Down
16 changes: 8 additions & 8 deletions definitions/output/sample_data/parsed_css_10k.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
publish("parsed_css_10k", {
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "rank", "page"]
},
tags: ["crawl_results_all"]
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "rank", "page"]
},
tags: ["crawl_results_all"]
}).preOps(ctx => `
DROP TABLE ${ctx.self()};
DROP TABLE IF EXISTS ${ctx.self()};
`).query(ctx => `
SELECT *
FROM ${ctx.ref("all", "parsed_css")}
Expand Down
16 changes: 8 additions & 8 deletions definitions/output/sample_data/requests_10k.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
publish("requests_10k", {
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "is_main_document", "type"]
},
tags: ["crawl_results_all"]
type: "table",
schema: "sample_data",
bigquery: {
partitionBy: "date",
clusterBy: ["client", "is_root_page", "is_main_document", "type"]
},
tags: ["crawl_results_all"]
}).preOps(ctx => `
DROP TABLE ${ctx.self()};
DROP TABLE IF EXISTS ${ctx.self()};
`).query(ctx => `
SELECT *
FROM ${ctx.ref("all", "requests")}
Expand Down

0 comments on commit e9e09ce

Please sign in to comment.