[ 
https://issues.apache.org/jira/browse/SEDONA-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430770#comment-17430770
 ] 

Paweł Kociński commented on SEDONA-58:
--------------------------------------

Or even better, we can add function which will create merged geometries after 
group by statement.

> is there a good way to form multipoint
> --------------------------------------
>
>                 Key: SEDONA-58
>                 URL: https://issues.apache.org/jira/browse/SEDONA-58
>             Project: Apache Sedona
>          Issue Type: Improvement
>            Reporter: blingqiu
>            Priority: Major
>
> I get a collect of lng and lat array, how to form a multipoint geom?
> sql1 = f"""
> select
> buyer_addr_state,buyer_addr,
> collect_list(array(geo_lng,geo_lat)) as pins,
> count(1) as pins_cnt
> from tmp_my_address_tab_tab
> group by buyer_addr_state,buyer_addr
> """
> df1 = spark.sql(sql1)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to