GitHub user davies opened a pull request:

    https://github.com/apache/spark/pull/5570

    [SPARK-6949] [SQL] [PySpark] Support Date/Timestamp in Column expression

    This PR enable auto_convert in JavaGateway, then we could register a 
converter for a given types, for example, date and datetime.
    
    There are two bugs related to auto_convert, see [1] and [2], we workaround 
it in this PR.
    
    [1]  https://github.com/bartdag/py4j/issues/160
    [2] https://github.com/bartdag/py4j/issues/161
    
    cc @rxin @JoshRosen 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/davies/spark py4j_date

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5570.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5570
    
----
commit cb094ff5eed6938c89cd96c70cd42eaf9ed77894
Author: Davies Liu <[email protected]>
Date:   2015-04-18T05:32:04Z

    enable auto convert

commit 3c373f3bc25b90d0e77708983c0f1d8cbb8cc5a6
Author: Davies Liu <[email protected]>
Date:   2015-04-18T06:48:09Z

    support date and datetime by auto_convert

----


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