Skip to content

Releases: dataform-co/dataform

2.6.0: Improve `dataform format` CLI command

09 Jun 08:54
e75c442
Compare
Choose a tag to compare

The dataform format command is now dramatically improved and has better formatter output for each SQL dialect that Dataform supports. Thanks @pokutuna for the contribution!

2.5.0: Enable use of `schema()` and `database()` context functions in SQLX code

05 Jun 15:56
69cad94
Compare
Choose a tag to compare
Release `2.5.0`: to allow use of methods added to SQLX in https://git…

2.4.2: Throw clearer compilation errors when non-string `vars` are provided

17 Feb 09:56
a4f6916
Compare
Choose a tag to compare

2.4.1: Add a CLI flag to disable analytics tracking

16 Feb 13:44
1ac02f5
Compare
Choose a tag to compare

Users of the CLI (who are otherwise opted-in to analytics tracking) may now pass --track=false on an individual CLI command basis to disable analytics tracking.

2.4.0: Fix docker image to run `dataform help` as default command

16 Feb 13:43
d5dfab1
Compare
Choose a tag to compare
Added enum for table's type field (#1453)

* added enum for table's type field

Signed-off-by: Nick Nalivaika <ikolina@google.com>

* update version

Signed-off-by: Nick Nalivaika <ikolina@google.com>

* simplify code by filling enumType field for tables when loading compiled graphs

* small fix for biquery adapter

* make linter happy

* fix integration tests

* do not call setOrValidateTableEnumType when check for table validity, just check enumType value

---------

Signed-off-by: Nick Nalivaika <ikolina@google.com>

2.3.2: Fix various CLI options

14 Feb 14:04
307ea87
Compare
Choose a tag to compare
  • CLI errors regarding missing credentials files should now be rarer, and contain more explanatory detail when they are thrown
  • --include-dependents (for dataform run) now properly includes dependents of selection actions

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.