morpheus icon indicating copy to clipboard operation
morpheus copied to clipboard

Support for user defined procedures

Open amogkam opened this issue 5 years ago • 3 comments

Is there any plan to support user-defined procedures and the CALL interface?

amogkam avatar Jun 18 '19 20:06 amogkam

Hello @amogkam and thanks for reaching out to us.

This is not one of our top topics currently, because it isn't clear what we would offer the procedure author in terms of internal API. Would it be Spark-specific or an okapi abstraction? Do you have a suggestion or any requirements for how to design this? What sort of procedure would you like to be able to write?

Regards Mats

Mats-SX avatar Jun 20 '19 11:06 Mats-SX

I was thinking some sort of interface which allows users to write their own class that takes in a PropertyGraph and outputs a CypherResult, and surface this procedure as a new procedure in the language. For example, I want to be able to write new graph algorithms in Spark or Flink and have it be callable in a cypher query.

amogkam avatar Jun 21 '19 18:06 amogkam

That's a pretty neat idea. I'll forward these to our prioritisation agenda.

Mats-SX avatar Jun 24 '19 09:06 Mats-SX