[BUG] Cannot return StructuredDataset which is a field in a dataclass #6117
Labels
backlogged
For internal use. Reserved for contributor team workflow.
bug
Something isn't working
flytekit
FlyteKit Python related issue
Describe the bug
The following code fails in the
extract
task withAttributeError: 'StructuredDataset' object has no attribute 'to_flyte_idl'
.It is possible to work around the issue by returning
StructuredDataset(dataframe=d.f.open(pd.DataFrame).all())
instead.Expected behavior
The field value should be returned by the task.
Additional context to reproduce
No response
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: