Skip to content

Commit

Permalink
bug fix: fromValue should be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Khare authored and Kartik Khare committed Jun 30, 2022
1 parent 66b4254 commit a2860e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void init(PinotConfiguration config) {
String serverSideEncryption = config.getProperty(SERVER_SIDE_ENCRYPTION_CONFIG_KEY);
if (serverSideEncryption != null) {
try {
_serverSideEncryption = ServerSideEncryption.valueOf(serverSideEncryption);
_serverSideEncryption = ServerSideEncryption.fromValue(serverSideEncryption);
} catch (Exception e) {
throw new UnsupportedOperationException(String
.format("Unknown value '%s' for S3PinotFS config: 'serverSideEncryption'. Supported values are: %s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void init(PinotConfiguration config) {
String serverSideEncryption = config.getProperty(SERVER_SIDE_ENCRYPTION_CONFIG_KEY);
if (serverSideEncryption != null) {
try {
_serverSideEncryption = ServerSideEncryption.valueOf(serverSideEncryption);
_serverSideEncryption = ServerSideEncryption.fromValue(serverSideEncryption);
} catch (Exception e) {
throw new UnsupportedOperationException(String
.format("Unknown value '%s' for S3PinotFS config: 'serverSideEncryption'. Supported values are: %s",
Expand Down

0 comments on commit a2860e6

Please sign in to comment.