GitHub user ravipesala opened a pull request:
https://github.com/apache/incubator-carbondata/pull/685 [CARBONDATA-809] Fixed union with alias error
When using alias in union queries, it uses same instance of alias across the query, so one query alias is getting overridden with other table alias thats why it return wrong data.
Now this PR passes exclusive alias map for each union query.
You can merge this pull request into a Git repository by running:
$ git pull
https://github.com/ravipesala/incubator-carbondata alias-issue
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-carbondata/pull/685.patchTo close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #685
----
commit 4c8aa969f814730aa5954764a30ef638879f9445
Author: ravipesala <
[hidden email]>
Date: 2017-03-23T06:27:11Z
Fixed union with alias error
----
---
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
[hidden email] or file a JIRA ticket
with INFRA.
---