Package org.apache.calcite.sql.validate
Enum SqlConformance.SelectAliasLookup
java.lang.Object
java.lang.Enum<SqlConformance.SelectAliasLookup>
org.apache.calcite.sql.validate.SqlConformance.SelectAliasLookup
- All Implemented Interfaces:
Serializable
,Comparable<SqlConformance.SelectAliasLookup>
,Constable
- Enclosing interface:
SqlConformance
Value describing how to perform lookup for aliases defined in a SELECT list.
When enabled, this feature is called "lateral column alias" in Spark SQL and Redshift,
but also "inline column alias", or "self-referencing alias", "expression alias reuse", or
"alias chaining".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll values defined in a SELECT list can be used within the same list.Values defined in a SELECT list are visible to the right of their definition.Values defined in a SELECT list are not visible within the list (standard SQL). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static SqlConformance.SelectAliasLookup[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED
Values defined in a SELECT list are not visible within the list (standard SQL). -
LEFT_TO_RIGHT
Values defined in a SELECT list are visible to the right of their definition. -
ANY
All values defined in a SELECT list can be used within the same list.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-