diff --git a/core/trino-main/src/main/java/io/trino/metadata/ResolvedFunction.java b/core/trino-main/src/main/java/io/trino/metadata/ResolvedFunction.java index b79ab8b0a36..818e4fa50ce 100644 --- a/core/trino-main/src/main/java/io/trino/metadata/ResolvedFunction.java +++ b/core/trino-main/src/main/java/io/trino/metadata/ResolvedFunction.java @@ -76,7 +76,7 @@ public ResolvedFunction( @JsonProperty("id") FunctionId functionId, @JsonProperty("functionKind") FunctionKind functionKind, @JsonProperty("deterministic") boolean deterministic, - @JsonProperty("nullability") FunctionNullability functionNullability, + @JsonProperty("functionNullability") FunctionNullability functionNullability, @JsonProperty("typeDependencies") Map typeDependencies, @JsonProperty("functionDependencies") Set functionDependencies) { @@ -85,7 +85,7 @@ public ResolvedFunction( this.functionId = requireNonNull(functionId, "functionId is null"); this.functionKind = requireNonNull(functionKind, "functionKind is null"); this.deterministic = deterministic; - this.functionNullability = requireNonNull(functionNullability, "nullability is null"); + this.functionNullability = requireNonNull(functionNullability, "functionNullability is null"); this.typeDependencies = ImmutableMap.copyOf(requireNonNull(typeDependencies, "typeDependencies is null")); this.functionDependencies = ImmutableSet.copyOf(requireNonNull(functionDependencies, "functionDependencies is null")); checkArgument(functionNullability.getArgumentNullable().size() == signature.getArgumentTypes().size(), "signature and functionNullability must have same argument count");