OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander Class Reference
+ Inheritance diagram for org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander:
+ Collaboration diagram for org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander:

Public Member Functions

SqlNode visit (SqlIdentifier id)
 
- Public Member Functions inherited from org.apache.calcite.sql.validate.SqlValidatorImpl.Expander
SqlNode visit (SqlIdentifier id)
 

Package Functions

 SelectExpander (SqlValidatorImpl validator, SelectScope scope, SqlSelect select)
 
- Package Functions inherited from org.apache.calcite.sql.validate.SqlValidatorImpl.Expander
 Expander (SqlValidatorImpl validator, SqlValidatorScope scope)
 

Package Attributes

final SqlSelect select
 

Additional Inherited Members

- Protected Member Functions inherited from org.apache.calcite.sql.validate.SqlValidatorImpl.Expander
SqlNode visitScoped (SqlCall call)
 
SqlNode expandDynamicStar (SqlIdentifier id, SqlIdentifier fqId)
 
- Protected Attributes inherited from org.apache.calcite.sql.validate.SqlValidatorImpl.Expander
final SqlValidatorImpl validator
 

Detailed Description

Converts an expression into canonical form by fully-qualifying any identifiers. For common columns in USING, it will be converted to COALESCE(A.col, B.col) AS col.

Definition at line 6095 of file SqlValidatorImpl.java.

Constructor & Destructor Documentation

org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander.SelectExpander ( SqlValidatorImpl  validator,
SelectScope  scope,
SqlSelect  select 
)
inlinepackage

Member Function Documentation

SqlNode org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander.visit ( SqlIdentifier  id)
inline

Definition at line 6104 of file SqlValidatorImpl.java.

References org.apache.calcite.sql.validate.SqlValidatorImpl.expandCommonColumn(), org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander.select, and org.apache.calcite.sql.validate.SqlValidatorImpl.Expander.validator.

6104  {
6105  final SqlNode node = expandCommonColumn(select, id, (SelectScope) getScope(), validator);
6106  if (node != id) {
6107  return node;
6108  } else {
6109  return super.visit(id);
6110  }
6111  }
static SqlNode expandCommonColumn(SqlSelect sqlSelect, SqlNode selectItem, SelectScope scope, SqlValidatorImpl validator)

+ Here is the call graph for this function:

Member Data Documentation

final SqlSelect org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander.select
package

The documentation for this class was generated from the following file: