Hi ,
I am creating a map using Hive as the back end datasource. I have a star schema for it. But when I am creating a pentaho Analysis Report when I am joining the 2 tables it is throwing the following exception:- Cannot recognize input near 'aadhaar_subdistrict_star' ',' 'aadhaar_subdistrict_agg_star' in table source).
The query fired in the backend is:-
select aadhaar_subdistrict_star.state as c0
from aadhaar_subdistrict_star aadhaar_subdistrict_star,
aadhaar_subdistrict_agg_star aadhaar_subdistrict_agg_star
where aadhaar_subdistrict_agg_star.loc_id = aadhaar_subdistrict_star.loc_id
group by aadhaar_subdistrict_star.state having NOT((sum(aadhaar_subdistrict_agg_star.subdisctrict_agg_count) is null))
order by ISNULL(c0) ASC, c0 ASC
I think Hive doesn't support comma when we are joining 2 tables. Is there any way I can change the query fired and create an inner join instead of a comma. I mean I want the class where the above query is fired so that I can change accordingly.Could anyone please help me regarding this as we are not able to create maps because of this error.
Thanks,
Regards,
Ayandeep
I am creating a map using Hive as the back end datasource. I have a star schema for it. But when I am creating a pentaho Analysis Report when I am joining the 2 tables it is throwing the following exception:- Cannot recognize input near 'aadhaar_subdistrict_star' ',' 'aadhaar_subdistrict_agg_star' in table source).
The query fired in the backend is:-
select aadhaar_subdistrict_star.state as c0
from aadhaar_subdistrict_star aadhaar_subdistrict_star,
aadhaar_subdistrict_agg_star aadhaar_subdistrict_agg_star
where aadhaar_subdistrict_agg_star.loc_id = aadhaar_subdistrict_star.loc_id
group by aadhaar_subdistrict_star.state having NOT((sum(aadhaar_subdistrict_agg_star.subdisctrict_agg_count) is null))
order by ISNULL(c0) ASC, c0 ASC
I think Hive doesn't support comma when we are joining 2 tables. Is there any way I can change the query fired and create an inner join instead of a comma. I mean I want the class where the above query is fired so that I can change accordingly.Could anyone please help me regarding this as we are not able to create maps because of this error.
Thanks,
Regards,
Ayandeep