Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARK-2407: Added Parser of SQL SUBSTR() #1442

Closed
wants to merge 7 commits into from
Closed

Conversation

chutium
Copy link
Contributor

@chutium chutium commented Jul 16, 2014

follow-up of #1359

@chutium chutium changed the title SPARK-2407: Added Parse of SQL SUBSTR() SPARK-2407: Added Parser of SQL SUBSTR() Jul 16, 2014
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@willb
Copy link
Contributor

willb commented Jul 16, 2014

That was my thought as well, @egraldlo. Thanks for submitting this, @chutium!

@egraldlo
Copy link
Contributor

thx @willb, maybe protected val SUBSTRING = Keyword("SUBSTRING") as well, but this will cause the code redundance.

@willb
Copy link
Contributor

willb commented Jul 16, 2014

@egraldlo, couldn't it be (SUBSTR | SUBSTRING) ~> // ... in that case?

@egraldlo
Copy link
Contributor

fine, that's great!

@marmbrus
Copy link
Contributor

Please add a test to SQLQuerySuite

@chutium
Copy link
Contributor Author

chutium commented Jul 17, 2014

added a simple test in SQLQuerySuite

@chutium
Copy link
Contributor Author

chutium commented Jul 18, 2014

and... how can i run a single test class using maven? i tried:
mvn -Pyarn -Phive -Dhadoop.version=2.3.0-cdh5.0.3 -Dtest=SQLQuerySuite test
but it does not work

@marmbrus
Copy link
Contributor

I don't know how do it with maven but with sbt:

sbt/sbt "sql/test-only org.apache.spark.sql.SQLQuerySuite"

@chutium
Copy link
Contributor Author

chutium commented Jul 18, 2014

@egraldlo @willb thanks guys, substring is also added, @marmbrus test also done and passed.

@marmbrus
Copy link
Contributor

test this please

@SparkQA
Copy link

SparkQA commented Jul 18, 2014

QA tests have started for PR 1442. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16834/consoleFull

@SparkQA
Copy link

SparkQA commented Jul 18, 2014

QA results for PR 1442:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16834/consoleFull

@marmbrus
Copy link
Contributor

Thanks! I've merged this into master.

@asfgit asfgit closed this in 2a73211 Jul 19, 2014
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
follow-up of apache#1359

Author: chutium <[email protected]>

Closes apache#1442 from chutium/master and squashes the following commits:

b49cc8a [chutium] SPARK-2407: Added Parser of SQL SUBSTRING() apache#1442
9a60ccf [chutium] SPARK-2407: Added Parser of SQL SUBSTR() apache#1442
06e933b [chutium] Merge https://github.com/apache/spark
c870172 [chutium] Merge https://github.com/apache/spark
094f773 [chutium] Merge https://github.com/apache/spark
88cb37d [chutium] Merge https://github.com/apache/spark
1de83a7 [chutium] SPARK-2407: Added Parse of SQL SUBSTR()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants