You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunwei Lei (Jira)" <ji...@apache.org> on 2019/12/05 02:16:00 UTC
[jira] [Comment Edited] (CALCITE-3569) IndexOutOfBoundsException
when pushing simplifed filter to view
[ https://issues.apache.org/jira/browse/CALCITE-3569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988385#comment-16988385 ]
Chunwei Lei edited comment on CALCITE-3569 at 12/5/19 2:15 AM:
---------------------------------------------------------------
Fixed in [11d7916e46509ef7bb0c0632667ec61f5c1008b1|https://github.com/apache/calcite/commit/11d7916e46509ef7bb0c0632667ec61f5c1008b1].
was (Author: chunwei lei):
Fixed in [11d7916e46509ef7bb0c0632667ec61f5c1008b1|https://github.com/apache/calcite/commit/11d7916e46509ef7bb0c0632667ec61f5c1008b1]
> IndexOutOfBoundsException when pushing simplifed filter to view
> ---------------------------------------------------------------
>
> Key: CALCITE-3569
> URL: https://issues.apache.org/jira/browse/CALCITE-3569
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.21.0
> Reporter: Chunwei Lei
> Assignee: Chunwei Lei
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.22.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> It can be reproduced by the following test.
> {code:java}
> // MaterializationTest.java
> @Test public void testAggregate7() {
> try (TryThreadLocal.Memo ignored = Prepare.THREAD_TRIM.push(true)) {
> MaterializationService.setThreadLocal();
> CalciteAssert.that()
> .withMaterializations(
> HR_FKUK_MODEL,
> "m0",
> "select 11 as \"empno\", 22 as \"sal\", count(*) from \"emps\" group by 11, 22")
> .query(
> "select * from\n"
> + "(select 11 as \"empno\", 22 as \"sal\", count(*)\n"
> + "from \"emps\" group by 11, 22) tmp\n"
> + "where \"sal\" = 33")
> .enableMaterializations(true)
> .explainContains("EnumerableValues(tuples=[[]])");
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)