Hi There,
I am setting one Parameter like this
param_lbl= Parameter('param text', default='ABC')
I would like to force this Parameter to uppercase without needing to go into all my tasks to add a .upper()
.
Any piece of advice ?
Thanks in advance.
Regards,
No, there is no mechanism for that.
I would create a separate task that makes it uppercase before passing the value to downstream tasks:
...
@task
def make_uppercase(param: str):
return param.upper()
with Flow() as flow:
param_lbl= Parameter('param text', default='ABC')
param_lbl = make_uppercase(param_lbl)