@malloydata/malloy 0.0.163-dev240807210504 → 0.0.163-dev240808193357
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.
|
@@ -143,7 +143,10 @@ class NamedSource extends source_1.Source {
|
|
|
143
143
|
}
|
|
144
144
|
for (const paramName in parametersIn) {
|
|
145
145
|
if (!(paramName in outArguments)) {
|
|
146
|
-
if (
|
|
146
|
+
if ((0, malloy_types_1.paramHasValue)(parametersIn[paramName])) {
|
|
147
|
+
outArguments[paramName] = { ...parametersIn[paramName] };
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
147
150
|
this.refLog(`Argument not provided for required parameter \`${paramName}\``);
|
|
148
151
|
}
|
|
149
152
|
}
|
|
@@ -2955,7 +2955,7 @@ class QueryStruct extends QueryNode {
|
|
|
2955
2955
|
};
|
|
2956
2956
|
}
|
|
2957
2957
|
arguments() {
|
|
2958
|
-
var _a
|
|
2958
|
+
var _a;
|
|
2959
2959
|
if (this._arguments !== undefined) {
|
|
2960
2960
|
return this._arguments;
|
|
2961
2961
|
}
|
|
@@ -2966,7 +2966,7 @@ class QueryStruct extends QueryNode {
|
|
|
2966
2966
|
this._arguments[parameterName] = params[parameterName];
|
|
2967
2967
|
}
|
|
2968
2968
|
// Then, copy over arguments to override default values
|
|
2969
|
-
const args =
|
|
2969
|
+
const args = { ...this.fieldDef.arguments, ...this.sourceArguments };
|
|
2970
2970
|
for (const parameterName in args) {
|
|
2971
2971
|
const orig = args[parameterName];
|
|
2972
2972
|
this._arguments[parameterName] =
|