本文整理了Java中org.apache.calcite.plan.RelOptUtil.containsNullableFields
方法的一些代码示例,展示了RelOptUtil.containsNullableFields
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.containsNullableFields
方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!