[BUG] Bug handling Optional type hints under conditionals. #5353
Labels
backlogged
For internal use. Reserved for contributor team workflow.
bug
Something isn't working
conditionals
Used to group issues related to the use of Conditionals in workflows
flytekit
FlyteKit Python related issue
Describe the bug
The type engine cannot parse
Optional
types when dealing with conditionals using variables coming from dynamic workflows.The
scalar.primitive.string_value
in the example is embedded in ascalar.union.value
and cannot be found.Expected behavior
The type engine can handle the
Optional
type under most circumstances, but it should not throw an error in the following example with a dynamic workflow and conditional.Additional context to reproduce
pyflyte --verbose run workflows/optional_wf_2.py optional_wf
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: