-
-
Notifications
You must be signed in to change notification settings - Fork 4
bug: Error compiling Dataform if explicit variable assignment is used when calling javascript function #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @MaximumV , thanks for raising the issue. Can you please let me know what this edit: you can also use this repository to reproduce the error. Make sure you sue the dataform_v2 branch, which is what you are using. |
Hi @ashish10alex, and thank you for the prompt reply! Here the example, I hope you will be able to help, I commented the js function and compile mistake vanished:
P.S. You are doing great extension! Thank you for youtube video, liked |
Hi @MaximumV , thanks for providing the example, that was helpful to isolate the error. From my testing, It seems like the issue is with the Dataform cli than the extension as config {
type: 'view'
}
js {
function someOperation(var1){
return `"${var1}"`
}
}
select
${someOperation('hello')} as some_column -- works
--${someOperation(var1='hello') } as some_column -- does not work |
Describe the bug
I run dataform compile --timeout 60000
or just click "show vertical split" in vscode interface
Expected behavior
Compilation window reference other models in list, not current one
Checked affiliate_id field, which shows like mistake in all models - it's ok and is compiled/run in web dataform
Screenshots
Environment:
The text was updated successfully, but these errors were encountered: