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

    https://github.com/apache/flink/pull/6264#discussion_r201021369
  
    --- Diff: 
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/formats/utils/TestAmbiguousTableFormatFactory.scala
 ---
    @@ -16,22 +16,32 @@
      * limitations under the License.
      */
     
    -package org.apache.flink.streaming.connectors.kafka;
    +package org.apache.flink.table.formats.utils
     
    -import static 
org.apache.flink.table.descriptors.KafkaValidator.CONNECTOR_VERSION_VALUE_010;
    +import java.util
    +
    +import org.apache.flink.table.formats.TableFormatFactory
    +import org.apache.flink.types.Row
     
     /**
    - * Tests for {@link Kafka010AvroTableSourceFactory}.
    - */
    -public class Kafka010AvroTableSourceFactoryTest extends 
KafkaAvroTableSourceFactoryTestBase {
    +  * Table format factory for testing.
    +  */
    +class TestAmbiguousTableFormatFactory extends TableFormatFactory[Row] {
    --- End diff --
    
    shouldn't this extend or reuse `TestTableFormatFactory`? They are now 
interconnected implicitly - you assume some dependencies between those two 
classes - and this can veerryy easily brake (silently) if someone modifies only 
one of those classes forgetting about the other. (silently - tests might still 
pass while they will not be testing what you intended anymore).


---

Reply via email to