You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
st_multipolygon(geometry.coordinates[0][0]) as geo
FROM test
I get:
No handler for Hive UDF 'com.esri.hadoop.hive.ST_MultiPolygon': org.apache.hadoop.hive.ql.exec.NoMatchingMethodException: No matching method for class com.esri.hadoop.hive.ST_MultiPolygon with (array<array<double>>). Possible choices: _FUNC_(array<array<double>>) _FUNC_(string) ;
So I pass an array<array> and it expects an array<array>.
It works if I try:
SELECT
st_multipolygon(geometry.coordinates[0][0][0], geometry.coordinates[0][0][1], ...) as geo
FROM test
Any idea of what's wrong (or what I'm doing wrong ?)
The text was updated successfully, but these errors were encountered:
I'm trying to load a valid Geojson file using SPARK SQL and then transforming the coordinates to ST_MultiPolygon.
The jars I use are:
The schema of the input data is:
The process fails when I try the following:
I get:
No handler for Hive UDF 'com.esri.hadoop.hive.ST_MultiPolygon': org.apache.hadoop.hive.ql.exec.NoMatchingMethodException: No matching method for class com.esri.hadoop.hive.ST_MultiPolygon with (array<array<double>>). Possible choices: _FUNC_(array<array<double>>) _FUNC_(string) ;
So I pass an array<array> and it expects an array<array>.
It works if I try:
Any idea of what's wrong (or what I'm doing wrong ?)
The text was updated successfully, but these errors were encountered: