thx. fixed
- Log in to post comments
thx. fixed
Guessing after the rater unclear description you are looking for Implicit Join
-> mimic an arrow in plain ASCII does that
SELECT MySetting -> Name from MyObjIt acts as LEFT OUTER JOIN
https://docs.intersystems.com/iris20241/csp/docbook/Doc.View.cls?KEY=GSQL_implicitjoins
https://docs.intersystems.com/iris20241/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_join
Alternate approach:
in SMP SQL run this:
CREATE PROCEDURE ZPM.terminal() LANGUAGE OBJECTSCRIPT
{
zpm "install webterminal"
quit 1
}and next SELECT ZPM.terminal()
the final slash after terminal is important !
you can verify the installation in SMP System > Security Management > Web Applications
confirmed!
And healthshare is not available as docker image
SO >>> No Docker Demo nor Migration for HealthShare ???? 👹
agreed.
But Switching on/off Journal by process every time you write ^EVENT seems rather uncomfortable.
though it's compact as you know exactly when you need it,
depending on the actual long time use you may of course also
use ^mtemp.EVENT (in IRISTEMP)
instead of a journaled ^EVENT in your actual namespace to escape transactions
did you check TIMESTAMPDIFF ??
there is an example in OEX
https://openexchange.intersystems.com/package/db-migration-using-SQLgateway
It's for PostgreSQL but the difference is only the specific jdbc used
Congratulations to all the winners!
It was a great event and highly useful to follow.
PLEASE!
if you have a different question then PLEASE don't change the original content
this breaks the total information flow.
Existing replies will look like nonsense!
Thanks @Raj Singh great input !
I recently struggled with LOAD DATA and finally dropped it in favor
of an old-fashioned COS import for 2 reasons:
so some exception handling after validation would have been a great feature in my case
to filter out sick records.
The sick CSV is available on GitHub
By SQL priniciple:
any straight name is meant to be a COLUMN of the actual table. eg. Embeddings
but an external HostVariable is designated by an initial : (colon) e.g. : new_embedding_str or :params
This seems to be the deeper cause your problem
in addition I'd suggest to add print(new_embedding_str) to verify its format. (one of my problems.
Furthermore, take a closer look to this example:
iris-vector-search/blob/main/demo/sql_demo.ipynb
Sounds promising:
in my COS example, I had to use pure String parameters like "0.54456,0.6987646,0.I123"
happened by accident, more for reading and debugging
I use a similar setup in my example in OEX ,
Especially with TO_VECTOR() I ran into problems if I didn't add the explicit
type and size of the vector. e.g. TO_VECTOR("..........",,DOUBLE,384)
as model all-MiniLM-L6-v2 produces exactly that type and size:
Don't ask for why. I just used the proposed example
- Thank you @Andrew Wardly:
Your observation is pretty correct. It derives from a late Latin dialect spoken
around Locarno (today Switzerland) around 1600. Eventually starting with a very sharp S.
So the mental link to "Semper Fidelis" is pretty close and matches well.
eventually better to check for longer lists
USER>s x=$lfs("Purple,Black,Yellow,Pink")
USER>s y=$lfs("Red,Green,Orange,Yellow")
USER>f z="y","x" f i=1:1:$ll(@z) i $i(dif($li(@z,i)))
USER>zw dif
dif("Black")=1
dif("Green")=1
dif("Orange")=1
dif("Pink")=1
dif("Purple")=1
dif("Red")=1
dif("Yellow")=2
looping with $o() over dif() allows programmatic check
set x="1,4,6,8,9,12"
while x>0 {write +x,! set x=$piece(x,",",2,*) }x only !
nothing official
set X="1,4,6,8,9,12" for i=1:1:$L(X,",") set Y=$p(X,",",i) write Y,!I just realized that $vector() is a left+right function similar to $li()
Thanks. I just looked for TO_VECTOR but failed at that time
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
covers my needs.
Thanks.
I was looking for this but couldn't detect.
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fvector
It is not on https://docs.intersystems.com/iris20241/csp/docbook
but on https://docs.intersystems.com/irislatest/csp/docbook
which is not covered by Doc Search
experimenting with class %Library.Vector I found an unattractive way:
;; compose JSON array >> v
USER>zw v
v=[($double(.5)),($double(1.5)),($double(2.2000000000000001776))] ; <DYNAMIC ARRAY>
USER>set vec=##class(%Vector).OdbcToLogical(v)
USER>zw vec
vec={"type":"double", "count":3, "length":3, "vector":[$double(.5),$double(1.5),$double(2.2000000000000001776)]} ; <VECTOR>Applying OdbcToLogical was really shocking
Indeed:
I was unable to locate an official docu on new SQL function TO_VECTOR()
Similarly, I found no documentation on how to set a VECTOR Datetype on pure object level
e.g. obj.vectorproperty = ?????? or obj.vectorproperty.set(?????)
I tried a bit with DisplayToLogical but gave up in the end
Routine names starting with %Z or %z go to namespace %SYS automatically:
Though by mapping it to namespace %ALL any routine can be available in any namespace
Hi al!,
Just returning from some private troubleshooting I'm deeply moved and thankful for this feedback.
It's once more a motivation to continue my activities.
Sometimes I'm insisting on small pieces that may bypass general attention.
Though servicing customers - and I understand you all as my customers -
requires to take care also of the small and often annoying pieces.
Special big THANKS to the brilliant team behind the DC+OEX+GM facility.
YOU ARE GREAT. 💐🌷🌺🌸💮🌼🌻
Thank you for publishing my attempts and the clear message:
Symbols used in ObjectScript may fit your needs