<#3406 Add file_extension fields to BlobType> Pull...
# flyte-github
a
#3406 Add file_extension fields to BlobType Pull request opened by ddl-rliu See flyteorg/flyte#7009 Tracking issue Closes flyteorg/flyte#7024 Why are the changes needed? What changes were proposed in this pull request? Add the file_extension field to BlobType. Add annotation "FileExtension", which is used to annotate a FlyteFile when we want to download the file with a specific extension. For example, # ContainerTask def t1(file: Annotated[FlyteFile, FileExtension("csv")]): ... # copilot downloads the file to e.g. /inputs/file.csv versus... def t1(file: FlyteFile["csv"]): ... # copilot downloads the file to e.g. /inputs/file Under the hood, this sets
file_extension
in BlobType, and depends on flyteorg/flyte#7009 How was this patch tested? Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Docs link flyteorg/flytekit