/** * Gets the list size threshold under which {@link #convertInToOr} is used. * Lists of this size or greater will instead be converted to use a join * against an inline table * ({@link org.apache.calcite.rel.logical.LogicalValues}) rather than a * predicate. A threshold of 0 forces usage of an inline table in all cases; a * threshold of Integer.MAX_VALUE forces usage of OR in all cases * * @return threshold, default {@link #DEFAULT_IN_SUB_QUERY_THRESHOLD} */ @Deprecated // to be removed before 2.0 protected int getInSubqueryThreshold() { return config.getInSubQueryThreshold(); }
/** * Gets the list size threshold under which {@link #convertInToOr} is used. * Lists of this size or greater will instead be converted to use a join * against an inline table * ({@link org.apache.calcite.rel.logical.LogicalValues}) rather than a * predicate. A threshold of 0 forces usage of an inline table in all cases; a * threshold of Integer.MAX_VALUE forces usage of OR in all cases * * @return threshold, default {@link #DEFAULT_IN_SUB_QUERY_THRESHOLD} */ @Deprecated // to be removed before 2.0 protected int getInSubqueryThreshold() { return config.getInSubQueryThreshold(); }
/** * Gets the list size threshold under which {@link #convertInToOr} is used. * Lists of this size or greater will instead be converted to use a join * against an inline table * ({@link org.apache.calcite.rel.logical.LogicalValues}) rather than a * predicate. A threshold of 0 forces usage of an inline table in all cases; a * threshold of Integer.MAX_VALUE forces usage of OR in all cases * * @return threshold, default {@link #DEFAULT_IN_SUB_QUERY_THRESHOLD} */ @Deprecated // to be removed before 2.0 protected int getInSubqueryThreshold() { return config.getInSubQueryThreshold(); }
SqlNodeList valueList = (SqlNodeList) query; if (!containsNullLiteral(valueList) && valueList.size() < config.getInSubQueryThreshold()) {
SqlNodeList valueList = (SqlNodeList) query; if (!containsNullLiteral(valueList) && valueList.size() < config.getInSubQueryThreshold()) {
SqlNodeList valueList = (SqlNodeList) query; if (!containsNullLiteral(valueList) && valueList.size() < config.getInSubQueryThreshold()) {
SqlNodeList valueList = (SqlNodeList) query; if (!containsNullLiteral(valueList) && valueList.size() < config.getInSubQueryThreshold()) {
/** * Gets the list size threshold under which {@link #convertInToOr} is used. * Lists of this size or greater will instead be converted to use a join * against an inline table * ({@link org.apache.calcite.rel.logical.LogicalValues}) rather than a * predicate. A threshold of 0 forces usage of an inline table in all cases; a * threshold of Integer.MAX_VALUE forces usage of OR in all cases * * @return threshold, default {@link #DEFAULT_IN_SUB_QUERY_THRESHOLD} */ @Deprecated // to be removed before 2.0 protected int getInSubqueryThreshold() { return config.getInSubQueryThreshold(); }
/** Sets configuration identical to a given {@link Config}. */ public ConfigBuilder withConfig(Config config) { this.convertTableAccess = config.isConvertTableAccess(); this.decorrelationEnabled = config.isDecorrelationEnabled(); this.trimUnusedFields = config.isTrimUnusedFields(); this.createValuesRel = config.isCreateValuesRel(); this.explain = config.isExplain(); this.expand = config.isExpand(); this.inSubQueryThreshold = config.getInSubQueryThreshold(); return this; }
/** Sets configuration identical to a given {@link Config}. */ public ConfigBuilder withConfig(Config config) { this.convertTableAccess = config.isConvertTableAccess(); this.decorrelationEnabled = config.isDecorrelationEnabled(); this.trimUnusedFields = config.isTrimUnusedFields(); this.createValuesRel = config.isCreateValuesRel(); this.explain = config.isExplain(); this.expand = config.isExpand(); this.inSubQueryThreshold = config.getInSubQueryThreshold(); this.relBuilderFactory = config.getRelBuilderFactory(); return this; }
/** Sets configuration identical to a given {@link Config}. */ public ConfigBuilder withConfig(Config config) { this.convertTableAccess = config.isConvertTableAccess(); this.decorrelationEnabled = config.isDecorrelationEnabled(); this.trimUnusedFields = config.isTrimUnusedFields(); this.createValuesRel = config.isCreateValuesRel(); this.explain = config.isExplain(); this.expand = config.isExpand(); this.inSubQueryThreshold = config.getInSubQueryThreshold(); return this; }
/** Sets configuration identical to a given {@link Config}. */ public ConfigBuilder withConfig(Config config) { this.convertTableAccess = config.isConvertTableAccess(); this.decorrelationEnabled = config.isDecorrelationEnabled(); this.trimUnusedFields = config.isTrimUnusedFields(); this.createValuesRel = config.isCreateValuesRel(); this.explain = config.isExplain(); this.expand = config.isExpand(); this.inSubQueryThreshold = config.getInSubQueryThreshold(); this.relBuilderFactory = config.getRelBuilderFactory(); return this; }