Improve inconsistency of Dataset.map
interface for load_from_cache_file
#5514
Labels
enhancement
New feature or request
Feature request
load_from_cache_file
default value toTrue
.is_caching_enabled
logic.Motivation
I stumbled over an inconsistency in the
Dataset.map
interface. The documentation (and source) states for the parameterload_from_cache_file
:load_from_cache_file
default value isNone
, while being annotated asbool
filter
, that have the default valueTrue
map
method checks if caching is enabled throughis_caching_enabled
. This logic is not used for other similar methods.Your contribution
I am not fully aware of the logic behind caching checks. If this is just a inconsistency that historically grew, I would suggest to remove the
is_caching_enabled
logic as the "default" logic. Maybe someone can give insights, if environment variables have a higher priority than local variables or vice versa.If this is clarified, I could adjust the source according to the "Feature request" section of this issue.
The text was updated successfully, but these errors were encountered: