Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <[email protected]>
  • Loading branch information
penghuo committed Oct 4, 2023
1 parent c9da19f commit 8154c02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ private URI parseUri(String opensearchUri, String datasourceName) {
}
}

public Builder structuredStreaming() {
config.put("spark.flint.job.type", "streaming");

public Builder structuredStreaming(Boolean isStructuredStreaming) {
if (isStructuredStreaming) {
config.put("spark.flint.job.type", "streaming");
}
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private StartJobRequest getStartJobRequestForIndexRequest(
.dataSource(
dataSourceService.getRawDataSourceMetadata(
dispatchQueryRequest.getDatasource()))
.structuredStreaming()
.structuredStreaming(indexDetails.getAutoRefresh())
.build()
.toString(),
tags,
Expand Down

0 comments on commit 8154c02

Please sign in to comment.