spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject spark git commit: add inline comment for python tests
Date Sat, 11 Jul 2015 00:44:32 GMT
Repository: spark
Updated Branches:
  refs/heads/master 857e325f3 -> b6fc0adf6


add inline comment for python tests


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b6fc0adf
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b6fc0adf
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b6fc0adf

Branch: refs/heads/master
Commit: b6fc0adf6874fc26ab27cdaa8ebb28474c0681f0
Parents: 857e325
Author: Davies Liu <davies.liu@gmail.com>
Authored: Fri Jul 10 17:44:21 2015 -0700
Committer: Davies Liu <davies.liu@gmail.com>
Committed: Fri Jul 10 17:44:21 2015 -0700

----------------------------------------------------------------------
 python/pyspark/sql/tests.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b6fc0adf/python/pyspark/sql/tests.py
----------------------------------------------------------------------
diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py
index ed90333..241eac4 100644
--- a/python/pyspark/sql/tests.py
+++ b/python/pyspark/sql/tests.py
@@ -710,6 +710,7 @@ class SQLTests(ReusedPySparkTestCase):
         from pyspark.sql.tests import UTC
         utc = UTC()
         utcnow = datetime.datetime.utcfromtimestamp(ts)  # without microseconds
+        # add microseconds to utcnow (keeping year,month,day,hour,minute,second)
         utcnow = datetime.datetime(*(utcnow.timetuple()[:6] + (now.microsecond, utc)))
         df = self.sqlCtx.createDataFrame([(day, now, utcnow)])
         day1, now1, utcnow1 = df.first()


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


Mime
View raw message