Class 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 org.apache.calcite.sql.SqlSpecialOperator OPERATOR  
      • 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)  
    • Field Detail

      • OPERATOR

        public static final org.apache.calcite.sql.SqlSpecialOperator OPERATOR
    • Constructor Detail

      • 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)