MaxGekk commented on a change in pull request #34211:
URL: https://github.com/apache/spark/pull/34211#discussion_r725875051



##########
File path: python/pyspark/pandas/namespace.py
##########
@@ -1638,6 +1638,21 @@ def to_datetime(
         "months": "month",
         "day": "day",
         "days": "day",
+        "hour": "h",
+        "hours": "h",
+        "minute": "m",
+        "minutes": "m",
+        "second": "s",
+        "seconds": "s",
+        "ms": "ms",
+        "millisecond": "ms",
+        "milliseconds": "ms",
+        "us": "us",
+        "microsecond": "us",
+        "microseconds": "us",
+        "ns": "ns",
+        "nanosecond": "ns",
+        "nanoseconds": "ns",

Review comment:
       Spark supports only microsecond precision. Those units don't make so 
much sense.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to