Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ESRI spatial functions

avatar

How do I set session-based only ESRI spatial functions?

1 ACCEPTED SOLUTION

avatar
Super Guru

@sivakumar sudhakarannair girijakumari

If you wish to use a function only during the active session, use temporary keyword in its creation statement.

Examples:

create temporary function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';
create temporary function ST_Intersects as 'com.esri.hadoop.hive.ST_Intersects';

This is not specific for ESRI spatial functions. It works similarly for any user defined function (UDF) when invoked in Hive.

View solution in original post

1 REPLY 1

avatar
Super Guru

@sivakumar sudhakarannair girijakumari

If you wish to use a function only during the active session, use temporary keyword in its creation statement.

Examples:

create temporary function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';
create temporary function ST_Intersects as 'com.esri.hadoop.hive.ST_Intersects';

This is not specific for ESRI spatial functions. It works similarly for any user defined function (UDF) when invoked in Hive.