Opened 10 years ago

Closed 10 years ago

#673 closed defect (fixed)

CSV conversion for complex numbers

Reported by: Veranika Liaukevich Owned by: Veranika Liaukevich
Priority: major Milestone: 9.0.x
Component: conversion Version: development
Keywords: Cc: Piero Campalani
Complexity: Medium

Description

CSV conversion doesn't work for complex numbers.

$ rasql -q 'select csv(a) from complexdata as a' --out string
rasql: rasdaman query tool v1.0, rasdaman v9.0.0-g9ab1f69 -- generated on 25.02.2014 22:01:33.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):
  Result object 1: {0,0}
rasql done.

when the actual data is

 {(1, 2),(2, 3)}

Change History (3)

comment:1 by Veranika Liaukevich, 10 years ago

Resolution: fixed
Status: newclosed

comment:2 by Dimitar Misev, 10 years ago

Cc: Piero Campalani added
Milestone: 9.0.x
Resolution: fixed
Status: closedreopened

The patch has broken a few tests in the systemtest so reopening the ticket. In particular in testcases_services/test_wcps these are now failing:

----------------------------------------------------------------------
28-construct_histogram_range_condition.test
for c in ( mr )
return
encode( coverage histogram
        over     $n x(-20:20)
        values   condense +
                        over     $px x(10:20),
                                 $py y(10:20)
                        using    c[ i($px), j($py) ]>$n - 1 and c[ i($px), j($py) ]<=$n,
        "csv" )
----------------------------------------------------------------------
76-switch_log.test
for c in mr return encode(switch case c>0 return log(c) default return (char)0,"csv")
----------------------------------------------------------------------
78-pow_operation_float.test
for c in (mr) return encode( pow( c[i(100:110),j(100:110)], 1.85 ), "csv" )

The 28-* test translates to rasql

rasql -q 'select csv(marray i_i in [-20:20] values condense + over i_j in [10:20, 10:20] using (((((c) [i_j[0],i_j[1]])>((i_i[0])-(1))))and((((c) [i_j[0],i_j[1]])<=(i_i[0]))))) from mr AS c' --out string

comment:3 by Veranika Liaukevich, 10 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.