Opened 4 years ago

Closed 4 years ago

#673 closed defect (fixed)

CSV conversion for complex numbers

Reported by: vliaukevich Owned by: vliaukevich
Priority: major Milestone: 9.0.x
Component: conversion Version: development
Keywords: Cc: pcampalani
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 Changed 4 years ago by vliaukevich

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 4 years ago by dmisev

  • Cc pcampalani added
  • Milestone set to 9.0.x
  • Resolution fixed deleted
  • Status changed from closed to reopened

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 Changed 4 years ago by vliaukevich

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.