[
https://issues.apache.org/jira/browse/DRILL-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15217296#comment-15217296
]
Anton Fernando commented on DRILL-4553:
---------------------------------------
The query returns data if I do not have the filter on the first view (where
username = upper(user)), but the whole point of this exercise is to secure the
data by using data around who can view what inside of the JSON files.
> Joins using views are not returning results.
> --------------------------------------------
>
> Key: DRILL-4553
> URL: https://issues.apache.org/jira/browse/DRILL-4553
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.5.0, 1.6.0
> Reporter: Anton Fernando
> Priority: Critical
>
> I have the following three views:
> create view view1 as select ..... from .... where username=user;
> create view view2 as select ..... from view1 as a, <file1> as b where a.col1
> = b.col1;
> create view view3 as select ..... from view1 as a, <file2> as b where a.col1
> = b.col1;
> A select * from each of these views works fine and returns the expected
> results. A self join on view2 and view3 also works fine. However when view2
> and view3 are joined on common keys there are no rows returned.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)