Randall Whitman
Randall Whitman
And/or maybe some new `ObjectInspector` types have been introduced in Hive API. and missing from - https://github.com/Esri/spatial-framework-for-hadoop/blob/master/hive/src/main/java/com/esri/hadoop/hive/ST_Bin.java#L37..L44
`PrimitiveCategory.DECIMAL` maybe? Per skimming https://hive.apache.org/javadocs/r2.3.5/api/org/apache/hadoop/hive/serde2/objectinspector/PrimitiveObjectInspector.PrimitiveCategory.html , https://hive.apache.org/javadocs/r2.3.5/api/org/apache/hadoop/hive/serde2/objectinspector/primitive/package-summary.html
@doublebyte1 Are you able to test the linked branch Esri/spatial-framework-for-hadoop#164 ?
Today I got Hive-2.3.5 to run, and reproduced: ``` hive> SELECT ST_Bin(1.0-0.999, ST_Point(0,0)); FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments '0': Argument 0 must be a number ```
Hmm, the log entry above makes it look like an ST_Geometry function is throwing NPE when it should instead log invalid null argument.
May warrant note in https://github.com/Esri/spatial-framework-for-hadoop/wiki/ST_Geometry-for-Hive-Compatibility-with-Hive-Versions
@komamitsu FYI, in case this is of interest.
Hi @wgtmac - thanks for contributing to Spatial Framework for Hadoop. However - > The convex hull of a single geometry should be itself. No, that's not correct in general....
It will be useful if we can put together a unit test for at least the case of single geometry. We used to have automatic tests of most if not...
Please comment on this draft of a test: @wgtmac @climbage @JordanMLee ```java public void TestStAggrConvexHullPoint() throws HiveException { ST_Point stPt = new ST_Point(); BytesWritable bwGeom = stPt.evaluate(new DoubleWritable(1.2), new DoubleWritable(3.4));...