diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-07-19 11:51:43 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-07-19 11:51:43 +0100 |
commit | 556a9437ac7b55079f5a8a91e669dcc36ca02696 (patch) | |
tree | c47f685c9497872f4f344aa97511f4f2aae226b3 /examples/src | |
parent | 6ee40d2cc5f467c78be662c1639fc3d5b7f796cf (diff) | |
download | spark-556a9437ac7b55079f5a8a91e669dcc36ca02696.tar.gz spark-556a9437ac7b55079f5a8a91e669dcc36ca02696.tar.bz2 spark-556a9437ac7b55079f5a8a91e669dcc36ca02696.zip |
[MINOR][BUILD] Fix Java Linter `LineLength` errors
## What changes were proposed in this pull request?
This PR fixes four java linter `LineLength` errors. Those are all `LineLength` errors, but we had better remove all java linter errors before release.
## How was this patch tested?
After pass the Jenkins, `./dev/lint-java`.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #14255 from dongjoon-hyun/minor_java_linter.
Diffstat (limited to 'examples/src')
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java b/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java index 2b94b9f114..ec02c8bbb8 100644 --- a/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java +++ b/examples/src/main/java/org/apache/spark/examples/sql/JavaSQLDataSourceExample.java @@ -110,11 +110,13 @@ public class JavaSQLDataSourceExample { usersDF.select("name", "favorite_color").write().save("namesAndFavColors.parquet"); // $example off:generic_load_save_functions$ // $example on:manual_load_options$ - Dataset<Row> peopleDF = spark.read().format("json").load("examples/src/main/resources/people.json"); + Dataset<Row> peopleDF = + spark.read().format("json").load("examples/src/main/resources/people.json"); peopleDF.select("name", "age").write().format("parquet").save("namesAndAges.parquet"); // $example off:manual_load_options$ // $example on:direct_sql$ - Dataset<Row> sqlDF = spark.sql("SELECT * FROM parquet.`examples/src/main/resources/users.parquet`"); + Dataset<Row> sqlDF = + spark.sql("SELECT * FROM parquet.`examples/src/main/resources/users.parquet`"); // $example off:direct_sql$ } |