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

    https://github.com/apache/spark/pull/5173#discussion_r27264118
  
    --- 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 --
    
    Ah, I think I remember the issue: I think that Python places the main 
file's enclosing directory onto the Python path to enable relative imports, so 
I guess that `python/pyspark/sql` ends up on the PYTHONPATH when we directly 
execute its files in run-tests.  We had a sort of messy hack for dealing with 
this earlier, but the file rename here also seems fine so let's go ahead and 
keep it.


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