Closed brian-goldman closed 13 years ago
This definitely appears to be a bug. Somewhere in eager_graph, it's not completely copying the previous datastructure before modifying it.
Looks like there were problems both in the model eager graph code and the dataset graph code with it not duping the existing datastructures before modifying them. I've fixed both, and I'm running the fixes through the test suites now. Assuming no problems, they should be pushed to github within an hour.
It's my understanding (please correct me if I'm wrong) that a Dataset instance is supposed to be immutable in terms of what underlying dataset it represents, and that you make changes to them by chaining methods to create new instances.
Here's a script I created that seems to violate that assumption.
When I run this with Ruby 1.9.2 and Sequel 3.27.0, I get this output: