Github user twalthr commented on a diff in the pull request:
https://github.com/apache/flink/pull/2560#discussion_r80921875
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/FlinkRelBuilder.scala
---
@@ -38,7 +38,12 @@ class FlinkRelBuilder(
cluster,
relOptSchema) {
- def getPlanner: RelOptPlanner = cluster.getPlanner
+ def getPlanner: RelOptPlanner = {
+ val planner = cluster.getPlanner
+ // set the executor to evaluate constant expressions
+ planner.setExecutor(new
RexExecutorImpl(Schemas.createDataContext(null)))
--- End diff --
Why don't you use `FrameworkConfig.executor()` in `TableEnvironment` to set
the executor at the very beginning?
---
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.
---