Opened 8 years ago

Closed 4 years ago

#16 closed defect (fixed)

condense count

Reported by: j.yu@… Owned by: j.yu
Priority: minor Milestone: 8.4
Component: manuals_and_examples Version: 8.0
Keywords: Cc:
Complexity:

Description

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)

comment:1 Changed 7 years ago by pbaumann

  • Priority changed from major to minor

comment:2 Changed 5 years ago by dmisev

  • Component changed from qlparser to manuals_and_examples
  • Owner set to pbaumann

comment:3 Changed 4 years ago by pbaumann

  • Owner changed from pbaumann to j.yu
  • Status changed from new to assigned

comment:4 Changed 4 years ago by pbaumann

  • Milestone changed from Future to 8.4

hm, count_cells() should count all non-zero cells, right?
So this should do:

select condense + over x in sdom(a) where a[x]!=0 using 1
from mr as a

or

select condense + over x in sdom(a) using a[x]!=0
from mr as a

Please let me know what to write.

comment:5 Changed 4 years ago by dmisev

First one is right, the second results in a boolean (true)..

comment:6 Changed 4 years ago by pbaumann

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed with documentation 8.4.

Note: See TracTickets for help on using tickets.