You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2010/05/11 13:20:41 UTC
[jira] Created: (DERBY-4650) Predicates in HAVING clause should be
pushed down to restricted VTIs
Predicates in HAVING clause should be pushed down to restricted VTIs
--------------------------------------------------------------------
Key: DERBY-4650
URL: https://issues.apache.org/jira/browse/DERBY-4650
Project: Derby
Issue Type: Improvement
Components: SQL
Affects Versions: 10.6.1.0
Reporter: Knut Anders Hatlen
Priority: Minor
If you perform a query with an aggregate function against a restricted table function, the predicates in the HAVING clause are not pushed down to the table function.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-4650) Predicates in HAVING clause should be
pushed down to restricted VTIs
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-4650:
--------------------------------------
Issue & fix info: [Repro attached]
> Predicates in HAVING clause should be pushed down to restricted VTIs
> --------------------------------------------------------------------
>
> Key: DERBY-4650
> URL: https://issues.apache.org/jira/browse/DERBY-4650
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 10.6.1.0
> Reporter: Knut Anders Hatlen
> Priority: Minor
> Attachments: test.diff
>
>
> If you perform a query with an aggregate function against a restricted table function, the predicates in the HAVING clause are not pushed down to the table function.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-4650) Predicates in HAVING clause should be
pushed down to restricted VTIs
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-4650:
--------------------------------------
Attachment: test.diff
The attached patch adds a test case to RestrictedVTITest that shows that the predicate is not pushed in the following query:
select s_r, count(*) from table(integerList()) t group by s_r having s_r > 1
Only the rows with s_r > 1 have to be returned by the table function integerList, so pushing the predicate could be useful.
Committed the new test case to trunk with revision 943088.
> Predicates in HAVING clause should be pushed down to restricted VTIs
> --------------------------------------------------------------------
>
> Key: DERBY-4650
> URL: https://issues.apache.org/jira/browse/DERBY-4650
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 10.6.1.0
> Reporter: Knut Anders Hatlen
> Priority: Minor
> Attachments: test.diff
>
>
> If you perform a query with an aggregate function against a restricted table function, the predicates in the HAVING clause are not pushed down to the table function.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.