d = fetch(q,‘select from tab where item=`banana’);
Got an error back:
Error using kx/fetch (line 64)
Java exception occurred:
c$KException: type
at c.k(c.java:581)
at c.k(c.java:590)
at c.k(c.java:593)
Tried to fix it by compiling jdbc.class to jdbc.jar and addind to the javaclasspath, but that did not help. javaaddpath(‘/home/ALV/Downloads/jdbc.jar’);
How can I run a query from MATLAB without getting the error?
as a tip, when faced with these problems, remove each column from the result set to try to identify the problem column. e.g.
d = fetch(q,‘select item,amount,city from tab where item=`banana’);
also include the version/release of matlab and kdb+ which you are using. If you happen to identify that the time column is the problem, try changing its type, e.g.
d = fetch(q,‘select time:time$time,item,amount,city from tab where item=banana’);