"wrd" is an internal MonetDB type.
Which SQL type did you use in you your create table statement?
I.e., what does
\d x07
say about the type of column rx_cso_num ?
Or did you create the table as result of a SQL query (as you suggest?)?
Then, the clause(s) of the query that determine column rx_cso_num as well as
the (SQL) types of the related columns of the source table (if any) would be
useful.
Also, could you run the failing queries in mclient prefixed with "explain"
and "trace" (i.e., run it twice), and send us the output (in case of
"trace", only the second result set is of interest).