You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (Jira)" <ji...@apache.org> on 2019/12/04 20:09:00 UTC
[jira] [Commented] (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=16988176#comment-16988176 ]
Haisheng Yuan commented on CALCITE-3569:
----------------------------------------
Just curious, How did you find it?
> 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
> Time Spent: 10m
> 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)