daft.set_planning_config(config: Optional[PyDaftPlanningConfig] = None, default_io_config: Optional[IOConfig] = None) DaftContext[source]#

Globally sets various configuration parameters which control Daft plan construction behavior. These configuration values are used when a Dataframe is being constructed (e.g. calls to create a Dataframe, or to build on an existing Dataframe)

  • config – A PyDaftPlanningConfig object to set the config to, before applying other kwargs. Defaults to None which indicates that the old (current) config should be used.

  • default_io_config – A default IOConfig to use in the absence of one being explicitly passed into any Expression (e.g. url.download()) or Dataframe operation (e.g. daft.read_parquet()).