kdb-studio icon indicating copy to clipboard operation
kdb-studio copied to clipboard

error hint for 'limit is out of date

Open adavies42 opened this issue 2 years ago • 3 comments

the remote end throwing 'limit results in the following being printed:

An error occurred during execution of the query.
The server sent the response:
limit
Studio Hint: Possibly this error refers to tried to generate a list longer than 2,000,000,000

this is out of date for modern q; for current meanings, see https://code.kx.com/q/basics/errors/#runtime-errors

adavies42 avatar Aug 28 '23 17:08 adavies42

How about the other errors that changed meanings between versions like branch or locals?

If the user is still connecting to a 2.x instance, this can be confusing because they see that the error message says "110 max" but they are getting it for a function with only 25 locals.

We could complicate things by requesting .z.K from the server, and adjusting the error hints depending on what version is returned, but that assumes that the .z.K query is not blocked by a security check.

gyorokpeter avatar Sep 20 '23 10:09 gyorokpeter

how precisely can you guess the q version from the ipc handshake?

adavies42 avatar Nov 11 '24 14:11 adavies42

The protocol version puts a lower bound on the q version, as older versions don't support the features introduced in the new versions. However the Java API can't handle protocol versions >3.

gyorokpeter avatar Mar 10 '25 14:03 gyorokpeter