@dataform/core 2.4.0 → 2.4.2
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/bundle.js +5 -1
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -19152,7 +19152,7 @@ class RefReplacingContext {
|
|
|
19152
19152
|
}
|
|
19153
19153
|
}
|
|
19154
19154
|
|
|
19155
|
-
const version = "2.4.
|
|
19155
|
+
const version = "2.4.2";
|
|
19156
19156
|
|
|
19157
19157
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
19158
19158
|
const DEFAULT_CONFIG = {
|
|
@@ -19361,6 +19361,10 @@ class Session {
|
|
|
19361
19361
|
if (this.config.warehouse === "bigquery" && !this.config.defaultLocation) {
|
|
19362
19362
|
this.compileError("A defaultLocation is required for BigQuery. This can be configured in dataform.json.", "dataform.json");
|
|
19363
19363
|
}
|
|
19364
|
+
if (!!this.config.vars &&
|
|
19365
|
+
!Object.values(this.config.vars).every((value) => typeof value === 'string')) {
|
|
19366
|
+
throw new Error("Custom variables defined in dataform.json can only be strings.");
|
|
19367
|
+
}
|
|
19364
19368
|
const compiledGraph = dataform.CompiledGraph.create({
|
|
19365
19369
|
projectConfig: this.config,
|
|
19366
19370
|
tables: this.compileGraphChunk(this.actions.filter(action => action instanceof Table), dataform.Table.verify),
|