-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache key collision for simple functions in the same module #1242
Comments
Will investigate today! The issue is more likely related to the handling of |
Investigation
SolutionChange the check for the base case in side notes
|
We don't trigger anything. But judging by timestamps it seems like it might take 48 hours for it to show up there. I assume you're referring to https://anaconda.org/conda-forge/sf-hamilton/files ? |
Current behavior
It appears that when activating caching for two functions with the same signature, in the same file, when those functions are similar enough, they are mapped onto the same cache key. This can be seen in the cache directory, where only one cache file is created, and on the rerun of the DAG where both nodes receive the same cached value.
Stack Traces
There is no crash.
Steps to replicate behavior
Create and run a jupyter notebook with the following cells. (the issue is also present in actual modules, outside jupyter)
As one can see, one the rerun the
second
timestamp gets the cache value of thefirst
variable, as if function name was not part of the cache key.Library & System Information
python=3.11.8, sf-hamilton=1.83.2
Expected behavior
I would expect the result
The text was updated successfully, but these errors were encountered: