Home › Forums › kdb+ › Type error from Q chk › Re: Type error from Q chk
-
As a simple starting point before investigating the data, type errors in Q suggest that you have provided the wrong datatype to a function. In the case of .Q.chk make sure you’re passing in a filepath as per the documentation which is a symbol type. If you could share the line of code you’re calling the .Q.chk in and the argument you’re providing, as well as an ls on the directory you’re performing the check on, that would help in isolating the problem. An example call of .Q.chk is:
.Q.chk[`:/path/to/dir]
N.B. You will get a type error if you call .Q.chk with a string:
q).Q.chk[“/path/to/dir”]
‘type [0]
.Q.chk[“/path/to/dir”]
Hope this helps!