Skip to content

bug: Disable DataFrame.cache() for ballista #1395

@milenkovicm

Description

@milenkovicm

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Ballista at the moment does not support cache functionality, df.cache() does not produce expected behaviour, so until we come up with the caching strategy for ballista I would suggest disabling the functionality

Describe the solution you'd like

DataFusion 52 comes with method to override cache factory SessionState::with_cache_factory we should use it to override cache behaviour when SessionContext is created, and return error if df.cache is called.

EDIT: maybe we could introduce logical plan extension which represents distributed cache, and then users can plug-in their behaviour on scheduler side.

Describe alternatives you've considered

Alternative would be to implement cache behaviour, which should be done, but as it is non trivial task, having dependencies on few other things we would have incorrect behaviour.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions