GitHub user bomeng opened a pull request:
https://github.com/apache/spark/pull/10364
[SPARK-12412] [SQL] Support LIKE in the JDBCRDD
For SQL LIKE clause support in JDBCRDD, for example:
SELECT * FROM table WHERE NAME LIKE '%m'
SELECT * FROM table WHERE NAME LIKE '%m%'
SELECT * FROM table WHERE NAME LIKE 'm%'
Currently this is not pushed down for JDBC datasource. The fix will
construct the correct string that can be pushed down.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bomeng/spark SPARK-12412
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10364.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 #10364
----
commit f1c8f8da8ce90b7435259646b2c83b73e6ae891a
Author: bomeng <[email protected]>
Date: 2015-12-09T17:57:58Z
Merge remote-tracking branch 'apache/master'
commit 136948303e800120484fde61de331fe35f5a698b
Author: bomeng <[email protected]>
Date: 2015-12-10T17:45:25Z
Merge remote-tracking branch 'upstream/master'
commit 550d7a165f4d11bc1741f9ad699311553e0fe195
Author: bomeng <[email protected]>
Date: 2015-12-10T21:09:25Z
Merge remote-tracking branch 'upstream/master'
commit c03398e33d27299debe7cd827f2c3a9c24315d77
Author: bomeng <[email protected]>
Date: 2015-12-14T23:16:38Z
Merge remote-tracking branch 'upstream/master'
commit 6b8e5168ae291a300711f355b1364f5de1135f50
Author: bomeng <[email protected]>
Date: 2015-12-16T20:56:01Z
Merge remote-tracking branch 'upstream/master'
commit 776a28769f27b4e9fb7ee51078ace430b44b0a5e
Author: bomeng <[email protected]>
Date: 2015-12-16T23:51:30Z
Merge remote-tracking branch 'upstream/master'
commit e5a63024b3064e0007c3ca8c142140f244f0f224
Author: bomeng <[email protected]>
Date: 2015-12-17T21:23:32Z
Merge remote-tracking branch 'upstream/master'
commit 8c3fed41366918d1201c8390f72957416562183b
Author: bomeng <[email protected]>
Date: 2015-12-17T21:49:08Z
support LIKE in the JDBCRDD
----
---
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]