Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3863#discussion_r115731151
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/BatchTableEnvironment.scala
---
@@ -113,9 +113,20 @@ abstract class BatchTableEnvironment(
*
* @param table The [[Table]] to write.
* @param sink The [[TableSink]] to write the [[Table]] to.
+ * @param qConfig The configuration for the query to generate.
* @tparam T The expected type of the [[DataSet]] which represents the
[[Table]].
*/
- override private[flink] def writeToSink[T](table: Table, sink:
TableSink[T]): Unit = {
+ override private[flink] def writeToSink[T](
+ table: Table,
+ sink: TableSink[T],
+ qConfig: QueryConfig): Unit = {
+
+ // We do not pass the configuration on, because there is nothing to
configure for batch queries.
+ val bQConfig = qConfig match {
--- End diff --
can change this to
```
qConfig match {
case _: BatchQueryConfig =>
case _ =>
throw new TableException("BatchQueryConfig required to configure batch
query.")
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---