GitHub user QiangCai opened a pull request:
https://github.com/apache/incubator-carbondata/pull/795
[CARBONDATA-923]fix issue of insertInto read from OneRowRelation
Reproduce:
create table OneRowTable(col1 string, col2 string, col3 int, col4 double)
stored by 'carbondata'
insert into OneRowTable select '0.1', 'a.b', 1, 1.2
Exception:
org.apache.spark.sql.AnalysisException: cannot resolve '`0.1`' given input
columns: [0.1, a.b, 1, 1.2];;
'Project ['0.1, 'a.b]
+- Project 0.1 AS 0.1#11, a.b AS a.b#12, 1 AS 1#13, 1.2 AS 1.2#14
+- OneRowRelation$
Solution:
rename output attribute of select sub-query
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/QiangCai/incubator-carbondata fixInsertInto
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/795.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 #795
----
commit 7c2bb5f970155a854f2b807e8aaf32de8bca43d8
Author: QiangCai <[email protected]>
Date: 2017-04-13T13:09:12Z
insertInto read from OneRowRelation
----
---
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.
---