Skip to content

Commit

Permalink
Merge pull request #1479 from Polber:jkinard/fix-elasticsearch
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 628428951
  • Loading branch information
cloud-teleport committed Apr 26, 2024
2 parents 7e29512 + 52c58c1 commit 5c9625e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private static PipelineResult run(BigQueryToElasticsearchOptions options) {
udfOut.apply(
"WriteToElasticsearch",
WriteToElasticsearch.newBuilder()
.setUserAgent("dataflow-bigquery-to-elasticsearch-template/v2")
.setOptions(options.as(BigQueryToElasticsearchOptions.class))
.build());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ private static PipelineResult run(GCSToElasticsearchOptions options) {
.setPythonUdfFunctionName(options.getPythonExternalTextTransformFunctionName());
} else {
lineToFailsafeJsonBuilder
.setJavascriptUdfFileSystemPath(options.getPythonExternalTextTransformGcsPath())
.setJavascriptUdfFunctionName(options.getPythonExternalTextTransformFunctionName());
.setJavascriptUdfFileSystemPath(options.getJavascriptTextTransformGcsPath())
.setJavascriptUdfFunctionName(options.getJavascriptTextTransformFunctionName());
}
PCollectionTuple convertedCsvLines =
readCsvLines.apply("ConvertLine", lineToFailsafeJsonBuilder.build());
Expand Down

0 comments on commit 5c9625e

Please sign in to comment.