SteveYurongSu commented on code in PR #14718:
URL: https://github.com/apache/iotdb/pull/14718#discussion_r1919892606
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/schemachange/RenameDatabaseProcessor.java:
##########
@@ -47,9 +47,14 @@ public class RenameDatabaseProcessor implements
PipeProcessor {
@Override
public void validate(PipeParameterValidator validator) throws Exception {
validator.validateRequiredAttribute(PROCESSOR_RENAME_DATABASE_NEW_DB_NAME);
- newDatabaseName =
validator.getParameters().getString(PROCESSOR_RENAME_DATABASE_NEW_DB_NAME);
+ final String database =
+
validator.getParameters().getString(PROCESSOR_RENAME_DATABASE_NEW_DB_NAME);
+ if (database == null) {
+ throw new PipeException("new database name cannot be null");
+ }
Review Comment:
No need. Because of
`validator.validateRequiredAttribute(PROCESSOR_RENAME_DATABASE_NEW_DB_NAME);`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]