Skip to content

Commit 38ca823

Browse files
committed
fix snowflake UDF
1 parent 5125a32 commit 38ca823

File tree

1 file changed

+2
-2
lines changed
  • snowflake/src/main/java/org/apache/sedona/snowflake/snowsql

1 file changed

+2
-2
lines changed

snowflake/src/main/java/org/apache/sedona/snowflake/snowsql/UDFsV2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ public static String ST_LabelPoint(String geom) {
110110

111111
@UDFAnnotations.ParamMeta(
112112
argNames = {"geom", "gridResolution"},
113-
argTypes = {"Geometry", "double"})
113+
argTypes = {"Geometry", "int"})
114114
public static String ST_LabelPoint(String geom, int gridResolution) {
115115
return GeometrySerde.serGeoJson(
116116
Functions.labelPoint(GeometrySerde.deserGeoJson(geom), gridResolution));
117117
}
118118

119119
@UDFAnnotations.ParamMeta(
120120
argNames = {"geom", "gridResolution", "goodnessThreshold"},
121-
argTypes = {"Geometry", "double", "double"})
121+
argTypes = {"Geometry", "int", "double"})
122122
public static String ST_LabelPoint(String geom, int gridResolution, double goodnessThreshold) {
123123
return GeometrySerde.serGeoJson(
124124
Functions.labelPoint(GeometrySerde.deserGeoJson(geom), gridResolution, goodnessThreshold));

0 commit comments

Comments
 (0)