-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from forcedotcom/develop
@W-12387797: 1.17.0 release for tableau user to use hyper engine as default option
- Loading branch information
Showing
13 changed files
with
154 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/com/salesforce/cdp/queryservice/enums/QueryEngineEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.salesforce.cdp.queryservice.enums; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public enum QueryEngineEnum { | ||
HYPER("hyper"), | ||
TRINO("trino"); | ||
|
||
private final String value; | ||
|
||
QueryEngineEnum(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* get QueryEngineEnum value. | ||
* | ||
* @param value String value | ||
* @return QueryEngineEnum | ||
*/ | ||
@JsonCreator | ||
public static QueryEngineEnum fromValue(String value) { | ||
for (QueryEngineEnum queryEngineEnum : QueryEngineEnum.values()) { | ||
if (queryEngineEnum.value.equals(value)) { | ||
return queryEngineEnum; | ||
} | ||
} | ||
|
||
throw new IllegalArgumentException("Unexpected value for QueryEngineEnum: '" + value + "'"); | ||
} | ||
|
||
@Override | ||
@JsonValue | ||
public String toString() { | ||
return String.valueOf(this.value); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/salesforce/cdp/queryservice/model/QueryConfigResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.salesforce.cdp.queryservice.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class QueryConfigResponse { | ||
String queryengine; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.