kdb-studio
kdb-studio copied to clipboard
error hint for 'limit is out of date
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
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.
how precisely can you guess the q version from the ipc handshake?
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.