No. Currently there is no way to create SARG directly from string. With plain 
strings its hard differentiate column references vs constants vs expressions. 

You should write a conversion layer that converts the predicates from your 
custom engine to SARG using the direct APIs.

Thanks
Prasanth

> On Jul 20, 2016, at 3:06 PM, Shivram Mani <shivram.m...@gmail.com> wrote:
> 
> I'm using the Search Argument factory to configure my query predicates to the 
> underlying ORC file. I'm receiving the predicates through another a custom 
> engine and not through the Hive.
> Is there any way i can build the sarg object using some form of a string 
> expression ?
> 
> Thanks
> 
> -- 
> shivram mani

Reply via email to