beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amaliu...@apache.org
Subject [beam] branch master updated: [BEAM-10925] Default to empty maps in UserFunctionDefinitions.Builder.
Date Mon, 28 Dec 2020 23:22:53 GMT
This is an automated email from the ASF dual-hosted git repository.

amaliujia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 894231f  [BEAM-10925] Default to empty maps in UserFunctionDefinitions.Builder.
     new 7ef8bd1  Merge pull request #13628 from ibzib/ufd-builder
894231f is described below

commit 894231fc87bd4cc1a203a4753723ff9a609d2b36
Author: Kyle Weaver <kcweaver@google.com>
AuthorDate: Mon Dec 28 11:51:22 2020 -0800

    [BEAM-10925] Default to empty maps in UserFunctionDefinitions.Builder.
---
 .../extensions/sql/zetasql/translation/UserFunctionDefinitions.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/UserFunctionDefinitions.java
b/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/UserFunctionDefinitions.java
index 792c31c..395ad5e 100644
--- a/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/UserFunctionDefinitions.java
+++ b/sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/translation/UserFunctionDefinitions.java
@@ -48,6 +48,8 @@ public abstract class UserFunctionDefinitions {
   }
 
   public static Builder newBuilder() {
-    return new AutoValue_UserFunctionDefinitions.Builder();
+    return new AutoValue_UserFunctionDefinitions.Builder()
+        .setSqlScalarFunctions(ImmutableMap.of())
+        .setSqlTableValuedFunctions(ImmutableMap.of());
   }
 }


Mime
View raw message