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

Stefan Miklosovic commented on CASSANDRA-17942:
-----------------------------------------------

I do not think you can call one udf function from inside the other either. You 
might try to put it all into that UDF though.

There is this a plugin for Cassandra (1) which knows bunch of stuff and geo 
searches as well. I am not sure if you want to hash or search (2). Why are you 
interested in that hash in the first place?

(1) [https://github.com/instaclustr/cassandra-lucene-index]

(2) 
https://github.com/instaclustr/cassandra-lucene-index/blob/cassandra-4.0.1/doc/documentation.rst#geographical-elements

> GeoHashing
> ----------
>
>                 Key: CASSANDRA-17942
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17942
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Mr M.
>            Priority: Normal
>         Attachments: Geohash.js, script geohash.txt
>
>
> Dears,
> I am trying to do a GeoHash when importing data of longitude & latitude using 
> DSBULK.
> My idea was to call the javascript of GeoHash using a Cassandra Function
> [http://www.movable-type.co.uk/scripts/geohash.html]
>  
>  
> CREATE or replace FUNCTION encode(lat double, lng double, lth int)
>     RETURNS NULL ON NULL INPUT
>     RETURNS text
>     LANGUAGE javascript
>     AS $$
>            'Geohash.GeoHash.encode(lat,lng,lth);'
> $$
>  
> Cassandra version i am using is 4.0.6
> Thanks in advance



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to