You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've noticed that function calls in from clauses are not supported. One of the use cases that we were looking at are bulk inserts:
insert into employee_team
select :employeeid, teamid
from unnest(:teamids::int[]) as teamid
I've tried adding it to sqltyper, but it's pretty difficult. Adding it to the TableExpression and the parser was not so hard, but fitting it into the inference phase is proving harder. Specifically, getSourceColumnsForTableExpr expects SourceColumn[] to be returned. When a function call is in the from clause, this function will also be returning VirtualField[]. Would it be the right way to change this function to be returning InferM.inferM<(SourceColumn | VirtualField)[]>?
The text was updated successfully, but these errors were encountered:
We've noticed that function calls in from clauses are not supported. One of the use cases that we were looking at are bulk inserts:
I've tried adding it to sqltyper, but it's pretty difficult. Adding it to the TableExpression and the parser was not so hard, but fitting it into the inference phase is proving harder. Specifically, getSourceColumnsForTableExpr expects
SourceColumn[]
to be returned. When a function call is in the from clause, this function will also be returningVirtualField[]
. Would it be the right way to change this function to be returningInferM.inferM<(SourceColumn | VirtualField)[]>
?The text was updated successfully, but these errors were encountered: