Skip to content

Commit

Permalink
fix snowflake UDF
Browse files Browse the repository at this point in the history
  • Loading branch information
prantogg committed Dec 18, 2024
1 parent 5125a32 commit 38ca823
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ public static String ST_LabelPoint(String geom) {

@UDFAnnotations.ParamMeta(
argNames = {"geom", "gridResolution"},
argTypes = {"Geometry", "double"})
argTypes = {"Geometry", "int"})
public static String ST_LabelPoint(String geom, int gridResolution) {
return GeometrySerde.serGeoJson(
Functions.labelPoint(GeometrySerde.deserGeoJson(geom), gridResolution));
}

@UDFAnnotations.ParamMeta(
argNames = {"geom", "gridResolution", "goodnessThreshold"},
argTypes = {"Geometry", "double", "double"})
argTypes = {"Geometry", "int", "double"})
public static String ST_LabelPoint(String geom, int gridResolution, double goodnessThreshold) {
return GeometrySerde.serGeoJson(
Functions.labelPoint(GeometrySerde.deserGeoJson(geom), gridResolution, goodnessThreshold));
Expand Down

0 comments on commit 38ca823

Please sign in to comment.