Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6354#discussion_r31074471
  
    --- Diff: python/pyspark/sql/dataframe.py ---
    @@ -224,7 +224,10 @@ def schema(self):
             
StructType(List(StructField(age,IntegerType,true),StructField(name,StringType,true)))
             """
             if self._schema is None:
    -            self._schema = 
_parse_datatype_json_string(self._jdf.schema().json())
    +            try:
    +                self._schema = 
_parse_datatype_json_string(self._jdf.schema().json())
    +            except AttributeError:
    +                raise Exception("Unable to parse datatype from schema.")
    --- End diff --
    
    Could you put something about the original exception into the message?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to