Github user AlbertPlaPlanas commented on the issue:
https://github.com/apache/spark/pull/16486
Was this ever implemented?
---
-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands,
Github user AmplabJenkins commented on the issue:
https://github.com/apache/spark/pull/16486
Can one of the admins verify this patch?
---
-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional
Github user leonfl commented on the issue:
https://github.com/apache/spark/pull/16486
@mrjrdnthms ,Yes, your understand is correct, in scala it like this:
```
val rows: RDD[Row] = df.rdd.map(
rowIn => {
// handle the rowIn and return a Row
Github user mrjrdnthms commented on the issue:
https://github.com/apache/spark/pull/16486
@leonfl The python udf is too slow for my task. By "mappatition and row
iterator" do you mean doing the transformation on the RDD directly instead of
the dataframe? Sorry for the basic question.
Github user leonfl commented on the issue:
https://github.com/apache/spark/pull/16486
@mrjrdnthms , this is implemented by UDF, which will run a little bit
slower, but easy to use.
If you want it run faster, you can implement it using mappatition and row
iterator instead of udf.
Github user mrjrdnthms commented on the issue:
https://github.com/apache/spark/pull/16486
I could use this. I have udf to pick out single values I want but my
implementation is slow: here is my python udf:
`probTrue_udf = udf(lambda value: value[1].item(), FloatType())`
I was
Github user leonfl commented on the issue:
https://github.com/apache/spark/pull/16486
@jkbradley, Could you also help to check this patch cause you are familiar
with this defect, Thanks.
---
If your project is set up for it, you can reply to this email and have your
reply appear on
Github user leonfl commented on the issue:
https://github.com/apache/spark/pull/16486
@mengxr, could you help to check this patch? Thanks
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this
Github user leonfl commented on the issue:
https://github.com/apache/spark/pull/16486
It's a method like VectorAssembler, which make user easy to handle single
fields and vector field.
Pull out a single field is easy, but for all single fields in a vector, it
still need some code
Github user srowen commented on the issue:
https://github.com/apache/spark/pull/16486
I don't think this is worth adding. It's pretty easy to pull out a single
fiedl from a vector already.
---
If your project is set up for it, you can reply to this email and have your
reply appear
Github user AmplabJenkins commented on the issue:
https://github.com/apache/spark/pull/16486
Can one of the admins verify this patch?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this
11 matches
Mail list logo