Opened 7 years ago

Closed 6 years ago

#1582 closed defect (invalid)

problem in cast operator

Reported by: Peter Baumann Owned by: Dimitar Misev
Priority: major Milestone: Future
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 (5)

comment:1 by Peter Baumann, 7 years ago

yet another result comes with

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

comment:2 by Dimitar Misev, 7 years ago

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

comment:3 by Dimitar Misev, 6 years ago

Priority: criticalmajor

comment:4 by Vlad Merticariu, 6 years ago

Milestone: 9.5Future

comment:5 by Dimitar Misev, 6 years ago

Resolution: invalid
Status: newclosed

I will close it as it very unclear what this ticket is about.

Note: See TracTickets for help on using tickets.