Skip to content

Commit

Permalink
fix: snowflake test
Browse files Browse the repository at this point in the history
  • Loading branch information
furqaankhan committed Jul 16, 2024
1 parent 6e2af80 commit 3c9d48b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ public void test_ST_GeneratePoints() {
verifySqlSingleRes(
"select sedona.ST_NumGeometries(sedona.ST_GeneratePoints(sedona.ST_GeomFromWKT('POLYGON ((1 0, 1 1, 2 1, 2 0, 1 0))'), 15))",
15);

registerUDF("ST_GeneratePoints", byte[].class, int.class, long.class);
verifySqlSingleRes(
"select sedona.ST_NumGeometries(sedona.ST_GeneratePoints(sedona.ST_GeomFromWKT('POLYGON ((1 0, 1 1, 2 1, 2 0, 1 0))'), 15, 100))",
15);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ public void test_ST_GeneratePoints() {
verifySqlSingleRes(
"select sedona.ST_NumGeometries(sedona.ST_GeneratePoints(ST_GeomFromWKT('POLYGON ((1 0, 1 1, 2 1, 2 0, 1 0))'), 15))",
15);

registerUDFV2("ST_GeneratePoints", String.class, int.class, long.class);
verifySqlSingleRes(
"select sedona.ST_NumGeometries(sedona.ST_GeneratePoints(ST_GeomFromWKT('POLYGON ((1 0, 1 1, 2 1, 2 0, 1 0))'), 15, 100))",
15);
Expand Down

0 comments on commit 3c9d48b

Please sign in to comment.