[JBoss JIRA] (TEIID-3703) Cannot make references to view columns in view update
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3703?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-3703.
-----------------------------------
Resolution: Done
Updated the evaluator to have a reference to the current tuple/elements.
> Cannot make references to view columns in view update
> -----------------------------------------------------
>
> Key: TEIID-3703
> URL: https://issues.jboss.org/browse/TEIID-3703
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.7
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.12
>
>
> Issuing an update against an updatable view with an instead of trigger that uses a view column in a set expression will fail at runtime saying that a reference to the value cannot be found.
> for example with a gx view: update gx set x = x || 'a' where y = 2
> would result in:
> org.teiid.core.TeiidComponentException: TEIID30328 Unable to evaluate x: No value was available
> at org.teiid.query.util.CommandContext.getFromContext(CommandContext.java:501)
> at org.teiid.query.eval.Evaluator.internalEvaluate(Evaluator.java:696)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (TEIID-3703) Cannot make references to view columns in view update
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-3703:
-------------------------------------
Summary: Cannot make references to view columns in view update
Key: TEIID-3703
URL: https://issues.jboss.org/browse/TEIID-3703
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.12
Issuing an update against an updatable view with an instead of trigger that uses a view column in a set expression will fail at runtime saying that a reference to the value cannot be found.
for example with a gx view: update gx set x = x || 'a' where y = 2
would result in:
org.teiid.core.TeiidComponentException: TEIID30328 Unable to evaluate x: No value was available
at org.teiid.query.util.CommandContext.getFromContext(CommandContext.java:501)
at org.teiid.query.eval.Evaluator.internalEvaluate(Evaluator.java:696)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (TEIID-3671) filter on child table not working
by Johnathon Lee (JIRA)
[ https://issues.jboss.org/browse/TEIID-3671?page=com.atlassian.jira.plugin... ]
Johnathon Lee reassigned TEIID-3671:
------------------------------------
Assignee: Johnathon Lee (was: Steven Hawkins)
> filter on child table not working
> ---------------------------------
>
> Key: TEIID-3671
> URL: https://issues.jboss.org/browse/TEIID-3671
> Project: Teiid
> Issue Type: Bug
> Components: OData
> Reporter: Prashanthi Kairuppala
> Assignee: Johnathon Lee
> Priority: Critical
> Fix For: 8.12, 8.11.4
>
> Attachments: parent_childTables.PNG
>
>
>
> Please find the screenshot attached which has id as a foreign key. when i give the url - //localhost:8080/odata/testVDB/sales('13')/sales_uk?$format=json, i get the results from sales_uk table which are having id=13.
>
> Now i am trying to apply a filter on this url, i am supposed to get results which are having id=13 and satisfy the filter condition, but this url blindly returns me data from sales_uk table which satisfy the filter condition. URL- //localhost:8080/odata/testVDB/sales('13')/sales_uk?$format=json&$filter=DISCOUNT eq '22'
>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (TEIID-3702) dependency and validation logic incorrect
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-3702:
-------------------------------------
Summary: dependency and validation logic incorrect
Key: TEIID-3702
URL: https://issues.jboss.org/browse/TEIID-3702
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.9
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.12, 8.11.4
With TEIID-3042 validation of triggers was added, but does not properly account for the parsing/resolving - however it is only being run in the case where there are no columns defined on the view and they are instead inferred from the definition.
Similarly dependencies are only being determined on view with no columns defined.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months