diff options
author | Davies Liu <davies.liu@gmail.com> | 2015-07-10 17:44:21 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-07-10 17:44:21 -0700 |
commit | b6fc0adf6874fc26ab27cdaa8ebb28474c0681f0 (patch) | |
tree | a972cc2dd80a557daadbd31007dc42c550fd32bd | |
parent | 857e325f304a02b1cab2463c1e15af7627a600bd (diff) | |
download | spark-b6fc0adf6874fc26ab27cdaa8ebb28474c0681f0.tar.gz spark-b6fc0adf6874fc26ab27cdaa8ebb28474c0681f0.tar.bz2 spark-b6fc0adf6874fc26ab27cdaa8ebb28474c0681f0.zip |
add inline comment for python tests
-rw-r--r-- | python/pyspark/sql/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py index ed903334be..241eac45cf 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() |