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

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;
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.calcite.sql.SqlSpecialOperator
     

    Fields inherited from class org.apache.calcite.sql.SqlDdl

    DDL_OPERATOR

    Fields inherited from class org.apache.calcite.sql.SqlNode

    EMPTY_ARRAY, pos
  • Constructor Summary

    Constructors
    Constructor
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.sql.SqlNode
     
    List<org.apache.calcite.sql.SqlNode>
     
    org.apache.calcite.sql.SqlOperator
     
    void
    unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)
     
    void
     

    Methods inherited from class org.apache.calcite.sql.SqlCreate

    getReplace, setReplace

    Methods inherited from class org.apache.calcite.sql.SqlCall

    accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate

    Methods inherited from class org.apache.calcite.sql.SqlNode

    clone, clone, cloneArray, equalDeep, equalDeep, equalsDeep, getParserPosition, isA, toList, toList, toSqlString, toSqlString, toSqlString, toString, unparseWithParentheses, validateExpr

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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