Skip to content
Snippets Groups Projects
Commit b6fc0adf authored by Davies Liu's avatar Davies Liu
Browse files

add inline comment for python tests

parent 857e325f
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment