public class SqlCreateModelAs extends SqlCreateModel
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;
Modifier and Type | Field and Description |
---|---|
static org.apache.calcite.sql.SqlSpecialOperator |
OPERATOR |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.sql.SqlNode |
getAsQuery() |
List<org.apache.calcite.sql.SqlNode> |
getOperandList() |
org.apache.calcite.sql.SqlOperator |
getOperator() |
void |
unparse(org.apache.calcite.sql.SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
validate() |
fullModelName, getComment, getInputColumnList, getModelName, getOutputColumnList, getPropertyList, isIfNotExists, isTemporary
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
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)
@Nonnull public org.apache.calcite.sql.SqlOperator getOperator()
getOperator
in class SqlCreateModel
@Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
getOperandList
in class SqlCreateModel
public void validate() throws SqlValidateException
validate
in interface ExtendedSqlNode
validate
in class SqlCreateModel
SqlValidateException
public org.apache.calcite.sql.SqlNode getAsQuery()
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
unparse
in class SqlCreateModel
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.