dueDate = 2019-05-01
overdue = if dueDate < now() then true else false
If I want to run the above in flux script in VScode, how do I print the ‘overdue’ variable to the console for debugging purposes?
I just get the error:
Error: error in query specification while starting program: this Flux script returns no streaming data. Consider adding a “yield” or invoking streaming functions directly, without performing an assignment
Hi there,
So essentially Flux is expecting you to define a yield in order to display the input table which is considered the result of your query. Propose we take your example:
In this instance i take my array of values data and then I map a new column based upon the conditional function you defined. Note that now that I have modifed by table its appropriate to yield() that data as my result. Here is the result in vscode.