Package org.apache.flink.sql.parser.ddl
Class SqlCreateModelAs
java.lang.Object
org.apache.calcite.sql.SqlNode
org.apache.calcite.sql.SqlCall
org.apache.calcite.sql.SqlDdl
org.apache.calcite.sql.SqlCreate
org.apache.flink.sql.parser.ddl.SqlCreateModel
org.apache.flink.sql.parser.ddl.SqlCreateModelAs
- All Implemented Interfaces:
Cloneable,ExtendedSqlNode
SqlNode to describe the CREATE MODEL AS syntax. The CTAS would create a pipeline to
compute the result of the given query and use the data to train the model.
Example:
CREATE MODEL my_model WITH (name=value, [name=value]*)
) AS SELECT col1, col2, label FROM base_table;
-
Field Summary
FieldsFields inherited from class org.apache.calcite.sql.SqlDdl
DDL_OPERATORFields inherited from class org.apache.calcite.sql.SqlNode
EMPTY_ARRAY, pos -
Constructor Summary
ConstructorsConstructorDescriptionSqlCreateModelAs(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier modelName, org.apache.calcite.sql.SqlCharStringLiteral comment, org.apache.calcite.sql.SqlNodeList inputColumnList, org.apache.calcite.sql.SqlNodeList outputColumnList, org.apache.calcite.sql.SqlNodeList propertyList, org.apache.calcite.sql.SqlNode asQuery, boolean isTemporary, boolean ifNotExists) -
Method Summary
Methods inherited from class org.apache.flink.sql.parser.ddl.SqlCreateModel
fullModelName, getComment, getInputColumnList, getModelName, getOutputColumnList, getPropertyList, isIfNotExists, isTemporaryMethods inherited from class org.apache.calcite.sql.SqlCreate
getReplace, setReplaceMethods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validateMethods inherited from class org.apache.calcite.sql.SqlNode
clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr
-
Field Details
-
OPERATOR
public static final org.apache.calcite.sql.SqlSpecialOperator OPERATOR
-
-
Constructor Details
-
SqlCreateModelAs
public SqlCreateModelAs(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier modelName, org.apache.calcite.sql.SqlCharStringLiteral comment, org.apache.calcite.sql.SqlNodeList inputColumnList, org.apache.calcite.sql.SqlNodeList outputColumnList, org.apache.calcite.sql.SqlNodeList propertyList, org.apache.calcite.sql.SqlNode asQuery, boolean isTemporary, boolean ifNotExists)
-
-
Method Details
-
getOperator
@Nonnull public org.apache.calcite.sql.SqlOperator getOperator()- Overrides:
getOperatorin classSqlCreateModel
-
getOperandList
- Overrides:
getOperandListin classSqlCreateModel
-
validate
- Specified by:
validatein interfaceExtendedSqlNode- Overrides:
validatein classSqlCreateModel- Throws:
SqlValidateException
-
getAsQuery
public org.apache.calcite.sql.SqlNode getAsQuery() -
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec) - Overrides:
unparsein classSqlCreateModel
-