You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by dongjoon-hyun <gi...@git.apache.org> on 2018/10/23 15:02:56 UTC

[GitHub] spark pull request #22801: [SPARK-25656][SQL][DOC][EXAMPLE] Add a doc and ex...

Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22801#discussion_r227434947
  
    --- Diff: examples/src/main/scala/org/apache/spark/examples/sql/SQLDataSourceExample.scala ---
    @@ -56,6 +56,13 @@ object SQLDataSourceExample {
           .option("header", "true")
           .load("examples/src/main/resources/people.csv")
         // $example off:manual_load_options_csv$
    +    // $example on:manual_save_options_orc$
    +    usersDF.write.format("orc")
    +      .option("orc.bloom.filter.columns", "favorite_color")
    +      .option("orc.dictionary.key.threshold", "1.0")
    +      .option("orc.column.encoding.direct", "name")
    +      .save("users_with_options.orc")
    --- End diff --
    
    Also, cc @dbtsai .
    This doc is only for Spark 3.0.0 since `orc.column.encoding.direct` is added to `master` branch.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org