LadyForest commented on a change in pull request #15005: URL: https://github.com/apache/flink/pull/15005#discussion_r583425121
########## File path: flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/api/TableEnvironmentTest.scala ########## @@ -592,6 +593,66 @@ class TableEnvironmentTest { tableEnv.executeSql("UNLOAD MODULE dummy") } + @Test + def testExecuteSqlWithUseModules(): Unit = { + tableEnv.executeSql("LOAD MODULE dummy") + assert(tableEnv.listModules().sameElements(Array[String]("core", "dummy"))) Review comment: +1 to check order. While JUnit `Assert#assertArrayEquals` does not accept string arrays. So I guess either we cast to object or compare array's element one by one. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org