Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor alter table framework & Support Drop table schema & Support show tables details #13807

Merged
merged 130 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
f4de0de
DN Completion
Caideyipi Aug 22, 2024
8796093
Update ClusterConfigTaskExecutor.java
Caideyipi Aug 22, 2024
afa7d95
partial CN
Caideyipi Aug 22, 2024
d106726
Partial refactor
Caideyipi Aug 22, 2024
a7dba2b
Enrich
Caideyipi Aug 22, 2024
839a007
Enrich
Caideyipi Aug 22, 2024
cf5c56a
Create RenameTableColumnProcedureTest.java
Caideyipi Aug 22, 2024
8735c70
Refactor
Caideyipi Aug 22, 2024
db53ad4
Refactor
Caideyipi Aug 22, 2024
9b7d312
Drop on dn
Caideyipi Aug 22, 2024
6c065d8
fix
Caideyipi Aug 22, 2024
0aae671
Refactor
Caideyipi Aug 23, 2024
64f8bec
Completion
Caideyipi Aug 23, 2024
ec423cc
Refactor
Caideyipi Aug 23, 2024
8b7bb7f
Add test
Caideyipi Aug 23, 2024
3471f44
Add rename execution
Caideyipi Aug 23, 2024
15fac50
Merge branch 'apache:master' into alter_table_2
Caideyipi Aug 26, 2024
8359edd
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Aug 26, 2024
f32a842
enrich
Caideyipi Aug 26, 2024
6cc2b59
Update TableConfigTaskVisitor.java
Caideyipi Aug 26, 2024
ad777c7
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Aug 27, 2024
b6a2a8d
continue
Caideyipi Aug 27, 2024
c3f8999
Update RenameTableColumnProcedure.java
Caideyipi Aug 27, 2024
ab1676d
Added plan
Caideyipi Aug 27, 2024
4fb0ac6
Update ConfigPhysicalPlanSerDeTest.java
Caideyipi Aug 27, 2024
b9e8797
Added configNode logic
Caideyipi Aug 27, 2024
13a27bd
Idempotency
Caideyipi Aug 27, 2024
94f5920
Merge remote-tracking branch 'upstream/master' into alter_table_2
Caideyipi Oct 12, 2024
884d869
Renaming
Caideyipi Oct 12, 2024
e71bfdc
Update AbstractAlterTableProcedure.java
Caideyipi Oct 12, 2024
23d0c03
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 14, 2024
f97d1c6
Partial
Caideyipi Oct 12, 2024
83d8dc0
partial
Caideyipi Oct 14, 2024
76320ea
Update TableDeviceFetchSource.java
Caideyipi Oct 14, 2024
5b84aa5
Refactor
Caideyipi Oct 14, 2024
2c4c43e
Add
Caideyipi Oct 14, 2024
d6b8927
Refactor
Caideyipi Oct 14, 2024
987a89f
drop table proc
Caideyipi Oct 14, 2024
1458de0
Create DropTableState.java
Caideyipi Oct 14, 2024
33ece4f
partial
Caideyipi Oct 14, 2024
ab4f51c
Update AbstractAlterTableProcedure.java
Caideyipi Oct 14, 2024
8b87dfc
Update DropTableProcedure.java
Caideyipi Oct 14, 2024
88e5e54
Update ProcedureFactory.java
Caideyipi Oct 14, 2024
31f3cae
Create DropTableProcedureTest.java
Caideyipi Oct 14, 2024
ec19ef1
Refactor
Caideyipi Oct 14, 2024
e818309
Update DropTableColumnState.java
Caideyipi Oct 14, 2024
3d13849
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 14, 2024
acb3642
Change
Caideyipi Oct 14, 2024
dea1455
Refactor
Caideyipi Oct 14, 2024
01969d6
Update DropTableProcedure.java
Caideyipi Oct 14, 2024
9a95b51
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 15, 2024
c46c9fe
Refactor
Caideyipi Oct 15, 2024
c1e548a
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 15, 2024
82dc8be
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 15, 2024
da06323
Update DropTableProcedure.java
Caideyipi Oct 15, 2024
1e48ced
Update ConfigPhysicalPlanSerDeTest.java
Caideyipi Oct 15, 2024
8cbda74
Refactor
Caideyipi Oct 15, 2024
bc2da99
Refactor
Caideyipi Oct 15, 2024
d34c740
Update ClusterSchemaInfo.java
Caideyipi Oct 15, 2024
5f9a87f
DropTablePlan
Caideyipi Oct 15, 2024
977fbfa
small change
Caideyipi Oct 15, 2024
c2a98ed
Refactor
Caideyipi Oct 15, 2024
c9cd3f4
Refactor
Caideyipi Oct 15, 2024
60117f2
Update DeleteLogicalViewProcedure.java
Caideyipi Oct 15, 2024
78ea70e
Update DeleteTimeSeriesProcedure.java
Caideyipi Oct 15, 2024
3aab5f1
Update DataNodeRegionTaskExecutor.java
Caideyipi Oct 15, 2024
df054e9
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 15, 2024
a9394b0
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 16, 2024
fbc65f1
Update DeleteLogicalViewProcedure.java
Caideyipi Oct 16, 2024
3d3cda7
partial
Caideyipi Oct 16, 2024
b5d616d
Async delete data
Caideyipi Oct 16, 2024
1cff5ad
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 16, 2024
b1cbbe0
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
736382c
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
8396dbb
Added tree size
Caideyipi Oct 17, 2024
7936961
Change
Caideyipi Oct 17, 2024
08b1c58
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
65dcb08
refactor
Caideyipi Oct 17, 2024
8570c88
Create DeleteTableDeviceNode.java
Caideyipi Oct 17, 2024
5f87241
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
e45c8e8
Partial
Caideyipi Oct 17, 2024
cef77f3
Next
Caideyipi Oct 17, 2024
016a569
Continue
Caideyipi Oct 17, 2024
82fcf1c
Next
Caideyipi Oct 17, 2024
f8052aa
Update SchemaRegionMemoryImpl.java
Caideyipi Oct 17, 2024
80be63b
Enrich
Caideyipi Oct 17, 2024
def1835
Update DataNodeInternalRPCServiceImpl.java
Caideyipi Oct 17, 2024
fba973c
Update DropTableProcedure.java
Caideyipi Oct 17, 2024
d793a18
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
b186433
invalidate cache
Caideyipi Oct 17, 2024
a853f92
Update DropTableProcedure.java
Caideyipi Oct 17, 2024
7f1c93f
Update DropTableProcedure.java
Caideyipi Oct 17, 2024
482fc8e
Update DropTableProcedure.java
Caideyipi Oct 17, 2024
1f9c043
Update datanode.thrift
Caideyipi Oct 17, 2024
39d35c4
Invalidate cache
Caideyipi Oct 17, 2024
5723362
Update RelationalSql.g4
Caideyipi Oct 17, 2024
7083e7a
init details
Caideyipi Oct 17, 2024
4569933
Update ShowTables.java
Caideyipi Oct 17, 2024
11a904b
Refactor
Caideyipi Oct 17, 2024
73cbb02
partial
Caideyipi Oct 17, 2024
6e2fe36
Refactor
Caideyipi Oct 17, 2024
02257c0
Update ConfigTableNode.java
Caideyipi Oct 17, 2024
ce1eb3f
may complete
Caideyipi Oct 17, 2024
caf3db0
Final
Caideyipi Oct 17, 2024
eb6ee88
Update DropTableTask.java
Caideyipi Oct 17, 2024
812a8f3
Update AlterOrDropTableOperationType.java
Caideyipi Oct 17, 2024
eb69454
Update ProcedureFactory.java
Caideyipi Oct 17, 2024
15f45aa
Update DropTableProcedure.java
Caideyipi Oct 17, 2024
00414ee
Update ConfigMTree.java
Caideyipi Oct 17, 2024
122dea7
Update MNodeCollector.java
Caideyipi Oct 17, 2024
24f18fe
Partial
Caideyipi Oct 17, 2024
adc091a
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
ebeaa0d
Memory calculation
Caideyipi Oct 17, 2024
a5b27be
May add calculation
Caideyipi Oct 17, 2024
c58352f
Revert
Caideyipi Oct 17, 2024
394a86a
Update MTreeBelowSGMemoryImpl.java
Caideyipi Oct 17, 2024
240d144
fix
Caideyipi Oct 17, 2024
832ca9a
Fix
Caideyipi Oct 17, 2024
34c7f47
Fix
Caideyipi Oct 17, 2024
6b1298e
Update Traverser.java
Caideyipi Oct 17, 2024
257d026
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 17, 2024
6b56ffe
Update IoTDBTableIT.java
Caideyipi Oct 17, 2024
b4fcc5f
Update IoTDBTableIT.java
Caideyipi Oct 17, 2024
0aac1e6
Update TableDeviceSchemaCacheTest.java
Caideyipi Oct 17, 2024
e0fcd60
Update TableDeviceSchemaCacheTest.java
Caideyipi Oct 17, 2024
703d01c
Update TableDeviceSchemaCacheTest.java
Caideyipi Oct 17, 2024
73ce4c3
Update TableDeviceSchemaCacheTest.java
Caideyipi Oct 17, 2024
ed5230e
Update DropTableProcedure.java
Caideyipi Oct 18, 2024
96c29bb
Merge branch 'master' of https://github.com/apache/iotdb into alter_t…
Caideyipi Oct 18, 2024
b36f398
Merge remote-tracking branch 'upstream/master' into alter_table_2
Caideyipi Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.apache.iotdb.relational.it.schema;

import org.apache.iotdb.db.it.utils.TestUtils;
import org.apache.iotdb.it.env.EnvFactory;
import org.apache.iotdb.it.framework.IoTDBTestRunner;
import org.apache.iotdb.itbase.category.TableClusterIT;
Expand All @@ -36,6 +37,7 @@
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Collections;

import static org.apache.iotdb.db.queryengine.common.header.ColumnHeaderConstant.describeTableColumnHeaders;
import static org.apache.iotdb.db.queryengine.common.header.ColumnHeaderConstant.showTablesColumnHeaders;
Expand Down Expand Up @@ -368,6 +370,22 @@ public void testManageTable() {
assertEquals(columnNames.length, cnt);
}

statement.execute(
"insert into table2(region_id, plant_id, color, temperature, speed) values(1, 1, 1, 1, 1)");
statement.execute("drop table table2");
try {
statement.executeQuery("describe table2");
fail();
} catch (final SQLException e) {
assertEquals("550: Table 'test2.table2' does not exist.", e.getMessage());
}
statement.execute(
"create table table2(region_id STRING ID, plant_id STRING ID, color STRING ATTRIBUTE, temperature FLOAT MEASUREMENT, speed DOUBLE MEASUREMENT)");
TestUtils.assertResultSetEqual(
statement.executeQuery("count devices from table2"),
"count(devices),",
Collections.singleton("0,"));

try {
statement.executeQuery("describe test3.table3");
fail();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,7 @@ public enum CnToDnAsyncRequestType {

// Table
UPDATE_TABLE,
INVALIDATE_TABLE_CACHE,
DELETE_DATA_FOR_DROP_TABLE,
DELETE_DEVICES_FOR_DROP_TABLE,
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
import org.apache.iotdb.mpp.rpc.thrift.TCreateTriggerInstanceReq;
import org.apache.iotdb.mpp.rpc.thrift.TDeactivateTemplateReq;
import org.apache.iotdb.mpp.rpc.thrift.TDeleteDataForDeleteSchemaReq;
import org.apache.iotdb.mpp.rpc.thrift.TDeleteDataOrDevicesForDropTableReq;
import org.apache.iotdb.mpp.rpc.thrift.TDeleteTimeSeriesReq;
import org.apache.iotdb.mpp.rpc.thrift.TDeleteViewSchemaReq;
import org.apache.iotdb.mpp.rpc.thrift.TDropFunctionInstanceReq;
Expand All @@ -71,6 +72,7 @@
import org.apache.iotdb.mpp.rpc.thrift.TInactiveTriggerInstanceReq;
import org.apache.iotdb.mpp.rpc.thrift.TInvalidateCacheReq;
import org.apache.iotdb.mpp.rpc.thrift.TInvalidateMatchedSchemaCacheReq;
import org.apache.iotdb.mpp.rpc.thrift.TInvalidateTableCacheReq;
import org.apache.iotdb.mpp.rpc.thrift.TPipeHeartbeatReq;
import org.apache.iotdb.mpp.rpc.thrift.TPushConsumerGroupMetaReq;
import org.apache.iotdb.mpp.rpc.thrift.TPushMultiPipeMetaReq;
Expand Down Expand Up @@ -375,6 +377,21 @@ protected void initActionMapBuilder() {
CnToDnAsyncRequestType.UPDATE_TABLE,
(req, client, handler) ->
client.updateTable((TUpdateTableReq) req, (DataNodeTSStatusRPCHandler) handler));
actionMapBuilder.put(
CnToDnAsyncRequestType.INVALIDATE_TABLE_CACHE,
(req, client, handler) ->
client.invalidateTableCache(
(TInvalidateTableCacheReq) req, (DataNodeTSStatusRPCHandler) handler));
actionMapBuilder.put(
CnToDnAsyncRequestType.DELETE_DATA_FOR_DROP_TABLE,
(req, client, handler) ->
client.deleteDataForDropTable(
(TDeleteDataOrDevicesForDropTableReq) req, (DataNodeTSStatusRPCHandler) handler));
actionMapBuilder.put(
CnToDnAsyncRequestType.DELETE_DEVICES_FOR_DROP_TABLE,
(req, client, handler) ->
client.deleteDevicesForDropTable(
(TDeleteDataOrDevicesForDropTableReq) req, (DataNodeTSStatusRPCHandler) handler));
actionMapBuilder.put(
CnToDnAsyncRequestType.CLEAN_DATA_NODE_CACHE,
(req, client, handler) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@
import org.apache.iotdb.confignode.consensus.request.write.sync.SetPipeStatusPlanV1;
import org.apache.iotdb.confignode.consensus.request.write.table.AddTableColumnPlan;
import org.apache.iotdb.confignode.consensus.request.write.table.CommitCreateTablePlan;
import org.apache.iotdb.confignode.consensus.request.write.table.DropTablePlan;
import org.apache.iotdb.confignode.consensus.request.write.table.PreCreateTablePlan;
import org.apache.iotdb.confignode.consensus.request.write.table.PreDeleteTablePlan;
import org.apache.iotdb.confignode.consensus.request.write.table.RenameTableColumnPlan;
import org.apache.iotdb.confignode.consensus.request.write.table.RollbackCreateTablePlan;
import org.apache.iotdb.confignode.consensus.request.write.table.SetTablePropertiesPlan;
import org.apache.iotdb.confignode.consensus.request.write.template.CommitSetSchemaTemplatePlan;
Expand Down Expand Up @@ -343,6 +346,15 @@ public static ConfigPhysicalPlan create(final ByteBuffer buffer) throws IOExcept
case SetTableProperties:
plan = new SetTablePropertiesPlan();
break;
case RenameTableColumn:
plan = new RenameTableColumnPlan();
break;
case PreDeleteTable:
plan = new PreDeleteTablePlan();
break;
case DropTable:
plan = new DropTablePlan();
break;
case CreatePipeSinkV1:
plan = new CreatePipeSinkPlanV1();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ public enum ConfigPhysicalPlanType {
SetTableProperties((short) 854),
ShowTable((short) 855),
FetchTable((short) 856),
RenameTableColumn((short) 857),
PreDeleteTable((short) 858),
DropTable((short) 859),

/** Deprecated types for sync, restored them for upgrade. */
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@ public class ShowTablePlan extends ConfigPhysicalReadPlan {

private final String database;

public ShowTablePlan(final String database) {
private final boolean isDetails;

public ShowTablePlan(final String database, final boolean isDetails) {
super(ConfigPhysicalPlanType.ShowTable);
this.database = database;
this.isDetails = isDetails;
}

public String getDatabase() {
return database;
}

public boolean isDetails() {
return isDetails;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.iotdb.confignode.consensus.request.write.table;

import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan;
import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlanType;

import org.apache.tsfile.utils.ReadWriteIOUtils;

import java.io.DataOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;

abstract class AbstractTablePlan extends ConfigPhysicalPlan {

private String database;

private String tableName;

protected AbstractTablePlan(final ConfigPhysicalPlanType type) {
super(type);
}

protected AbstractTablePlan(
final ConfigPhysicalPlanType type, final String database, final String tableName) {
super(type);
this.database = database;
this.tableName = tableName;
}

public String getDatabase() {
return database;
}

public String getTableName() {
return tableName;
}

@Override
protected void serializeImpl(final DataOutputStream stream) throws IOException {
stream.writeShort(getType().getPlanType());

ReadWriteIOUtils.write(database, stream);
ReadWriteIOUtils.write(tableName, stream);
}

@Override
protected void deserializeImpl(final ByteBuffer buffer) throws IOException {
this.database = ReadWriteIOUtils.readString(buffer);
this.tableName = ReadWriteIOUtils.readString(buffer);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import org.apache.iotdb.commons.schema.table.column.TsTableColumnSchema;
import org.apache.iotdb.commons.schema.table.column.TsTableColumnSchemaUtil;
import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan;
import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlanType;

import org.apache.tsfile.utils.ReadWriteIOUtils;
Expand All @@ -31,11 +30,7 @@
import java.nio.ByteBuffer;
import java.util.List;

public class AddTableColumnPlan extends ConfigPhysicalPlan {

private String database;

private String tableName;
public class AddTableColumnPlan extends AbstractTablePlan {

private List<TsTableColumnSchema> columnSchemaList;

Expand All @@ -46,25 +41,15 @@ public AddTableColumnPlan() {
}

public AddTableColumnPlan(
String database,
String tableName,
List<TsTableColumnSchema> columnSchemaList,
boolean isRollback) {
super(ConfigPhysicalPlanType.AddTableColumn);
this.database = database;
this.tableName = tableName;
final String database,
final String tableName,
final List<TsTableColumnSchema> columnSchemaList,
final boolean isRollback) {
super(ConfigPhysicalPlanType.AddTableColumn, database, tableName);
this.columnSchemaList = columnSchemaList;
this.isRollback = isRollback;
}

public String getDatabase() {
return database;
}

public String getTableName() {
return tableName;
}

public List<TsTableColumnSchema> getColumnSchemaList() {
return columnSchemaList;
}
Expand All @@ -74,19 +59,15 @@ public boolean isRollback() {
}

@Override
protected void serializeImpl(DataOutputStream stream) throws IOException {
stream.writeShort(getType().getPlanType());

ReadWriteIOUtils.write(database, stream);
ReadWriteIOUtils.write(tableName, stream);
protected void serializeImpl(final DataOutputStream stream) throws IOException {
super.serializeImpl(stream);
TsTableColumnSchemaUtil.serialize(columnSchemaList, stream);
ReadWriteIOUtils.write(isRollback, stream);
}

@Override
protected void deserializeImpl(ByteBuffer buffer) throws IOException {
this.database = ReadWriteIOUtils.readString(buffer);
this.tableName = ReadWriteIOUtils.readString(buffer);
protected void deserializeImpl(final ByteBuffer buffer) throws IOException {
super.deserializeImpl(buffer);
this.columnSchemaList = TsTableColumnSchemaUtil.deserializeColumnSchemaList(buffer);
this.isRollback = ReadWriteIOUtils.readBool(buffer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,15 @@

package org.apache.iotdb.confignode.consensus.request.write.table;

import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlan;
import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlanType;

import org.apache.tsfile.utils.ReadWriteIOUtils;

import java.io.DataOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;

public class CommitCreateTablePlan extends ConfigPhysicalPlan {

private String database;

private String tableName;
public class CommitCreateTablePlan extends AbstractTablePlan {

public CommitCreateTablePlan() {
super(ConfigPhysicalPlanType.CommitCreateTable);
}

public CommitCreateTablePlan(String database, String tableName) {
super(ConfigPhysicalPlanType.CommitCreateTable);
this.database = database;
this.tableName = tableName;
}

public String getDatabase() {
return database;
}

public String getTableName() {
return tableName;
}

@Override
protected void serializeImpl(DataOutputStream stream) throws IOException {
stream.writeShort(getType().getPlanType());
ReadWriteIOUtils.write(database, stream);
ReadWriteIOUtils.write(tableName, stream);
}

@Override
protected void deserializeImpl(ByteBuffer buffer) throws IOException {
this.database = ReadWriteIOUtils.readString(buffer);
this.tableName = ReadWriteIOUtils.readString(buffer);
public CommitCreateTablePlan(final String database, final String tableName) {
super(ConfigPhysicalPlanType.CommitCreateTable, database, tableName);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.iotdb.confignode.consensus.request.write.table;

import org.apache.iotdb.confignode.consensus.request.ConfigPhysicalPlanType;

public class DropTablePlan extends AbstractTablePlan {
public DropTablePlan() {
super(ConfigPhysicalPlanType.DropTable);
}

public DropTablePlan(final String database, final String tableName) {
super(ConfigPhysicalPlanType.DropTable, database, tableName);
}
}
Loading
Loading