[GitHub] spark pull request #13628: [SPARK-15907] [SQL] Issue Exceptions when Not Eno...

2016-06-12 Thread gatorsmile
Github user gatorsmile closed the pull request at:

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


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #13628: [SPARK-15907] [SQL] Issue Exceptions when Not Eno...

2016-06-12 Thread gatorsmile
GitHub user gatorsmile opened a pull request:

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

[SPARK-15907] [SQL] Issue Exceptions when Not Enough Input Columns for 
Dynamic Partitioning

 What changes were proposed in this pull request?
```SQL
CREATE TABLE table_with_partition(c1 string)
PARTITIONED by (p1 string,p2 string)

INSERT OVERWRITE TABLE table_with_partition
partition (p1='a',p2) IF NOT EXISTS
SELECT 'blarr3'
```

In the above example, we do not have enough input columns for dynamic 
partitioning. The first input column is already taken as data columns. This PR 
is to issue an exception in this scenario.  

 How was this patch tested?
Added a test case and fixed an existing test case

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

$ git pull https://github.com/gatorsmile/spark dynamicPartitioningException

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

https://github.com/apache/spark/pull/13628.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 #13628


commit 4c4911226136bd797ed17955e795615f9c145de8
Author: gatorsmile 
Date:   2016-06-12T23:35:07Z

bug fix.




---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org