You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2020/11/23 12:49:00 UTC

[jira] [Updated] (FLINK-20271) Fix ArrayIndexOutOfBounds for Re

     [ https://issues.apache.org/jira/browse/FLINK-20271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jark Wu updated FLINK-20271:
----------------------------
    Summary: Fix ArrayIndexOutOfBounds for Re  (was: ArrayIndexOutOfBounds When using Rank)

> Fix ArrayIndexOutOfBounds for Re
> --------------------------------
>
>                 Key: FLINK-20271
>                 URL: https://issues.apache.org/jira/browse/FLINK-20271
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.11.0, 1.12.0
>            Reporter: Shengkai Fang
>            Assignee: Jark Wu
>            Priority: Major
>             Fix For: 1.12.0
>
>
> We can get the bug by adding the case into the UnitTest {{RetractableTopNFunctionTest}}
> {code:java}
> // Some comments here
> 	@Test
> 	public void testCornerCase() throws Exception {
> 		AbstractTopNFunction func = createFunction(RankType.ROW_NUMBER, new ConstantRankRange(1, 3), false,
> 				false);
> 		OneInputStreamOperatorTestHarness<RowData, RowData> testHarness = createTestHarness(func);
> 		testHarness.open();
> 		testHarness.processElement(insertRecord("a", 1L, 1));
> 		testHarness.processElement(insertRecord("a", 2L, 2));
> 		testHarness.processElement(insertRecord("a", 3L, 2));
> 		testHarness.processElement(insertRecord("a", 4L, 2));
> 		testHarness.processElement(insertRecord("a", 5L, 3));
> 		testHarness.processElement(insertRecord("a", 6L, 4));
> 		testHarness.processElement(updateBeforeRecord("a", 2L, 2));
> 		testHarness.close();
> 	}
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)