<#2789 [Core feature] Support for nested schema fo...
# flytekit
c
#2789 [Core feature] Support for nested schema for spark DataFrames Issue created by nadasaiyed ### Motivation: Why do you think this is important? Flyte does not support nested
StructuredDatasets
for example:
Copy code
schema = StructType([
        StructField('name', StructType([
            StructField('firstname', StringType(), True),
            StructField('middlename', StringType(), True),
            StructField('lastname', StringType(), True)
            ])),
        StructField('state', StringType(), True),
        StructField('gender', StringType(), True)
        ])
This allows for enforcing nested schema during compile time for a
StructuredDataset
Some datasets are naturally nested and it would be good if flyte could support that. Right now the current workaround is to not enforce schema type or flatten the dataset. But native support from Flyte would be the ideal path forward. ### Goal: What should the final outcome look like, ideally? Flyte supports nested
StructuredDataset
### Describe alternatives you've considered not enforcing compile time checking and returning the Dataframe as is without
StructuredDataset
wrapper. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte