Skip to content
Snippets Groups Projects
  1. Dec 01, 2015
    • Shixiong Zhu's avatar
      [SPARK-12060][CORE] Avoid memory copy in JavaSerializerInstance.serialize · 14011665
      Shixiong Zhu authored
      `JavaSerializerInstance.serialize` uses `ByteArrayOutputStream.toByteArray` to get the serialized data. `ByteArrayOutputStream.toByteArray` needs to copy the content in the internal array to a new array. However, since the array will be converted to `ByteBuffer` at once, we can avoid the memory copy.
      
      This PR added `ByteBufferOutputStream` to access the protected `buf` and convert it to a `ByteBuffer` directly.
      
      Author: Shixiong Zhu <shixiong@databricks.com>
      
      Closes #10051 from zsxwing/SPARK-12060.
      14011665
    • Liang-Chi Hsieh's avatar
      [SPARK-11949][SQL] Set field nullable property for GroupingSets to get correct... · c87531b7
      Liang-Chi Hsieh authored
      [SPARK-11949][SQL] Set field nullable property for GroupingSets to get correct results for null values
      
      JIRA: https://issues.apache.org/jira/browse/SPARK-11949
      
      The result of cube plan uses incorrect schema. The schema of cube result should set nullable property to true because the grouping expressions will have null values.
      
      Author: Liang-Chi Hsieh <viirya@appier.com>
      
      Closes #10038 from viirya/fix-cube.
      c87531b7
    • Yuhao Yang's avatar
      [SPARK-11898][MLLIB] Use broadcast for the global tables in Word2Vec · a0af0e35
      Yuhao Yang authored
      jira: https://issues.apache.org/jira/browse/SPARK-11898
      syn0Global and sync1Global in word2vec are quite large objects with size (vocab * vectorSize * 8), yet they are passed to worker using basic task serialization.
      
      Use broadcast can greatly improve the performance. My benchmark shows that, for 1M vocabulary and default vectorSize 100, changing to broadcast can help,
      
      1. decrease the worker memory consumption by 45%.
      2. decrease running time by 40%.
      
      This will also help extend the upper limit for Word2Vec.
      
      Author: Yuhao Yang <hhbyyh@gmail.com>
      
      Closes #9878 from hhbyyh/w2vBC.
      a0af0e35
  2. Nov 30, 2015
  3. Nov 29, 2015
  4. Nov 28, 2015
    • felixcheung's avatar
      [SPARK-9319][SPARKR] Add support for setting column names, types · c793d2d9
      felixcheung authored
      Add support for for colnames, colnames<-, coltypes<-
      Also added tests for names, names<- which have no test previously.
      
      I merged with PR 8984 (coltypes). Clicked the wrong thing, crewed up the PR. Recreated it here. Was #9218
      
      shivaram sun-rui
      
      Author: felixcheung <felixcheung_m@hotmail.com>
      
      Closes #9654 from felixcheung/colnamescoltypes.
      c793d2d9
    • felixcheung's avatar
      [SPARK-12029][SPARKR] Improve column functions signature, param check, tests,... · 28e46ab4
      felixcheung authored
      [SPARK-12029][SPARKR] Improve column functions signature, param check, tests, fix doc and add examples
      
      shivaram sun-rui
      
      Author: felixcheung <felixcheung_m@hotmail.com>
      
      Closes #10019 from felixcheung/rfunctionsdoc.
      28e46ab4
    • gatorsmile's avatar
      [SPARK-12028] [SQL] get_json_object returns an incorrect result when the value is null literals · 149cd692
      gatorsmile authored
      When calling `get_json_object` for the following two cases, both results are `"null"`:
      
      ```scala
          val tuple: Seq[(String, String)] = ("5", """{"f1": null}""") :: Nil
          val df: DataFrame = tuple.toDF("key", "jstring")
          val res = df.select(functions.get_json_object($"jstring", "$.f1")).collect()
      ```
      ```scala
          val tuple2: Seq[(String, String)] = ("5", """{"f1": "null"}""") :: Nil
          val df2: DataFrame = tuple2.toDF("key", "jstring")
          val res3 = df2.select(functions.get_json_object($"jstring", "$.f1")).collect()
      ```
      
      Fixed the problem and also added a test case.
      
      Author: gatorsmile <gatorsmile@gmail.com>
      
      Closes #10018 from gatorsmile/get_json_object.
      149cd692
  5. Nov 27, 2015
  6. Nov 26, 2015
Loading