Tags: udf*

0 bookmark(s) - Sort by: Date ↓ / Title /

  1. 2021-03-18 Tags: , , , by klotz
  2. 2019-04-25 Tags: , , by klotz
  3. import org.apache.spark.sql.functions.{udf, explode}

    val zip = udf((xs: Seq Long » , ys: Seq Long » ) => xs.zip(ys))

    df.withColumn("vars", explode(zip_udf($"varA", $"varB"))).select(
    $"userId", $"someString",
    $"vars._1".alias("varA"), $"vars._2".alias("varB")).show
    2017-03-09 Tags: , , , by klotz
  4. 2014-07-23 Tags: , , , by klotz
  5. 2014-03-26 Tags: , , , , by klotz
  6. 2014-03-26 Tags: , , , , by klotz
  7. 2014-02-07 Tags: , , , by klotz
  8. 2013-11-13 Tags: , , by klotz
  9. 2013-10-15 Tags: , , , by klotz
  10. 2013-10-15 Tags: , , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: tagged with "udf"

About - Propulsed by SemanticScuttle