You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2020/10/14 09:06:00 UTC

[jira] [Commented] (FLINK-19638) AvroUnionLogicalSerializerTest class compile error

    [ https://issues.apache.org/jira/browse/FLINK-19638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213755#comment-17213755 ] 

Dawid Wysakowicz commented on FLINK-19638:
------------------------------------------

First of all the 1.11.2 version does not contain this test. It was introduced in 1.11.3. 

Secondly how do you compile this test? In 1.11.3 the default version of Avro was upgraded. Make sure you are regenerating the Avro classes as well.

> AvroUnionLogicalSerializerTest class compile error
> --------------------------------------------------
>
>                 Key: FLINK-19638
>                 URL: https://issues.apache.org/jira/browse/FLINK-19638
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.11.2
>            Reporter: shizhengchao
>            Priority: Minor
>
> the constructor parameter is java.lang.Long of class UnionLogicalType , but the tests is java.time.Instant
> {code:java}
> @Override
> 	protected UnionLogicalType[] getTestData() {
> 		final Random rnd = new Random();
> 		final UnionLogicalType[] data = new UnionLogicalType[20];
> 		for (int i = 0; i < data.length; i++) {
> 			data[i] = new UnionLogicalType(Instant.ofEpochMilli(rnd.nextLong()));
> 		}
> 		return data;
> 	}
> {code}



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