Sean--
post: rha...@googlegroups.com ||
unsubscribe: rhadoop+u...@googlegroups.com ||
web: https://groups.google.com/d/forum/rhadoop?hl=en-US
---
You received this message because you are subscribed to the Google Groups "RHadoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhadoop+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Jul 27, 2013 12:28 PM, "Sean Willson" <sean.w...@gmail.com> wrote:
>
> For some reason I thought strptime returned a string and not a POSIXlt object, that's weird. I don't see how to get it to just a string and not that POSIX object (which i'm sure is more expensive to serialize) from mapper to reducer. Ideas?
>
Yes, character will use some faster serialization that's not R's built in.
> As you said though if R's it can handle any structure when why does it fail if you add it as a column to an existing data frame. If you take the same example, passing a data frame in place of value, and then change the code to be the following:
>
> value$day = strptime(as.POSIXlt(value$epochTime, origin="1970-01-01"), format = "%Y-%m-%d")
>
> It blows up again which seems counter to what you said because the argument is a data.frame that is being passed around, the mapper just adds a column.
It may be that I've never tested it with more than atomic columns. I will look into it.
Antonio
Dannell