Yes, I believe that's what Constant Object Inspector are used for.
The initialize method returns object inspectors that are used at query
compilation time to check the type safety and perform potential
optimizations. If you return a StringConstantObjectInspector containing the
value that your method is supposed to return, the Hive optimiser will know
that it can safely perform partition pruning on it.
On Tue, 15 May 2018, 23:32 Alberto Ramón, <[EMAIL PROTECTED]> wrote: