package org.dbsp.sqlCompiler.compiler.frontend.statements;

import org.apache.calcite.rel.type.RelDataType;
import org.dbsp.sqlCompiler.compiler.frontend.calciteCompiler.ParsedStatement;
import org.dbsp.sqlCompiler.compiler.frontend.calciteCompiler.ProgramIdentifier;
import org.dbsp.sqlCompiler.compiler.frontend.parser.SqlCreateType;

public class CreateTypeStatement extends RelStatement {
    public final SqlCreateType createType;
    public final ProgramIdentifier typeName;
    // We have to be careful with this one, since it has had
    // struct references expanded.  We have to reconstruct them
    // from the createType field.
    public final RelDataType relDataType;

    public CreateTypeStatement(ParsedStatement node, SqlCreateType createType,
                               ProgramIdentifier typeName, RelDataType relDataType) {
        super(node);
        this.createType = createType;
        this.typeName = typeName;
        this.relDataType = relDataType;
    }
}
