@dataform/core 3.0.10 → 3.0.11

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.
package/configs.proto CHANGED
@@ -269,6 +269,18 @@ message ActionConfig {
269
269
  TableAssertionsConfig assertions = 17;
270
270
  }
271
271
 
272
+ enum OnSchemaChange {
273
+ // Ignore any schema changes (default).
274
+ IGNORE = 0;
275
+ // Fails if the query would result in a new column(s) being added, deleted,
276
+ // or renamed.
277
+ FAIL = 1;
278
+ // Does not block any new column(s) from being added.
279
+ EXTEND = 2;
280
+ // Does not block any new column(s) from being added, deleted or renamed.
281
+ SYNCHRONIZE = 3;
282
+ }
283
+
272
284
  message IncrementalTableConfig {
273
285
  // The name of the incremental table.
274
286
  string name = 1;
@@ -360,6 +372,10 @@ message ActionConfig {
360
372
  // the action depends on data from a source which has not been declared as
361
373
  // a dependency.
362
374
  bool hermetic = 23;
375
+
376
+ // Defines the action behavior if the selected columns in the query
377
+ // don't the match columns in the target table.
378
+ OnSchemaChange on_schema_change = 24;
363
379
  }
364
380
 
365
381
  message AssertionConfig {
package/core.proto CHANGED
@@ -126,6 +126,18 @@ enum TableType {
126
126
  reserved 4;
127
127
  }
128
128
 
129
+ enum OnSchemaChange {
130
+ // Ignore any schema changes (default).
131
+ IGNORE = 0;
132
+ // Fails if the query would result in a new column(s) being added, deleted,
133
+ // or renamed.
134
+ FAIL = 1;
135
+ // Does not block any new column(s) from being added.
136
+ EXTEND = 2;
137
+ // Does not block any new column(s) from being added, deleted or renamed.
138
+ SYNCHRONIZE = 3;
139
+ }
140
+
129
141
  message Table {
130
142
  // For legacy compatability reasons, both incremental tables and views are
131
143
  // configured in compiled graphs via the Table proto.
@@ -152,6 +164,7 @@ message Table {
152
164
  string where = 8 [deprecated = true];
153
165
  string incremental_query = 26;
154
166
  repeated string unique_key = 30;
167
+ OnSchemaChange on_schema_change = 37;
155
168
 
156
169
  // Pre/post operations.
157
170
  repeated string pre_ops = 13;
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "version": "3.0.10",
35
+ "version": "3.0.11",
36
36
  "name": "@dataform/core",
37
37
  "description": "Dataform core API.",
38
38
  "main": "bundle.js"