Skip to content

Commit 132c08f

Browse files
fix anormal count of rows
1 parent 76b4a4e commit 132c08f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

resources/evaluate.q

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,15 @@
175175
generateTableColumns[originalType;isAtom;0b;data];
176176
generateColumns[originalType;isAtom;0b;data;$[isAtom;"value";"values"]]
177177
];
178-
: .j.j `count`columns!(quantity; columns)
178+
: .j.j `count`columns!($[
179+
(type columns) = 99h;
180+
$[
181+
(count columns[`values] = 1);
182+
1;
183+
quantity
184+
];
185+
quantity
186+
]; columns)
179187
}[generateTableColumns; generateColumns];
180188
typeOf: {$[0>type x; .axq.i_PRIMCODE neg type x; .axq.i_NONPRIMCODE type x]};
181189
isAtom: {not type[x] within 0 99h};

0 commit comments

Comments
 (0)