You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Remove optional base from reduce and gmr #888
Default is now implemented. There is at least one outstanding bug (#945) related to this. I say we just do this now. Full removal. At the very least excise it from the documentation before 1.6 is released. @mlucy?
We're really close to the 1.6 release, and I like the idea of being strict about when we discuss RQL issues. I don't think we should re-open this until the planning phase for 1.7. (I wouldn't be opposed to changing the docs to mention default instead of the base, though.)
I have a bit of a preference for not entirely removing the base on gmr. We could make it undocumented. The main reason being that if someone is using it for something it'll really suck to have them show up in IRC and ask where it's gone to and unlike with reduce we can't just tell them to use default it's actually hard to get the same meaning without a base. Admittedly this might be overly paranoid but I don't see a huge cost in leaving it around undocumented and maybe it makes someone happy.
The cost to leaving it around undocumented is that it bitrots and makes the code more complicated.
I think it's fairly unlikely that many (read: any) people are heavily attached to using a non-identity base with gmr in the wild; I would be happy just zapping it. (That said, there's also something to be said for undocumenting and deprecating a feature for a few releases before dropping it entirely.)
The cost to leaving it around undocumented is that it bitrots and makes
the code more complicated.
I think it's fairly unlikely that many (read: any) people are heavily
attached to using a non-identity base with gmr in the wild; I would be
happy just zapping it. (That said, there's also something to be said for
undocumenting and deprecating a feature for a few releases before dropping
it entirely.)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/888#issuecomment-19245790
.
I'm of the opinion that we shouldn't overly restrict ourselves to offer a backwards compatibility API until we explicitly decide we're ready to do that. If we worry too much about backwards compatibility now, we'll be stuck with a whole bunch of issues that we could easily avoid. Our community has been very understanding of this, and I think we should try and take advantage of it whenever possible.
For GMR, very few people are using it now (arguably because it's been poorly documented), and the people that are are experts. I don't think dropping the base will phase them, so I think we should drop it completely.
(I also don't like the idea of leaving things undocumented -- it smells too much of "we can't decide so let's try and have our cake and eat it too")
I didn't schedule this because I decided to wait until we redo GMR/groupBy. Given how much work we have on our plates, I think it's ok to wait here. Would that be cool?
We're making ReQL changes before production readiness now?
There is a combination of reasons that makes this a good idea for 1.12, but they're mostly internal. We should talk about it in person (or shoot me an e-mail, since I won't be back until Tue).
Please only remove this from the user facing API. Maybe make it an internal flag like we have with things in the past. We need this to cleanly implement things like sum and is_empty in terms of map/reduce. Having bases will make things like sum a very simple 3 line rewrite rule that works everywhere and distributes to shards but without bases we'll have to write much more complicated code that spans several layers of the clustering stack.
For those interested in an example sum will be implemented as:
Activity
wmrowan commentedon Jun 6, 2013
Default is now implemented. There is at least one outstanding bug (#945) related to this. I say we just do this now. Full removal. At the very least excise it from the documentation before 1.6 is released. @mlucy?
mlucy commentedon Jun 6, 2013
We're really close to the 1.6 release, and I like the idea of being strict about when we discuss RQL issues. I don't think we should re-open this until the planning phase for 1.7. (I wouldn't be opposed to changing the docs to mention
defaultinstead of the base, though.)wmrowan commentedon Jun 11, 2013
1.7 is open. Let's remove this thing. Any objections?
mlucy commentedon Jun 11, 2013
Nope.
jdoliner commentedon Jun 11, 2013
I have a bit of a preference for not entirely removing the base on gmr. We could make it undocumented. The main reason being that if someone is using it for something it'll really suck to have them show up in IRC and ask where it's gone to and unlike with
reducewe can't just tell them to usedefaultit's actually hard to get the same meaning without a base. Admittedly this might be overly paranoid but I don't see a huge cost in leaving it around undocumented and maybe it makes someone happy.mlucy commentedon Jun 11, 2013
The cost to leaving it around undocumented is that it bitrots and makes the code more complicated.
I think it's fairly unlikely that many (read: any) people are heavily attached to using a non-identity base with
gmrin the wild; I would be happy just zapping it. (That said, there's also something to be said for undocumenting and deprecating a feature for a few releases before dropping it entirely.)Any thoughts, @coffeemug ?
jdoliner commentedon Jun 11, 2013
Yeah how about for just one release? People will probably let us know if
they're missing it by then.
On Mon, Jun 10, 2013 at 11:56 PM, Michael Lucy [email protected]:
mlucy commentedon Jun 11, 2013
I'm not necessarily opposed to that, but how will people know to complain if their programs just keep working after they upgrade?
coffeemug commentedon Jun 11, 2013
I'm of the opinion that we shouldn't overly restrict ourselves to offer a backwards compatibility API until we explicitly decide we're ready to do that. If we worry too much about backwards compatibility now, we'll be stuck with a whole bunch of issues that we could easily avoid. Our community has been very understanding of this, and I think we should try and take advantage of it whenever possible.
For GMR, very few people are using it now (arguably because it's been poorly documented), and the people that are are experts. I don't think dropping the base will phase them, so I think we should drop it completely.
(I also don't like the idea of leaving things undocumented -- it smells too much of "we can't decide so let's try and have our cake and eat it too")
coffeemug commentedon Jun 11, 2013
For those reading over e-mail, "should" above was meant to be "shouldn't", which changes the meaning of the whole sentence :)
mlucy commentedon Jun 11, 2013
Having slept on it, I'm in agreement with @coffeemug and @wmrowan; we should rip it out and call it good.
mlucy commentedon Jun 21, 2013
Alright, this is settled: we're ripping it out.
mlucy commentedon Jun 21, 2013
Note that the docs should be updated to recommend using
defaultto handle the empty-streams case, and a corresponding test should be added.3 remaining items
mlucy commentedon Sep 4, 2013
Apparently this never happened (I realized this because Marc ran into it again today). We should really do something about this.
coffeemug commentedon Sep 4, 2013
I didn't schedule this because I decided to wait until we redo GMR/groupBy. Given how much work we have on our plates, I think it's ok to wait here. Would that be cool?
mlucy commentedon Nov 27, 2013
Moving this into 1.12. I think we should do this along with the
.group.map.reducechanges currently in the pipeline for 1.12.srh commentedon Nov 27, 2013
I'm confused. We're making ReQL changes before production readiness now?
coffeemug commentedon Nov 27, 2013
There is a combination of reasons that makes this a good idea for 1.12, but they're mostly internal. We should talk about it in person (or shoot me an e-mail, since I won't be back until Tue).
coffeemug commentedon Dec 2, 2013
This opens up an interesting question. Are we dropping the current GMR functionality? I think we should (while we still can).
mlucy commentedon Dec 2, 2013
Yeah, gmr should go away once we have group/map/reduce.
AtnNn commentedon Dec 2, 2013
@mlucy Only if the g.m.r implementation allows converting from grouped_datums to a datum.
jdoliner commentedon Dec 3, 2013
Please only remove this from the user facing API. Maybe make it an internal flag like we have with things in the past. We need this to cleanly implement things like
sumandis_emptyin terms of map/reduce. Having bases will make things likesuma very simple 3 line rewrite rule that works everywhere and distributes to shards but without bases we'll have to write much more complicated code that spans several layers of the clustering stack.For those interested in an example
sumwill be implemented as:mlucy commentedon Dec 5, 2013
So, I don't think there's any server work for this if we're leaving the base in for e.g.
sum.@Tryneus -- would you be willing to take this since it's basically just driver+doc work?
Tryneus commentedon Dec 5, 2013
@mlucy, sure, taking this
Tryneus commentedon Jan 8, 2014
This is implemented and up in review 1111.
Tryneus commentedon Jan 8, 2014
This has been approved and merged into next in commits 0d2c06b, 94a72d6, and 46c640b. Will be in release 1.12.