Skip to content

Releases: dataform-co/dataform

2.3.0: Add a `database()` function in SQL templating

31 Jan 09:55
8f18e36
Compare
Choose a tag to compare

Both SQLX and JavaScript now support a database() function, which returns the (prefixed, as applicable) name of "this" action's database. (Contrived) examples:

publish("table", ctx => `select "${ctx.database()}" as col1`);
config { type: "table" }
select "${database()}" as col1

Assuming dataform.config contains "defaultDatabase": "foo", these both generate a table action whose SQL is select "foo" as col1. This is likely most useful in type: "operations" scripts.

Note: For warehouses without databases such as Redshift, this will add an error to the compilationErrors property.

Bugfix: The similar name() function has been fixed to properly attach any prefix as appropriate.

2.2.0: Add `schema()` function in SQL templating

26 Jan 16:09
2465730
Compare
Choose a tag to compare

Both SQLX and JavaScript now support a schema() function, which returns the (suffixed, as applicable) name of "this" action's schema. (Contrived) examples:

publish("table", (ctx) => `select "${ctx.schema()}" as col1`);
config { type: "table" }
select "${schema()}" as col1

Assuming dataform.config contains "defaultSchema": "foo", these both generate a table action whose SQL is select "foo" as col1. This is likely most useful in type: "operations" scripts.

2.1.0: Table auto-assertions now share the same tags as their parent table

06 Dec 14:06
3f4f510
Compare
Choose a tag to compare
Make table level assertions have the same tags as the table (#1406)

* Make table level assertions have the same tags as the table

* add tag propagation post assertion adding

* Update version to 2.1.0

2.0.4: Default to `main` compilation.

24 Nov 10:41
3feffbe
Compare
Choose a tag to compare

This release introduces no new features, but it does change the default compilation mode to something we call main compilation: a cleaner and more maintainable compilation script.

2.0.3: Include `core.proto` in published packages.

11 Oct 09:46
3b5195a
Compare
Choose a tag to compare
Publish core.proto within the @dataform/core package (#1378)

* Publish core.proto within the @dataform/core package

* Bump version

2.0.2: Sandbox security upgrades.

09 Sep 10:45
9927780
Compare
Choose a tag to compare
Upgrade vm2. (#1372)

* Upgrade vm2.

* bump version

1.22.2: Sandbox security upgrades.

09 Sep 11:09
da8f6fb
Compare
Choose a tag to compare
Upgrade vm2. (#1373)

* Upgrade vm2.

* bump version

2.0.1: Better handling of duplicate action names

26 Aug 12:04
fb26719
Compare
Choose a tag to compare
Update @dataform/core to never return a graph with non-unique action …

2.0.0: Dataform on GCP

22 Aug 16:13
e42c57b
Compare
Choose a tag to compare

Breaking changes:

  • defaultLocation is required in dataform.json

Version 2.0.0 will be required for Dataform running on GCP.

1.22.1: Dataform GCP alpha support

12 Jul 13:54
ff0df0b
Compare
Choose a tag to compare

Introduces a defaultLocation field for setting default schema, job locations for Dataform on GCP.