Skip to content

Commit

Permalink
fix IT
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Jun 28, 2024
1 parent 514d51a commit 1ee02fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class FlintOpenSearchClient implements FlintClient {
Set.of(' ', ',', ':', '"', '+', '/', '\\', '|', '?', '#', '>', '<');

private final static Function<String, String> SHARD_ID_PREFERENCE =
shardId -> "_shards:"+shardId;
shardId -> shardId == null ? shardId : "_shards:"+shardId;

private final FlintOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ object PartitionInfo {
/**
* Creates a PartitionInfo instance.
*
* @param partitionName The name of the partition.
* @param settings The settings of the partition.
* @return An instance of PartitionInfo.
* @param partitionName
* The name of the partition.
* @param settings
* The settings of the partition.
* @return
* An instance of PartitionInfo.
*/
def apply(partitionName: String, settings: String): PartitionInfo = {
val shards =
Expand All @@ -39,8 +42,10 @@ object PartitionInfo {
/**
* Extracts the number of shards from the settings string.
*
* @param settingStr The settings string.
* @return The number of shards.
* @param settingStr
* The settings string.
* @return
* The number of shards.
*/
def numberOfShards(settingStr: String): Int = {
val setting = JsonMethods.parse(settingStr)
Expand Down

0 comments on commit 1ee02fd

Please sign in to comment.