Skip to content

Conversation

@bfabry
Copy link
Contributor

@bfabry bfabry commented Jul 13, 2015

In memory platform was blowing up for an op that returned a single nil value, due to (jackknife.seq/collectify nil) => []

@sritchie
Copy link
Collaborator

Works for me. Can we also test that no tuples are returned if you use ? logic vars?

@bfabry
Copy link
Contributor Author

bfabry commented Jul 13, 2015

Yup, I've added that test and it failed, and I've come up with my version of a fix. It's a bit gross though so let me know if there's a "more correct" way to do it. Now if I can just figure out how to get gh to add the amended commit...

@bfabry
Copy link
Contributor Author

bfabry commented Jul 13, 2015

Oh, it did it automatically

@sritchie
Copy link
Collaborator

Yeah, I don't really like that - the nil filtering should just happen as a matter of course, since the presence of ? variables should insert a nil filter. Wonder why that's not happening.

@bfabry
Copy link
Contributor Author

bfabry commented Jul 13, 2015

Oh cool, I assumed it would have. wonder why it's not firing...

@bfabry
Copy link
Contributor Author

bfabry commented Aug 21, 2015

@sritchie could you give me a pointer as to where/how the nil filtering should happen? I've been walking through this code today and am struggling.

@sritchie
Copy link
Collaborator

@bfabry hey, sorry, was out of town helping out at a running race.

This is the piece of code that does the filtering: https://github.com/nathanmarz/cascalog/blob/develop/cascalog-core/src/clj/cascalog/cascading/operations.clj#L732

you can see in this search where that gets called:

If you search platform.clj for (assem you'll get all the hits.

Let me know if that helps!

@bfabry
Copy link
Contributor Author

bfabry commented Sep 18, 2015

@sritchie those are both part of the cascading platform, but the bug is with the in-memory platform?

@sritchie
Copy link
Collaborator

@bfabry yeah, you're right - that code snippet doesn't really mesh with my comment. I had forgotten that that code was at the Cascading level, then lost context when pasting the link. I think if we can modify this pull request to act like that Cascading code, then we can apply it to map, mapcat and filter, which should fix the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants