Description
Found the below issues in fact-to-fact union and cube segmentation rewritten query.
1. Expressions used in having clause are not resolved in the final rewritten query incase of picked candidate is a segmentation.
2. Alias is not being replaced in order by clause for segmentation queries.
3. Query with two dim attributes referring to same join chain ending with wrong alias replacement.