I try to declare a current_date()
variable in the global code.
After this I try to reference this column with SQL:
where column = aktueller_tag
I try to declare a current_date()
variable in the global code.
After this I try to reference this column with SQL:
where column = aktueller_tag
Copyright © 2021 Jogjafile Inc.
Guten tag mi_mlr, I see that you are a new contributor. Can you please frame the question as a minimum verifiable working example? I'll do my best to answer given the information you provided:
Once you get the global variable using the
current_date()
, you can reference this within any node/dataset in Code Workbooks.This is what is in my global code:
Then from the console or a dataset node, I can run:
Since this is a column, I can add a new column to an existing dataset.
Here is an end to end example with the notional flight data in Foundry:
This is an example in the console:
Now if you wanted to write the filter, an easy way would be:
Where departure_date is the column you wanted to filter on. I hope this helps!