Skip to content

Commit

Permalink
Remove @dataform/sql package and common_v1 example (#1415)
Browse files Browse the repository at this point in the history
* Remove @dataform/sql package and common_v1 example

* Remove SQL package from common_v2 example

* Remove build imports from tests of @dataform/sql that weren't doing anything

* Inline timestamp definition in non BQ tests

* Fix timestamp function case
  • Loading branch information
Ekrekr authored Jan 4, 2023
1 parent c8093d8 commit 2348d34
Show file tree
Hide file tree
Showing 44 changed files with 3 additions and 1,866 deletions.
18 changes: 0 additions & 18 deletions examples/common_v1/BUILD

This file was deleted.

5 changes: 0 additions & 5 deletions examples/common_v1/dataform.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/common_v1/definitions/example_backticks.sql

This file was deleted.

1 change: 0 additions & 1 deletion examples/common_v1/definitions/example_deferred.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/common_v1/definitions/example_incremental.sql

This file was deleted.

2 changes: 0 additions & 2 deletions examples/common_v1/definitions/example_inline.sql

This file was deleted.

5 changes: 0 additions & 5 deletions examples/common_v1/definitions/example_js_blocks.sql

This file was deleted.

2 changes: 0 additions & 2 deletions examples/common_v1/definitions/example_table.sql

This file was deleted.

3 changes: 0 additions & 3 deletions examples/common_v1/definitions/example_table_dependency.sql

This file was deleted.

3 changes: 0 additions & 3 deletions examples/common_v1/definitions/example_using_inline.sql

This file was deleted.

2 changes: 0 additions & 2 deletions examples/common_v1/definitions/example_view.sql

This file was deleted.

3 changes: 0 additions & 3 deletions examples/common_v1/definitions/sample_data.sql

This file was deleted.

10 changes: 0 additions & 10 deletions examples/common_v1/definitions/test.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/common_v1/includes/macros.js

This file was deleted.

6 changes: 0 additions & 6 deletions examples/common_v1/package.json

This file was deleted.

1 change: 0 additions & 1 deletion examples/common_v2/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ node_modules(
name = "node_modules",
deps = [
"//packages/@dataform/core:package_tar",
"//packages/@dataform/sql:package_tar",
],
)
4 changes: 1 addition & 3 deletions examples/common_v2/definitions/example_incremental.sqlx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
config { type: "incremental", protected: true, hermetic: false }

js { const sql = require("@dataform/sql"); }

select ${sql().timestamps.currentUTC()} as ts
select current_timestamp() as ts

incremental_where {
ts > (select max(ts) from ${self()}) or (select max(ts) from ${self()}) is null
Expand Down
4 changes: 1 addition & 3 deletions examples/common_v2/definitions/example_is_incremental.sqlx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
config { type: "incremental", protected: true, hermetic: false }

js { const sql = require("@dataform/sql"); }

select * from (
select ${sql().timestamps.currentUTC()} as ts
select current_timestamp() as ts
)

${when(incremental(), `where ts > (select max(ts) from ${self()}) or (select max(ts) from ${self()}) is null`)}
Expand Down
1 change: 0 additions & 1 deletion examples/formatter/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ node_modules(
name = "node_modules",
deps = [
"//packages/@dataform/core:package_tar",
"//packages/@dataform/sql:package_tar",
],
)
1 change: 0 additions & 1 deletion examples/never_finishes_compiling/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ node_modules(
name = "node_modules",
deps = [
"//packages/@dataform/core:package_tar",
"//packages/@dataform/sql:package_tar",
],
)
53 changes: 0 additions & 53 deletions packages/@dataform/sql/BUILD

This file was deleted.

20 changes: 0 additions & 20 deletions packages/@dataform/sql/index.ts

This file was deleted.

37 changes: 0 additions & 37 deletions sql/BUILD

This file was deleted.

61 changes: 0 additions & 61 deletions sql/README.md

This file was deleted.

83 changes: 0 additions & 83 deletions sql/builders/aggregate.ts

This file was deleted.

Loading

0 comments on commit 2348d34

Please sign in to comment.