haridsv commented on code in PR #1713:
URL: https://github.com/apache/phoenix/pull/1713#discussion_r1381189470


##########
phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java:
##########
@@ -1578,6 +1580,12 @@ public ExplainPlan getExplainPlan() throws SQLException {
 
                 @Override
                 public MutationState execute() throws SQLException {
+                    if (CDCUtil.isACDCIndex(
+                            
ExecutableDropIndexStatement.this.getIndexName().getName())) {
+                        throw new 
SQLExceptionInfo.Builder(CANNOT_DROP_CDC_INDEX).setTableName(
+                                
ExecutableDropIndexStatement.this.getIndexName().getName())

Review Comment:
   Nit: `ExecutableDropIndexStatement.this.getIndexName().getName()` could be 
assigned to a local variable to avoid repetition.



-- 
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]

Reply via email to