Search in sources :

Example 11 with FlinkVersion

use of org.apache.flink.FlinkVersion in project flink by apache.

the class CompositeTypeSerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
        testSpecifications.add(new TestSpecification<>("either-serializer", flinkVersion, EitherSerializerSetup.class, EitherSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("generic-array-serializer", flinkVersion, GenericArraySerializerSetup.class, GenericArraySerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 12 with FlinkVersion

use of org.apache.flink.FlinkVersion in project flink by apache.

the class ValueArraySerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
        testSpecifications.add(new TestSpecification<>("byte-value-array-serializer", flinkVersion, ByteValueArraySerializerSetup.class, ByteValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("char-value-array-serializer", flinkVersion, CharValueArraySerializerSetup.class, CharValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("double-value-array-serializer", flinkVersion, DoubleValueArraySerializerSetup.class, DoubleValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("float-value-array-serializer", flinkVersion, FloatValueArraySerializerSetup.class, FloatValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("int-value-array-serializer", flinkVersion, IntValueArraySerializerSetup.class, IntValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("long-value-array-serializer", flinkVersion, LongValueArraySerializerSetup.class, LongValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("null-value-array-serializer", flinkVersion, NullValueArraySerializerSetup.class, NullValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("short-value-array-serializer", flinkVersion, ShortValueArraySerializerSetup.class, ShortValueArraySerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("string-value-array-serializer", flinkVersion, StringValueArraySerializerSetup.class, StringValueArraySerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 13 with FlinkVersion

use of org.apache.flink.FlinkVersion in project flink by apache.

the class NullableSerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
        testSpecifications.add(new TestSpecification<>("nullable-padded-serializer", flinkVersion, NullablePaddedSerializerSetup.class, NullablePaddedSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("nullable-not-padded-serializer", flinkVersion, NullableNotPaddedSerializerSetup.class, NullableNotPaddedSerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 14 with FlinkVersion

use of org.apache.flink.FlinkVersion in project flink by apache.

the class PrimitiveArraySerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
        testSpecifications.add(new TestSpecification<>("boolean-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveBooleanArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveBooleanArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("byte-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveByteArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveByteArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("char-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveCharArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveCharArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("double-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveDoubleArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveDoubleArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("float-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveFloatArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveFloatArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("int-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveIntArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveIntArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("long-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveLongArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveLongArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("short-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveShortArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveShortArrayVerifier.class));
        testSpecifications.add(new TestSpecification<>("string-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveStringArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveStringArrayVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 15 with FlinkVersion

use of org.apache.flink.FlinkVersion in project flink by apache.

the class KryoSerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
        testSpecifications.add(new TestSpecification<>("kryo-type-serializer-empty-config", flinkVersion, KryoTypeSerializerEmptyConfigSetup.class, KryoTypeSerializerEmptyConfigVerifier.class));
        testSpecifications.add(new TestSpecification<>("kryo-type-serializer-unrelated-config-after-restore", flinkVersion, KryoTypeSerializerEmptyConfigSetup.class, KryoTypeSerializerWithUnrelatedConfigVerifier.class));
        testSpecifications.add(new TestSpecification<>("kryo-type-serializer-changed-registration-order", flinkVersion, KryoTypeSerializerChangedRegistrationOrderSetup.class, KryoTypeSerializerChangedRegistrationOrderVerifier.class));
        testSpecifications.add(new TestSpecification<>("kryo-custom-type-serializer-changed-registration-order", flinkVersion, KryoCustomTypeSerializerChangedRegistrationOrderSetup.class, KryoCustomTypeSerializerChangedRegistrationOrderVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Aggregations

ArrayList (java.util.ArrayList)15 FlinkVersion (org.apache.flink.FlinkVersion)15 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1 Internal (org.apache.flink.annotation.Internal)1 Sets (org.apache.flink.shaded.guava30.com.google.common.collect.Sets)1 JsonCreator (org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonCreator)1 JsonProperty (org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonProperty)1 TableException (org.apache.flink.table.api.TableException)1 ExecEdge (org.apache.flink.table.planner.plan.nodes.exec.ExecEdge)1 ExecNode (org.apache.flink.table.planner.plan.nodes.exec.ExecNode)1 ExecNodeGraph (org.apache.flink.table.planner.plan.nodes.exec.ExecNodeGraph)1 ExecNodeVisitor (org.apache.flink.table.planner.plan.nodes.exec.visitor.ExecNodeVisitor)1 ExecNodeVisitorImpl (org.apache.flink.table.planner.plan.nodes.exec.visitor.ExecNodeVisitorImpl)1 Preconditions.checkArgument (org.apache.flink.util.Preconditions.checkArgument)1