https://flyte.org logo
#flytekit
Title
# flytekit
d

Dylan Wilder

10/04/2023, 6:01 PM
are nested fields currently supported in structured datasets?
k

Ketan (kumare3)

10/05/2023, 1:52 AM
What type of fields
d

Dylan Wilder

10/05/2023, 12:32 PM
basically struct columns
or array columns
k

Ketan (kumare3)

10/05/2023, 2:31 PM
It think you can, and in the worst case do not. Declare it
d

Dylan Wilder

10/05/2023, 2:31 PM
sorry can you elaborate 🙂
k

Ketan (kumare3)

10/05/2023, 2:32 PM
Don’t have typed columns
d

Dylan Wilder

10/05/2023, 2:32 PM
tried the following
Copy code
@dataclass_json
@dataclass
class LevelCodes:
    level1: str
    level2: str

AllocatedPNLOutputSchema = Annotated[
    StructuredDataset,
    kwtypes(
        date=dt.datetime,
        fsli=LevelCodes,
        ...
y

Yee

10/08/2023, 12:15 AM
no currently just lists and dicts are supported, but i don’t think this is a hard thing to do.
can you put in an issue for it?
d

Dylan Wilder

10/16/2023, 12:06 PM
sure can!
2 Views