You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2017/05/18 16:28:18 UTC
spark git commit: [SPARK-20779][EXAMPLES] The ASF header placed in an
incorrect location in some files.
Repository: spark
Updated Branches:
refs/heads/master 5d2750aa2 -> 4779b86b5
[SPARK-20779][EXAMPLES] The ASF header placed in an incorrect location in some files.
## What changes were proposed in this pull request?
The license is not at the top in some files. and it will be best if we update these places of the ASF header to be consistent with other files.
## How was this patch tested?
manual tests
Author: zuotingbing <zu...@zte.com.cn>
Closes #18012 from zuotingbing/spark-license.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/4779b86b
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/4779b86b
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/4779b86b
Branch: refs/heads/master
Commit: 4779b86b5a83beab98cdef191d4174bea2de34fe
Parents: 5d2750a
Author: zuotingbing <zu...@zte.com.cn>
Authored: Thu May 18 17:28:14 2017 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Thu May 18 17:28:14 2017 +0100
----------------------------------------------------------------------
examples/src/main/python/parquet_inputformat.py | 3 ++-
examples/src/main/python/pi.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/4779b86b/examples/src/main/python/parquet_inputformat.py
----------------------------------------------------------------------
diff --git a/examples/src/main/python/parquet_inputformat.py b/examples/src/main/python/parquet_inputformat.py
index 29a1ac2..52e9662 100644
--- a/examples/src/main/python/parquet_inputformat.py
+++ b/examples/src/main/python/parquet_inputformat.py
@@ -1,4 +1,3 @@
-from __future__ import print_function
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,8 @@ from __future__ import print_function
# limitations under the License.
#
+from __future__ import print_function
+
import sys
from pyspark.sql import SparkSession
http://git-wip-us.apache.org/repos/asf/spark/blob/4779b86b/examples/src/main/python/pi.py
----------------------------------------------------------------------
diff --git a/examples/src/main/python/pi.py b/examples/src/main/python/pi.py
index 37029b7..5839cc2 100755
--- a/examples/src/main/python/pi.py
+++ b/examples/src/main/python/pi.py
@@ -1,4 +1,3 @@
-from __future__ import print_function
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,6 +15,8 @@ from __future__ import print_function
# limitations under the License.
#
+from __future__ import print_function
+
import sys
from random import random
from operator import add
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org