GitHub user dereksabryfb opened a pull request:
https://github.com/apache/spark/pull/10137
[SPARK-12139][SQL] REGEX Column Specification for Hive Queries
When executing a query of the form
Select `(a)?.` from A,
Hive interprets this query as a regular expression, which can be supported
in the hive parser for spark
If a columns is specified in backticks (eg. (ds)?+.+), the hive parser will
treat that as a regular expression and 'expand' the columns similar to a *, on
columns that match the regex.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dereksabryfb/spark regex_columns
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10137.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 #10137
----
commit 65191fe0887049d2821b250d32bcdb338433c8aa
Author: Derek Sabry <[email protected]>
Date: 2015-12-03T23:15:38Z
REGEX Column Specification for Hive Queries
----
---
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]