We love hearing from our users. Tell us what you want to see next and upvote ideas from the community. * Bugs and troubleshooting should as usual go through InterSystems support.
FROM_VECTOR to get the content of $ZV into a variable (JSON ?)
ADD_VECTOR() for transformation. For INT and DOUBLE
DiFF_VECTOR() for Vector distance For INT and DOUBLE
ADMIN RESPONSE
Sep 12, 2024
Thank you for submitting the idea. Based on information from our experts the status of your idea was changed to "Will not implement". Please look for details in the comments on the idea. Good luck!
Hi Robert, do you have a specific use case in mind for extending the SQL vocabulary here? We don't really see much use for the low-level vector operations in SQL outside of the similarity calculations we're using for Vector Search, other than perhaps a grad school maths homework. Unlike the $vector functions in ObjectScript, everything we'd add to SQL has the potential of colliding with user-defined functions, so we'd like to be cautious and not overload the language with functions no one really needs. And as you have found, it's not hard for those that do need them (for said homework) to implement them as UDFs themselves.
I wrote an overview of what is available actually. Using VECTORs in ObjectScript Almost everything is there already. It just needs to be wrapped into SQL Procedures. Not a big deal for an experienced COS developer
Robert, thank you for your idea.
There is a comment on your idea from InterSystems Product Manager. Please answer it to help your idea to be promoted.
Hi Robert, do you have a specific use case in mind for extending the SQL vocabulary here? We don't really see much use for the low-level vector operations in SQL outside of the similarity calculations we're using for Vector Search, other than perhaps a grad school maths homework. Unlike the $vector functions in ObjectScript, everything we'd add to SQL has the potential of colliding with user-defined functions, so we'd like to be cautious and not overload the language with functions no one really needs. And as you have found, it's not hard for those that do need them (for said homework) to implement them as UDFs themselves.
I wrote an overview of what is available actually.
Using VECTORs in ObjectScript
Almost everything is there already. It just needs to be wrapped into SQL Procedures.
Not a big deal for an experienced COS developer
As my replies and comments show it is doable but incredibly uncomfortable
Some simpler approaches as SQL Methods will be attrative
USER>zw vdiff
vdiff={"type":"integer", "count":3, "length":3, "vector":[-23,-45,0]} ; <VECTOR>
digging across documentation I detected that this is all available in COS!
and even well described in the documentation.
$vector()
$vectorop (ObjectScript)