twalthr commented on a change in pull request #8764:
[FLINK-12798][table-planner][table-api-java] Port TableEnvironment to
table-api-java module
URL: https://github.com/apache/flink/pull/8764#discussion_r296168928
##########
File path:
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/utils/TableTestBase.scala
##########
@@ -213,9 +224,14 @@ object TableTestUtil {
}
def streamTableNode(table: Table): String = {
- val dataStreamTable =
table.getQueryOperation.asInstanceOf[DataStreamQueryOperation[_]]
- s"DataStreamScan(id=[${dataStreamTable.getDataStream.getId}], " +
- s"fields=[${dataStreamTable.getTableSchema.getFieldNames.mkString(",
")}])"
+ val (id, fieldNames) = table.getQueryOperation match {
+ case q: SDataStreamQueryOperation[_] => (q.getDataStream.getId,
q.getTableSchema
Review comment:
Shall we rename `DataStreamQueryOperation` to
`ScalaDataStreamQueryOperation` and `JavaDataStreamQueryOperation` to clearly
make the difference?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services