Skip to content

Commit 2f8b33c

Browse files
committed
remove-warn
1 parent 4440993 commit 2f8b33c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/InternalClientSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import org.apache.iotdb.service.rpc.thrift.TSConnectionType;
2323

24+
import java.util.Collections;
2425
import java.util.Map;
2526
import java.util.Set;
2627
import java.util.concurrent.ConcurrentHashMap;
@@ -109,7 +110,6 @@ public PreparedStatementInfo getPreparedStatement(String statementName) {
109110

110111
@Override
111112
public Set<String> getPreparedStatementNames() {
112-
throw new UnsupportedOperationException(
113-
"InternalClientSession should never call PREPARE statement methods.");
113+
return Collections.emptySet();
114114
}
115115
}

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/MqttClientSession.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public PreparedStatementInfo getPreparedStatement(String statementName) {
9797

9898
@Override
9999
public Set<String> getPreparedStatementNames() {
100-
throw new UnsupportedOperationException(
101-
"MQTT client session does not support PREPARE statement.");
100+
return Collections.emptySet();
102101
}
103102
}

0 commit comments

Comments
 (0)