Opened 10 years ago

Last modified 10 years ago

#591 closed defect

Mapping a cast to boolean to RasQL — at Version 2

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: critical Milestone: 9.0.x
Component: petascope Version: development
Keywords: boolean bool cast Cc: mantovani@…, Vlad Merticariu, Alex Dumitru, Peter Baumann
Complexity: Easy

Description (last modified by Piero Campalani)

Petascope does not map the boolean cast operation to the correct bool equivalent in RasQL. It leaves the boolean keyword instead.

#WCPS
for c in (eobstest)
return encode (
  (boolean) 0
, "csv")

#RasQL
select csv((boolean)(0)) from eobstest AS c

The correct translation is:

#RasQL
--- select csv((boolean)(0)) from eobstest AS c
+++ select csv((bool)(0))    from eobstest AS c

Change History (2)

comment:1 by Piero Campalani, 10 years ago

The correct resolution of a boolean expression is then dependent on the resolution of #592.

comment:2 by Piero Campalani, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.