diff --git a/clouds/bigquery/common/build_modules.js b/clouds/bigquery/common/build_modules.js index ae2620d18..e691541c1 100755 --- a/clouds/bigquery/common/build_modules.js +++ b/clouds/bigquery/common/build_modules.js @@ -99,7 +99,7 @@ functionsFilter.forEach(f => { if (!nodeps) { functions.forEach(mainFunction => { functions.forEach(depFunction => { - if (mainFunction.name != depFunction.name && depFunction.name !== 'SETUP') { + if (mainFunction.name != depFunction.name) { const depFunctionMatches = []; depFunctionMatches.push(...depFunction.content.replace(/(\r\n|\n|\r)/gm,' ').matchAll(new RegExp('(?<=(? mainFunction.content.includes(`DATASET@@.${depFunctionName}`))) { + if (depFunctionNames.some((depFunctionName) => mainFunction.content.includes(`DATASET@@.${depFunctionName}\`(`))) { mainFunction.dependencies.push(depFunction.name); } }