|
RelDataType | getLogicalSourceRowType (RelDataType sourceRowType, SqlInsert insert) |
|
RelDataType | getLogicalTargetRowType (RelDataType targetRowType, SqlInsert insert) |
|
void | addToSelectList (List< SqlNode > list, Set< String > aliases, List< Map.Entry< String, RelDataType >> fieldList, SqlNode exp, SelectScope scope, boolean includeSystemVars) |
|
void | checkTypeAssignment (SqlValidatorScope sourceScope, SqlValidatorTable table, RelDataType sourceRowType, RelDataType targetRowType, SqlNode query) |
|
|
| CalciteSqlValidator (SqlOperatorTable opTab, CalciteCatalogReader catalogReader, JavaTypeFactory typeFactory, Config config) |
|
Based on CalciteSqlValidator in calcite-core with the addition of an addToSelectList() method override, which fixes the omission of system column checks when adding columns from an expanded star selection into the select list.
Definition at line 44 of file CalciteSqlValidator.java.
org.apache.calcite.prepare.CalciteSqlValidator.CalciteSqlValidator |
( |
SqlOperatorTable |
opTab, |
|
|
CalciteCatalogReader |
catalogReader, |
|
|
JavaTypeFactory |
typeFactory, |
|
|
Config |
config |
|
) |
| |
|
inlinepackage |
void org.apache.calcite.prepare.CalciteSqlValidator.addToSelectList |
( |
List< SqlNode > |
list, |
|
|
Set< String > |
aliases, |
|
|
List< Map.Entry< String, RelDataType >> |
fieldList, |
|
|
SqlNode |
exp, |
|
|
SelectScope |
scope, |
|
|
boolean |
includeSystemVars |
|
) |
| |
|
inlineprotected |
void org.apache.calcite.prepare.CalciteSqlValidator.checkTypeAssignment |
( |
SqlValidatorScope |
sourceScope, |
|
|
SqlValidatorTable |
table, |
|
|
RelDataType |
sourceRowType, |
|
|
RelDataType |
targetRowType, |
|
|
SqlNode |
query |
|
) |
| |
|
inlineprotected |
RelDataType org.apache.calcite.prepare.CalciteSqlValidator.getLogicalSourceRowType |
( |
RelDataType |
sourceRowType, |
|
|
SqlInsert |
insert |
|
) |
| |
|
inlineprotected |
Definition at line 53 of file CalciteSqlValidator.java.
55 final RelDataType superType = super.getLogicalSourceRowType(sourceRowType, insert);
56 return ((JavaTypeFactory) typeFactory).toSql(superType);
RelDataType org.apache.calcite.prepare.CalciteSqlValidator.getLogicalTargetRowType |
( |
RelDataType |
targetRowType, |
|
|
SqlInsert |
insert |
|
) |
| |
|
inlineprotected |
Definition at line 60 of file CalciteSqlValidator.java.
62 final RelDataType superType = super.getLogicalTargetRowType(targetRowType, insert);
63 return ((JavaTypeFactory) typeFactory).toSql(superType);
boolean org.apache.calcite.prepare.CalciteSqlValidator.isSystemColumn |
( |
final SqlNode |
exp, |
|
|
final SelectScope |
scope |
|
) |
| |
|
inlineprivate |
Definition at line 78 of file CalciteSqlValidator.java.
References test_readcsv.table.
Referenced by org.apache.calcite.prepare.CalciteSqlValidator.addToSelectList().
79 if (exp instanceof SqlIdentifier) {
80 SqlIdentifier columnId = (SqlIdentifier) exp;
83 if (columnId.names != null && columnId.names.size() == 2) {
84 SqlValidatorTable sqlValidatorTable =
85 scope.fullyQualify(columnId).
namespace.getTable();
86 if (sqlValidatorTable != null) {
87 MapDTable
table = (MapDTable) sqlValidatorTable.unwrap(MapDTable.class);
88 return table.isSystemColumn(columnId.names.get(1));
The documentation for this class was generated from the following file:
- /home/jenkins-slave/workspace/core-os-doxygen/java/calcite/src/main/java/org/apache/calcite/prepare/CalciteSqlValidator.java