Skip to content

[BUG] [copilot] File extensions are missing when copilot downloads Blob/FlyteFile inputs #7024

@ddl-rliu

Description

@ddl-rliu

Flyte & Flytekit version

Flyte 1.16

Describe the bug

Copilot today has the following behavior:

# ContainerTask, as an example
def t1(file: FlyteFile["csv"]):
    ... # copilot downloads the file to e.g. /inputs/file

Sometimes, this is unintuitive (perhaps a bug? or an enhancement request? not clear...) and it may be expected that the file is downloaded to /inputs/file.csv instead.

Expected behavior

The file is downloaded to /inputs/file.csv instead. However, the "bugfix" must be done carefully, as it is likely that existing workflows are already expecting the file to be downloaded to /inputs/file.

Additional context to reproduce

No response

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguntriagedThis issues has not yet been looked at by the Maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions