@sqlanvil/cli 1.26.1 → 1.26.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 +10 -1
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -50646,7 +50646,7 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
|
|
|
50646
50646
|
.filter(validationQuery => !!validationQuery.query);
|
|
50647
50647
|
}
|
|
50648
50648
|
|
|
50649
|
-
const version = "1.26.
|
|
50649
|
+
const version = "1.26.2";
|
|
50650
50650
|
const dataformVersion = "3.0.61";
|
|
50651
50651
|
|
|
50652
50652
|
async function build(compiledGraph, runConfig, dbadapter) {
|
|
@@ -51518,13 +51518,22 @@ function resolveConnection(projectDir, connectionName) {
|
|
|
51518
51518
|
if (!definition) {
|
|
51519
51519
|
throw new Error(`Unknown connection "${connectionName}". Define it under \`connections:\` in workflow_settings.yaml.`);
|
|
51520
51520
|
}
|
|
51521
|
+
const bigqueryAdcFallback = (definition.platform || "").toLowerCase() === "bigquery"
|
|
51522
|
+
? { name: connectionName, definition, credentials: {} }
|
|
51523
|
+
: undefined;
|
|
51521
51524
|
const credsPath = path__namespace.join(path__namespace.resolve(projectDir), ".df-credentials.json");
|
|
51522
51525
|
if (!fs__namespace.existsSync(credsPath)) {
|
|
51526
|
+
if (bigqueryAdcFallback) {
|
|
51527
|
+
return bigqueryAdcFallback;
|
|
51528
|
+
}
|
|
51523
51529
|
throw new Error(`Missing .df-credentials.json in ${projectDir}.`);
|
|
51524
51530
|
}
|
|
51525
51531
|
const allCreds = JSON.parse(fs__namespace.readFileSync(credsPath, "utf8"));
|
|
51526
51532
|
const credentials = allCreds.connections && allCreds.connections[connectionName];
|
|
51527
51533
|
if (!credentials) {
|
|
51534
|
+
if (bigqueryAdcFallback) {
|
|
51535
|
+
return bigqueryAdcFallback;
|
|
51536
|
+
}
|
|
51528
51537
|
throw new Error(`No credentials for connection "${connectionName}" in .df-credentials.json ` +
|
|
51529
51538
|
`(expected a "connections.${connectionName}" entry).`);
|
|
51530
51539
|
}
|