Github user pnowojski commented on a diff in the pull request:
https://github.com/apache/flink/pull/6264#discussion_r201030536
--- Diff:
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/sources/TableSourceFactoryServiceTest.scala
---
@@ -52,21 +57,33 @@ class TableSourceFactoryServiceTest {
@Test(expected = classOf[ValidationException])
def testUnsupportedProperty(): Unit = {
val props = properties()
+ props.put(CONNECTOR_TYPE, "fixed")
+ props.put(FORMAT_TYPE, "test")
props.put("format.path_new", "/new/path")
TableSourceFactoryService.findAndCreateTableSource(props.toMap)
}
@Test(expected = classOf[TableException])
def testFailingFactory(): Unit = {
val props = properties()
+ props.put(CONNECTOR_TYPE, "fixed")
+ props.put(FORMAT_TYPE, "test")
props.put("failing", "true")
TableSourceFactoryService.findAndCreateTableSource(props.toMap)
}
+ @Test
+ def testWildcardFormat(): Unit = {
+ val props = properties()
+ props.put(CONNECTOR_TYPE, "wildcard")
+ props.put(FORMAT_TYPE, "test")
+ props.put("format.type", "not-test")
+ props.put("format.not-test-property", "wildcard-property")
+ TableSourceFactoryService.findAndCreateTableSource(props.toMap)
--- End diff --
assert what was found?
---