apache spark - what is the difference between 'abs' function in R and sparkR -


in sparkr api there functions same name in r. of examples abs,cosine functions.

what difference between abs function in r , in sparkr. when abs function executed in spark?

documentation sparkr abs function http://spark.apache.org/docs/latest/api/r/abs.html

the difference function lives.

in base r, abs primitive:

function(x) .primitive("abs") 

in spark, abs wrapper around call spark engine:

setmethod("abs",           signature(x = "column"),           function(x) {             jc <- calljstatic("org.apache.spark.sql.functions", "abs", x@jc)             column(jc)           }) 

you can see r source code sparkr package here.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

How can do a tuple comparison in coffeescript similar to that in python? -

math - "ELO Rating" and how does "TSR Rating" work? -