Hi Sungoo,
 get_splits() is used by the HiveWarehouseConnector, you can see an example
here:
https://github.com/hortonworks/hive-warehouse-connector/blob/HDP-3.1.5.20-4-tag/src/main/java/com/hortonworks/spark/sql/hive/llap/HiveWarehouseDataSourceReader.java

That being said, I'm not sure if this UDF is technically supported as a
public API by the Hive community, so you may want to check about that.

Eric

On Sun, Apr 5, 2020 at 11:52 AM Sungwoo Park <glap...@gmail.com> wrote:

> Hello,
>
> I would like to learn the use of UDF get_splits(). I tried such queries as:
>
> select get_splits("select * from web_returns", 1) ;
> select get_splits("select count(*) from web_returns", 1);
>
> These queries just return InputSplit objects, and I would like to see an
> example that uses the result of calling get_splits(). If someone could
> share a practical example using get_splits(), I would appreciate it very
> much.
>
> Thanks,
>
> --- Sungwoo
>

Reply via email to