Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown user-defined function SEDONASNOW.SEDONA.ST_DUMP #1293

Closed
andreypanchenko opened this issue Mar 26, 2024 · 1 comment · Fixed by #1377
Closed

Unknown user-defined function SEDONASNOW.SEDONA.ST_DUMP #1293

andreypanchenko opened this issue Mar 26, 2024 · 1 comment · Fixed by #1377

Comments

@andreypanchenko
Copy link

andreypanchenko commented Mar 26, 2024

Expected behavior

SEDONASNOW.SEDONA.ST_DUMP
I already saw that in the known issue. but for me it's not related to origin of data for this function input
known-issues

Actual behavior

WITH geom_tbl AS (
    SELECT SEDONASNOW.SEDONA.ST_GeomFromWKT('POLYGON ((-3 -3, 3 -3, 3 3, -3 3, -3 -3))') AS geom
    UNION ALL
    SELECT SEDONASNOW.SEDONA.ST_GeomFromWKT('POLYGON ((-3 -3, 3 -3, 3 3, -3 3, -3 -3))')
    UNION ALL
    SELECT SEDONASNOW.SEDONA.ST_GeomFromWKT('POLYGON ((1 -2, 5 0, 1 2, 1 -2))')
)

SELECT SEDONASNOW.SEDONA.ST_DUMP(geom) dumped_geom
FROM geom_tbl

[2024-03-26 12:19:36] [42601][2141] SQL compilation error: [2024-03-26 12:19:36] Unknown user-defined function SEDONASNOW.SEDONA.ST_DUMP
image
image

Steps to reproduce the problem

install SNOWSEDONA snowflake application, or import custom .jar files to Snowflake

Settings

Sedona version = 1.51
Environment = Snowflake

@jiayuasu
Copy link
Member

jiayuasu commented Mar 26, 2024

@andreypanchenko We should update the doc. The correct usage is https://github.com/apache/sedona/blob/master/snowflake-tester/src/test/java/org/apache/sedona/snowflake/snowsql/TestTableFunctions.java#L107

select * from table(sedona.ST_Dump(sedona.ST_GeomFromText('MULTIPOINT ((10 40), (40 30), (20 20), (30 10))')));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants