GitHub user culler opened a pull request:

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

    [SPARK-4205][SQL] DSL expressions with a literal on the left hand side

    Currently the DSL expression parser does not recognize expressions which 
begin with a literal, such as:
    `0 < 'x`.
    
    This PR adds a new implicit class which allows such expressions to be 
included in the DSL.  Due to conflicts with scalatest, which converts  `===` 
and `!==` in its `assert` macro, these two operators can not be used by the new 
class.  It adds two new operators `-=-` and `!=-` which behave identically to 
`===` and `!==` within the DSL, but can also be used in expressions which start 
with a literal.
    
    The new class replaces the comment: `// TODO more implicit class for 
literal?`
    I think this may be what the author had in mind.

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

    $ git pull https://github.com/culler/spark lhs

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

    https://github.com/apache/spark/pull/3210.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 #3210
    
----
commit 1d42fff2f5d77df8b9d0c0fcbcabf0d46d01c174
Author: Marc Culler <[email protected]>
Date:   2014-11-11T20:34:33Z

    Adding an implicit class which enables DSL expressions which begin with a
    literal to be recognized.

----


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