]
Steven Hawkins resolved TEIID-5821.
-----------------------------------
Resolution: Done
The optimizer already had logic to not be over zealous with function evaluation for query
expressions - so that logic is now run for all commands.
Allow insert expressions that can be pushed to be pushed
--------------------------------------------------------
Key: TEIID-5821
URL:
https://issues.jboss.org/browse/TEIID-5821
Project: Teiid
Issue Type: Enhancement
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Priority: Major
Fix For: 13.0, 12.3.1
Insert expressions are always being pre-evaluated. For example with:
create foreign table t (col object) options (updatable true);
create foreign function foo (param string) returns object;
Executing:
insert into t (col) values (foo('1'))
will be split into two source executions - one to evaluate the function and another to
perform the insert.