q lang - How to apply max function for each row in KDB? -


i want ensure values in column x no smaller 0.5, do:

update x:max (x 0.5) mytable 

but gives error (in studio kdb+):

an error occurred during execution of query. server sent response: type studio hint: possibly error refers wrong type, e.g `a+1 

what's wrong?

you can try using |

q)update x|0.5 mytable 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -