Opened 7 days ago

Last modified 7 days ago

#1582 new defect

problem in cast operator

Reported by: pbaumann Owned by: dmisev
Priority: critical Milestone: 9.5
Component: qlparser Version: development
Keywords: Cc:
Complexity: Medium

Description

on http://standards.rasdaman.com -> rasql console I get different results for these two queries:

image>>SELECT encode(
 (char) (((c.0 - c.1) / ((float)c.0 + (float)c.1)) > 0) * 255,
 "PNG") FROM NIR AS c
image>>SELECT encode(
 (char) (((c.0 - c.1) / ((float)c.0 + (float)c.1)) > 0) * 255,
 "PNG") FROM NIR AS c

Obviously, the QL Guide Rule of type adjustment on division does not work correctly (BTW, we had this earlier, and it was fixed earlier).

Change History (2)

comment:1 Changed 7 days ago by pbaumann

yet another result comes with

image>>SELECT encode(
(c.0 - c.1) / (c.0 + c.1),
  "png") from NIR as c

comment:2 Changed 7 days ago by dmisev

The queries in the description are the same, can you fix this?

Note: See TracTickets for help on using tickets.