Opened 10 years ago

Last modified 10 years ago

#591 closed defect

Mapping a cast to boolean to RasQL — at Initial Version

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

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 (eobscov)
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 (0)

Note: See TracTickets for help on using tickets.