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

    https://github.com/apache/spark/pull/5173#discussion_r27261557
  
    --- Diff: python/pyspark/sql/__init__.py ---
    @@ -31,9 +31,22 @@
         - L{HiveContext}
           Main entry point for accessing data stored in Apache Hive..
     """
    +from __future__ import absolute_import
    +
    +# fix the module name conflict for Python 3+
    --- End diff --
    
    Just to make sure that I understand this conflict, I guess the issue is 
that Python 3 introduces a `types` module that somehow conflicts with our 
module?  I think we've discussed this before w.r.t other standard library 
naming conflicts, but isn't this only a problem if you're trying to import 
PySpark SQL's `types` module via a relative import rather than absolute one, or 
if you place the `python/pyspark/sql` folder directly onto your PYTHONPATH?  Is 
this only a problem during tests?


---
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