org.apache.calcite.plan.RelOptUtil.containsNullableFields()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(71)

本文整理了Java中org.apache.calcite.plan.RelOptUtil.containsNullableFields方法的一些代码示例,展示了RelOptUtil.containsNullableFields的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.containsNullableFields方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称:RelOptUtil
方法名:containsNullableFields

RelOptUtil.containsNullableFields介绍

[英]Determines whether any of the fields in a given relational expression may contain null values, taking into account constraints on the field types and also deduced predicates.

The method is cautious: It may sometimes return true when the actual answer is false. In particular, it does this when there is no executor, or the executor is not a sub-class of RexExecutorImpl.
[中]确定给定关系表达式中的任何字段是否可能包含空值,同时考虑对字段类型的约束以及推断的谓词。
这种方法是谨慎的:当实际答案为假时,它有时可能返回真。特别是,当没有执行器,或者执行器不是RexecutorImpl的子类时,它会这样做。

代码示例

代码示例来源:origin: org.apache.calcite/calcite-core

case TRUE_FALSE_UNKNOWN:
case UNKNOWN_AS_TRUE:
 if (notIn && !containsNullableFields(seekRel)) {
  logic = Logic.TRUE_FALSE;

代码示例来源:origin: Qihoo360/Quicksql

case TRUE_FALSE_UNKNOWN:
case UNKNOWN_AS_TRUE:
 if (notIn && !containsNullableFields(seekRel)) {
  logic = Logic.TRUE_FALSE;

相关文章

微信公众号

最新文章

更多

RelOptUtil类方法