cheese8 commented on a change in pull request #12372:
URL: https://github.com/apache/shardingsphere/pull/12372#discussion_r707944218



##########
File path: 
shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptRule.java
##########
@@ -125,24 +127,35 @@ private boolean 
isValidColumnConfigurationWithAlgorithmProvided(final AlgorithmP
     /**
      * Find encryptor.
      *
+     * @param schemaName schema name
      * @param logicTable logic table name
      * @param logicColumn logic column name
      * @return encryptor
      */
-    public Optional<EncryptAlgorithm> findEncryptor(final String logicTable, 
final String logicColumn) {
-        return tables.containsKey(logicTable) ? 
tables.get(logicTable).findEncryptorName(logicColumn).map(encryptors::get) : 
Optional.empty();
+    public Optional<EncryptAlgorithm> findEncryptor(final String schemaName, 
final String logicTable, final String logicColumn) {
+        if (!tables.containsKey(logicTable)) {
+            return Optional.empty();
+        }
+        Optional<EncryptAlgorithm> optionalEncryptor = 
tables.get(logicTable).findEncryptorName(logicColumn).map(encryptors::get);

Review comment:
       ok, fixed.




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