Apache flink Select子句中的Flink表API条件

Apache flink Select子句中的Flink表API条件,apache-flink,Apache Flink,相关的旧邮件列表: Flink Table API条件函数文档: 例如: table.select($("apple").isNotNull() ? $("apple").as("fruit") : $("pear").as("fruit")); $(“apple”).isNotNull()返回一个非布尔表达式 有人尝试过使用表AP

相关的旧邮件列表:

Flink Table API条件函数文档:

例如:

table.select($("apple").isNotNull()
                ? $("apple").as("fruit")
                : $("pear").as("fruit"));
$(“apple”).isNotNull()返回一个非布尔表达式


有人尝试过使用表API进行类似的操作吗?

使用表API,您只是在构造一个稍后将执行的表达式。所以所有表达式只返回另一个表达式,从而构建表达式树。在SQL中使用
org.apache.flink.table.api.Expressions#if thenels
CASE-WHEN-END