You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Shivram Mani <sh...@gmail.com> on 2016/07/20 22:06:36 UTC

Using SearchArgumentFacgtory

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

Re: Using SearchArgumentFacgtory

Posted by Shivram Mani <sh...@gmail.com>.
Thanks for confirming.

On Wed, Jul 20, 2016 at 3:27 PM, Prasanth Jayachandran <
pjayachandran@hortonworks.com> wrote:

> 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 <sh...@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
>
>


-- 
shivram mani

Re: Using SearchArgumentFacgtory

Posted by Prasanth Jayachandran <pj...@hortonworks.com>.
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 <sh...@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