Re:Introducing DataFrames in Spark for Large Scale Data Science
by century19 on Tuesday February 17, 2015 @03:27PM
(#9064742)
Are DataFrames RDDs with a new DSL?
[ Parent
| on HN ]
Re:Introducing DataFrames in Spark for Large Scale Data Science
by rxin on Tuesday February 17, 2015 @03:47PM
(#9064840)
In a way yes. It is a little bit more than that because DataFrames internally are actually "logical plans". Before execution, they are optimized by an optimizer called Catalyst and turn into physical plans.
Re:Introducing DataFrames in Spark for Large Scale Data Science
by century19 on Tuesday February 17, 2015 @03:57PM
(#9064912)
Normal RDDs won't benefit from this optimisation, only DataFrames? Is that because using this new DSL allows Spark to more precisely plan what needs to happen for DataFrames?
I guess this means DataFrames should be used all the time in the future, or will there still be a reason to use plain RDDs in the future?
You guys are doing great work !
Re:Introducing DataFrames in Spark for Large Scale Data Science
by rxin on Tuesday February 17, 2015 @04:02PM
(#9064950)
Indeed, DataFrames give Spark more semantic information about the data transformations, and thus can be better optimized. We envision this to become the primary API users use. You can still fall back to the vanilla RDD API (afterall DataFrame can be viewed as RDD[Row]) for stuff that is not expressible with DataFrames.
Re:Introducing DataFrames in Spark for Large Scale Data Science
by rkrzr on Tuesday February 17, 2015 @07:01PM
(#9066089)
Could you give an example of something that could not be expressed with DataFrames?
Would e.g. tree-structured data be a bad fit for DataFrames, since it doesn't fit well with the tabular nature?