Select from a table with Limit expression works, without – fails

For a table t with a custom field c which is dictionary I could use select with limit expression, but simple select failes:

q)r1: `n`m`k!111b;
q)r2: `n`m`k!000b;
q)t: ([]a:1 2; b:10 20; c:(r1; r2));
q)t
a b  c
----------------
1 10 `n`m`k!111b
2 20 `n`m`k!000b
q)select[2] c[`n] from t
x
-
1
0
q)select c[`n] from t
'type
  [0]  select c[`n] from t
              ^

Is it a bug, or am I missing something?

Upd:

Why does select [2] c[`n] from t work here?



Read more here: https://stackoverflow.com/questions/65725846/select-from-a-table-with-limit-expression-works-without-fails

Content Attribution

This content was originally published by egor7 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: