Opened 4 years ago

Last modified 21 months ago

#542 assigned enhancement

Function calls in complex types constructors

Reported by: vliaukevich Owned by: dmisev
Priority: major Milestone: Future
Component: qlparser Version: development
Keywords: Cc: pbaumann, vliaukevich
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 (7)

comment:1 Changed 4 years ago by vliaukevich

  • Cc pbaumann vliaukevich added
  • Owner changed from dmisev to vliaukevich
  • Status changed from new to assigned

comment:2 follow-up: Changed 4 years ago by dmisev

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

comment:3 in reply to: ↑ 2 Changed 4 years ago by vliaukevich

  • Resolution fixed deleted
  • Status changed from closed to reopened

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 Changed 3 years ago by dmisev

  • Milestone set to 9.1

comment:5 Changed 3 years ago by dmisev

  • Component changed from undecided to qlparser

comment:6 Changed 21 months ago by dmisev

  • Milestone changed from 9.1 to Future

comment:7 Changed 21 months ago by pbaumann

  • Owner changed from vliaukevich to dmisev
  • Status changed from reopened to assigned
Note: See TracTickets for help on using tickets.