GitHub user WangTaoTheTonic opened a pull request:
https://github.com/apache/spark/pull/13409
[SPARK-15667][SQL]Throw exception if columns number of outputs mismatch the
inputs
## What changes were proposed in this pull request?
We will throw exception if the columns number of inputs and outputs
mismatch in driver side, instead of ArrayIndexOutOfBoundsException in executor
side.
## How was this patch tested?
run below sql statements:
create table test(school string,province string,a int);
create table p3(school string,province string);
insert into table test select * from p3;
the driver will throw exception which message will be "Cannot insert into
target table because column number/types are different ".
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/WangTaoTheTonic/spark parition
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13409.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 #13409
----
commit ca269a4ef12496975e00c2a6f4bdbd04fd41568e
Author: WangTaoTheTonic <[email protected]>
Date: 2016-05-31T11:41:20Z
Throw exception if columns number of outputs mismatch the inputs
----
---
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]