Search in sources :

Example 1 with FlinkVersion

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

the class AvroSerializerUpgradeTest 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<>("generic-avro-serializer", flinkVersion, GenericAvroSerializerSetup.class, GenericAvroSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("specific-avro-serializer", flinkVersion, SpecificAvroSerializerSetup.class, SpecificAvroSerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 2 with FlinkVersion

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

the class BasicTypeSerializerUpgradeTest 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<>("big-dec-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.BigDecSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.BigDecSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("big-int-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.BigIntSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.BigIntSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("boolean-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.BooleanSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.BooleanSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("boolean-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.BooleanValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.BooleanValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("byte-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.ByteSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.ByteSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("byte-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.ByteValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.ByteValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("char-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.CharSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.CharSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("char-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.CharValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.CharValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("date-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.DateSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.DateSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("double-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.DoubleSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.DoubleSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("double-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.DoubleValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.DoubleValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("float-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.FloatSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.FloatSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("float-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.FloatValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.FloatValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("int-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.IntSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.IntSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("int-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.IntValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.IntValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("long-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.LongSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.LongSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("long-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.LongValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.LongValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("null-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.NullValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.NullValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("short-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.ShortSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.ShortSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("short-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.ShortValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.ShortValueSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("sql-date-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.SqlDateSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.SqlDateSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("sql-time-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.SqlTimeSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.SqlTimeSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("sql-timestamp-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.SqlTimestampSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.SqlTimestampSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("string-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.StringSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.StringSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("string-value-serializer", flinkVersion, BasicTypeSerializerUpgradeTestSpecifications.StringValueSerializerSetup.class, BasicTypeSerializerUpgradeTestSpecifications.StringValueSerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 3 with FlinkVersion

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

the class EnumSerializerUpgradeTest 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<>(SPEC_NAME, flinkVersion, EnumSerializerSetup.class, EnumSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>(SPEC_NAME + "reconfig", flinkVersion, EnumSerializerReconfigSetup.class, EnumSerializerReconfigVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 4 with FlinkVersion

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

the class NFASerializerUpgradeTest 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<>("event-id-serializer", flinkVersion, EventIdSerializerSetup.class, EventIdSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("node-id-serializer", flinkVersion, NodeIdSerializerSetup.class, NodeIdSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("dewey-number-serializer", flinkVersion, DeweyNumberSerializerSetup.class, DeweyNumberSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("shared-buffer-edge-serializer", flinkVersion, SharedBufferEdgeSerializerSetup.class, SharedBufferEdgeSerializerVerifier.class));
        testSpecifications.add(new TestSpecification<>("nfa-state-serializer", flinkVersion, NFAStateSerializerSetup.class, NFAStateSerializerVerifier.class));
    }
    return testSpecifications;
}
Also used : ArrayList(java.util.ArrayList) FlinkVersion(org.apache.flink.FlinkVersion)

Example 5 with FlinkVersion

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

the class PojoSerializerUpgradeTest method testSpecifications.

@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
    ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
    // for PojoSerializer we also test against 1.7, 1.8, and 1.9 because we have snapshots
    // for this which go beyond what we have for the usual subclasses of
    // TypeSerializerUpgradeTestBase. We don't have snapshot data for 1.10, but the
    // PojoSerializer has not been changed in quite a while anyways.
    List<FlinkVersion> testVersions = new ArrayList<>();
    testVersions.add(FlinkVersion.v1_7);
    testVersions.add(FlinkVersion.v1_8);
    testVersions.add(FlinkVersion.v1_9);
    testVersions.addAll(MIGRATION_VERSIONS);
    for (FlinkVersion flinkVersion : testVersions) {
        testSpecifications.add(new TestSpecification<>("pojo-serializer-identical-schema", flinkVersion, PojoSerializerUpgradeTestSpecifications.IdenticalPojoSchemaSetup.class, PojoSerializerUpgradeTestSpecifications.IdenticalPojoSchemaVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-modified-schema", flinkVersion, PojoSerializerUpgradeTestSpecifications.ModifiedPojoSchemaSetup.class, PojoSerializerUpgradeTestSpecifications.ModifiedPojoSchemaVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-different-field-types", flinkVersion, PojoSerializerUpgradeTestSpecifications.DifferentFieldTypePojoSchemaSetup.class, PojoSerializerUpgradeTestSpecifications.DifferentFieldTypePojoSchemaVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-modified-schema-in-registered-subclass", flinkVersion, PojoSerializerUpgradeTestSpecifications.ModifiedRegisteredPojoSubclassSchemaSetup.class, PojoSerializerUpgradeTestSpecifications.ModifiedRegisteredPojoSubclassSchemaVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-different-field-types-in-registered-subclass", flinkVersion, PojoSerializerUpgradeTestSpecifications.DifferentFieldTypePojoSubclassSchemaSetup.class, PojoSerializerUpgradeTestSpecifications.DifferentFieldTypePojoSubclassSchemaVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-non-registered-subclass", flinkVersion, PojoSerializerUpgradeTestSpecifications.NonRegisteredPojoSubclassSetup.class, PojoSerializerUpgradeTestSpecifications.NonRegisteredPojoSubclassVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-different-subclass-registration-order", flinkVersion, PojoSerializerUpgradeTestSpecifications.DifferentPojoSubclassRegistrationOrderSetup.class, PojoSerializerUpgradeTestSpecifications.DifferentPojoSubclassRegistrationOrderVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-missing-registered-subclass", flinkVersion, PojoSerializerUpgradeTestSpecifications.MissingRegisteredPojoSubclassSetup.class, PojoSerializerUpgradeTestSpecifications.MissingRegisteredPojoSubclassVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-new-registered-subclass", flinkVersion, PojoSerializerUpgradeTestSpecifications.NewRegisteredPojoSubclassSetup.class, PojoSerializerUpgradeTestSpecifications.NewRegisteredPojoSubclassVerifier.class));
        testSpecifications.add(new TestSpecification<>("pojo-serializer-with-new-and-missing-registered-subclasses", flinkVersion, PojoSerializerUpgradeTestSpecifications.NewAndMissingRegisteredPojoSubclassesSetup.class, PojoSerializerUpgradeTestSpecifications.NewAndMissingRegisteredPojoSubclassesVerifier.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