1 package com.mapd.parser.extension.ddl;
3 import com.google.gson.annotations.Expose;
5 import org.apache.calcite.sql.SqlDrop;
6 import org.apache.calcite.sql.SqlIdentifier;
7 import org.apache.calcite.sql.SqlKind;
8 import org.apache.calcite.sql.SqlNode;
10 import org.apache.calcite.sql.SqlSpecialOperator;
11 import org.apache.calcite.sql.parser.SqlParserPos;
13 import org.apache.calcite.util.JsonBuilder;
15 import java.util.List;
23 new SqlSpecialOperator(
"DROP_POLICY", SqlKind.OTHER_DDL);
36 this.command = OPERATOR.getName();
54 Map<String, Object> map = jsonBuilder.map();
56 map.put(
"command", this.command);
57 map.put(
"columnName", this.columnName);
58 map.put(
"granteeName", this.granteeName.toString());
60 Map<String, Object> payload = jsonBuilder.map();
61 payload.put(
"payload", map);
66 return jsonBuilder.toJsonString(payload);
SqlIdentifier granteeName
SqlDropPolicy(final SqlParserPos pos, final List< String > columnName, final SqlIdentifier granteeName)
List< String > columnName
List< SqlNode > getOperandList()
static final SqlOperator OPERATOR