AstRewrite for count distinct can cause unexpected issues with certain queries.
Continue without rewrite under any issues in rewriting.
Merge pull request #267 from sundeepn/astrewritefix

AstRewrite for count distinct can cause unexpected issues with certain queries