1 package com.mapd.parser.extension.ddl;
3 import static java.util.Objects.requireNonNull;
5 import com.google.gson.annotations.Expose;
6 import com.mapd.parser.extension.ddl.heavysql.*;
8 import org.apache.calcite.sql.SqlCreate;
9 import org.apache.calcite.sql.SqlIdentifier;
10 import org.apache.calcite.sql.SqlKind;
11 import org.apache.calcite.sql.SqlNode;
13 import org.apache.calcite.sql.SqlSpecialOperator;
14 import org.apache.calcite.sql.parser.SqlParserPos;
16 import java.util.List;
20 new SqlSpecialOperator(
"CREATE_FOREIGN_TABLE", SqlKind.OTHER_DDL);
44 final List<HeavySqlColumn>
columns,
46 super(
OPERATOR, pos,
false, ifNotExists);
47 requireNonNull(tableName);
48 requireNonNull(serverName);
49 this.command = OPERATOR.getName();
51 this.tableName = tableName.toString();
52 this.serverName = serverName.toString();
54 this.schemaName = (schemaName == null) ? null : schemaName.
toString();
List< HeavySqlColumn > columns
default String toJsonString()
SqlCreateForeignTable(final SqlParserPos pos, final boolean ifNotExists, final SqlIdentifier tableName, final SqlIdentifier serverName, final HeavySqlSanitizedString schemaName, final List< HeavySqlColumn > columns, final HeavySqlOptionsMap options)
static final SqlOperator OPERATOR
HeavySqlOptionsMap options
List< SqlNode > getOperandList()