flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-5187) Create analog of Row in core
Date Mon, 12 Dec 2016 14:06:59 GMT

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

ASF GitHub Bot commented on FLINK-5187:
---------------------------------------

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2968#discussion_r91949754
  
    --- Diff: flink-core/src/test/java/org/apache/flink/api/common/typeutils/base/RowComparatorWithManyFieldsTests.java
---
    @@ -0,0 +1,103 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.flink.api.common.typeutils.base;
    +
    +import org.apache.flink.api.common.ExecutionConfig;
    +import org.apache.flink.api.common.typeinfo.BasicTypeInfo;
    +import org.apache.flink.api.common.typeinfo.TypeInformation;
    +import org.apache.flink.api.common.typeutils.ComparatorTestBase;
    +import org.apache.flink.api.common.typeutils.TypeComparator;
    +import org.apache.flink.api.common.typeutils.TypeSerializer;
    +import org.apache.flink.api.java.typeutils.RowTypeInfo;
    +import org.apache.flink.api.java.typeutils.runtime.RowComparator;
    +import org.apache.flink.types.Row;
    +import org.junit.Before;
    +
    +import static org.apache.flink.util.Preconditions.checkArgument;
    +import static org.apache.flink.util.Preconditions.checkNotNull;
    +import static org.junit.Assert.assertEquals;
    +
    +/**
    + * Tests {@link RowComparator} for wide rows.
    + */
    +public class RowComparatorWithManyFieldsTests extends ComparatorTestBase<Row> {
    +
    +	private final int numberOfFields = 10;
    +	private RowTypeInfo typeInfo;
    +	private final Row[] data = new Row[]{
    +		createRow(null, "b0", "c0", "d0", "e0", "f0", "g0", "h0", "i0", "j0"),
    +		createRow("a1", "b1", "c1", "d1", "e1", "f1", "g1", "h1", "i1", "j1"),
    +		createRow("a2", "b2", "c2", "d2", "e2", "f2", "g2", "h2", "i2", "j2"),
    +		createRow("a3", "b3", "c3", "d3", "e3", "f3", "g3", "h3", "i3", "j3")
    +	};
    +
    +	@Before
    --- End diff --
    
    Can be `@BeforeClass`


> Create analog of Row in core
> ----------------------------
>
>                 Key: FLINK-5187
>                 URL: https://issues.apache.org/jira/browse/FLINK-5187
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Core, Table API & SQL
>            Reporter: Anton Solovev
>            Assignee: Jark Wu
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message