condense count
select condense + over x in sdom(a) where a[x] using 1 from mr as a — for cell count is not correct, get from ql-guide 9.6
should be
select condense + over x in sdom(a) where (bool)a[x] using 1 from mr as a
but if a[x]=0 the result is not correct either,
so
select condense + over x in sdom(a) where (bool)((bool)a[x]+1) using 1 from mr as a
could be a solution
Change History
(6)
Component: |
qlparser → manuals_and_examples
|
Owner: |
set to Peter Baumann
|
Owner: |
changed from Peter Baumann to Jinsongdi Yu
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
hm, count_cells() should count all non-zero cells, right?
So this should do:
or
Please let me know what to write.