vanhooser commented on a change in pull request #26884: [SPARK-30257] [PySpark]
Add simpleString map
URL: https://github.com/apache/spark/pull/26884#discussion_r357984101
##########
File path: python/pyspark/sql/types.py
##########
@@ -1603,6 +1627,13 @@ def convert(self, obj, gateway_client):
t.setNanos(obj.microsecond * 1000)
return t
+
+def from_simple_string(simple_str):
Review comment:
Yes I know what the `schema()` method is for, my point here is `dtypes()` is
more convenient for users as it makes it quite convenient and easy to scan a
schema.
I understand philosophically `schema()` is more correct, but I don’t think
I’m the end users care if it’s more correct if it’s more annoying to use.
`dtypes()` is less annoying to users in practice
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]