Opened 10 years ago

Closed 6 years ago

#542 closed enhancement (fixed)

Function calls in complex types constructors

Reported by: Veranika Liaukevich Owned by: Dimitar Misev
Priority: major Milestone: 9.7
Component: qlparser Version: development
Keywords: Cc: Peter Baumann, Veranika Liaukevich
Complexity: Medium

Description

Allow function calls inside complex types constructors (structures, complex numbers), right now only numerical constants are allowed. One of the possible usages is creating complex number constants:

select complex(cos(2),sin(2)) 
from data

The desired output:

Result element 1: (-0.416147,0.909297)

Also it could be useful to allow access to collection data as well:

select complex(data, data) 
from data

Change History (8)

comment:1 by Veranika Liaukevich, 10 years ago

Cc: Peter Baumann Veranika Liaukevich added
Owner: changed from Dimitar Misev to Veranika Liaukevich
Status: newassigned

comment:2 by Dimitar Misev, 10 years ago

Resolution: fixed
Status: assignedclosed

in reply to:  2 comment:3 by Veranika Liaukevich, 10 years ago

Resolution: fixed
Status: closedreopened

Replying to dmisev:

Closing, changeset:0ff494fad8cb484d4b2c00c7ec784b6b363a5ae2

Wait, not so fast :) It's not fully done yet. It works now for complex numbers, but not for structures.

comment:4 by Dimitar Misev, 9 years ago

Milestone: 9.1

comment:5 by Dimitar Misev, 9 years ago

Component: undecidedqlparser

comment:6 by Dimitar Misev, 8 years ago

Milestone: 9.1Future

comment:7 by Peter Baumann, 8 years ago

Owner: changed from Veranika Liaukevich to Dimitar Misev
Status: reopenedassigned

comment:8 by Dimitar Misev, 6 years ago

Milestone: Future9.7
Resolution: fixed
Status: assignedclosed

Fixed for struct types as well now.

Note: See TracTickets for help on using tickets.