public enum CalciteConnectionProperty extends Enum<CalciteConnectionProperty> implements org.apache.calcite.avatica.ConnectionProperty
| Enum Constant and Description |
|---|
APPROXIMATE_DECIMAL
Whether approximate results from aggregate functions on
DECIMAL types are acceptable.
|
APPROXIMATE_DISTINCT_COUNT
Whether approximate results from
COUNT(DISTINCT ...) aggregate
functions are acceptable. |
APPROXIMATE_TOP_N
Whether approximate results from "Top N" queries
(
ORDER BY aggFun DESC LIMIT n) are acceptable. |
AUTO_TEMP
Whether to store query results in temporary tables.
|
CASE_SENSITIVE
Whether identifiers are matched case-sensitively.
|
CONFORMANCE
SQL conformance level.
|
CREATE_MATERIALIZATIONS
Whether Calcite should create materializations.
|
DEFAULT_NULL_COLLATION
How NULL values should be sorted if neither NULLS FIRST nor NULLS LAST are
specified.
|
DRUID_FETCH
How many rows the Druid adapter should fetch at a time when executing
"select" queries.
|
FORCE_DECORRELATE
If the planner should try de-correlating as much as it is possible.
|
FUN
Collection of built-in functions and operators.
|
LENIENT_OPERATOR_LOOKUP
Whether to make create implicit functions if functions do not exist
in the operator table, default false.
|
LEX
Lexical policy.
|
LOCALE
Returns the locale from the connect string.
|
MATERIALIZATIONS_ENABLED
Whether Calcite should use materializations.
|
MODEL
URI of the model.
|
NULL_EQUAL_TO_EMPTY
Whether to treat empty strings as null for Druid Adapter.
|
PARSER_FACTORY
Parser factory.
|
QUOTED_CASING
How identifiers are stored if they are quoted.
|
QUOTING
How identifiers are quoted.
|
SCHEMA
Name of initial schema.
|
SCHEMA_FACTORY
Schema factory.
|
SCHEMA_TYPE
Schema type.
|
SPARK
Specifies whether Spark should be used as the engine for processing that
cannot be pushed to the source system.
|
TIME_ZONE
Returns the time zone from the connect string, for example 'gmt-3'.
|
TOPDOWN_OPT
Whether to enable top-down optimization in Volcano planner.
|
TYPE_COERCION
Whether to make implicit type coercion when type mismatch
for validation, default true.
|
TYPE_SYSTEM
Type system.
|
UNQUOTED_CASING
How identifiers are stored if they are not quoted.
|
| Modifier and Type | Field and Description |
|---|---|
static CalciteConnectionProperty |
TIMEZONE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
camelName() |
@Nullable Object |
defaultValue() |
boolean |
required() |
org.apache.calcite.avatica.ConnectionProperty.Type |
type() |
@Nullable Class |
valueClass() |
static CalciteConnectionProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalciteConnectionProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
org.apache.calcite.avatica.ConnectionConfigImpl.PropEnv |
wrap(Properties properties) |
public static final CalciteConnectionProperty APPROXIMATE_DISTINCT_COUNT
COUNT(DISTINCT ...) aggregate
functions are acceptable.public static final CalciteConnectionProperty APPROXIMATE_TOP_N
ORDER BY aggFun DESC LIMIT n) are acceptable.public static final CalciteConnectionProperty APPROXIMATE_DECIMAL
public static final CalciteConnectionProperty NULL_EQUAL_TO_EMPTY
public static final CalciteConnectionProperty AUTO_TEMP
public static final CalciteConnectionProperty MATERIALIZATIONS_ENABLED
public static final CalciteConnectionProperty CREATE_MATERIALIZATIONS
public static final CalciteConnectionProperty DEFAULT_NULL_COLLATION
public static final CalciteConnectionProperty DRUID_FETCH
public static final CalciteConnectionProperty MODEL
public static final CalciteConnectionProperty LEX
public static final CalciteConnectionProperty FUN
public static final CalciteConnectionProperty QUOTING
LEX is used.public static final CalciteConnectionProperty QUOTED_CASING
LEX is used.public static final CalciteConnectionProperty UNQUOTED_CASING
LEX is used.public static final CalciteConnectionProperty CASE_SENSITIVE
LEX is used.public static final CalciteConnectionProperty PARSER_FACTORY
The name of a class that implements
SqlParserImplFactory.
public static final CalciteConnectionProperty SCHEMA
public static final CalciteConnectionProperty SCHEMA_FACTORY
The name of a class that implements
SchemaFactory.
Ignored if MODEL is specified.
public static final CalciteConnectionProperty SCHEMA_TYPE
Value may be null, "MAP", "JDBC", or "CUSTOM"
(implicit if SCHEMA_FACTORY is specified).
Ignored if MODEL is specified.
public static final CalciteConnectionProperty SPARK
public static final CalciteConnectionProperty TIME_ZONE
public static final CalciteConnectionProperty LOCALE
public static final CalciteConnectionProperty FORCE_DECORRELATE
public static final CalciteConnectionProperty TYPE_SYSTEM
RelDataTypeSystem and has a public
default constructor or an INSTANCE constant.public static final CalciteConnectionProperty CONFORMANCE
Controls the semantics of ISO standard SQL features that are implemented in non-standard ways in some other systems.
For example, the SUBSTRING(string FROM start [FOR length])
operator treats negative start values as 1, but BigQuery's
implementation regards negative starts as counting from the end.
If conformance=BIG_QUERY we will use BigQuery's behavior.
This property only affects ISO standard SQL features. For example, the
SUBSTR function is non-standard, so is controlled by the
fun property. If you set fun=oracle you will get
SUBSTR with Oracle's semantics; if you set fun=postgres you
will get SUBSTR with PostgreSQL's (slightly different)
semantics.
public static final CalciteConnectionProperty TYPE_COERCION
public static final CalciteConnectionProperty LENIENT_OPERATOR_LOOKUP
public static final CalciteConnectionProperty TOPDOWN_OPT
@Deprecated public static final CalciteConnectionProperty TIMEZONE
TIME_ZONE.public static CalciteConnectionProperty[] values()
for (CalciteConnectionProperty c : CalciteConnectionProperty.values()) System.out.println(c);
public static CalciteConnectionProperty valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String camelName()
camelName in interface org.apache.calcite.avatica.ConnectionPropertypublic @Nullable Object defaultValue()
defaultValue in interface org.apache.calcite.avatica.ConnectionPropertypublic org.apache.calcite.avatica.ConnectionProperty.Type type()
type in interface org.apache.calcite.avatica.ConnectionPropertypublic @Nullable Class valueClass()
valueClass in interface org.apache.calcite.avatica.ConnectionPropertypublic boolean required()
required in interface org.apache.calcite.avatica.ConnectionPropertypublic org.apache.calcite.avatica.ConnectionConfigImpl.PropEnv wrap(Properties properties)
wrap in interface org.apache.calcite.avatica.ConnectionPropertyCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.