This is an automated email from the ASF dual-hosted git repository.
linxinyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/master by this push:
new e264a74262 fix: return error when attribute type is not set in UDF
(#3656)
e264a74262 is described below
commit e264a7426296c17e71e9323d928e99135a82ddb9
Author: Andy Zhang <[email protected]>
AuthorDate: Tue Aug 12 23:13:15 2025 -0700
fix: return error when attribute type is not set in UDF (#3656)
fixes #3555
---------
Signed-off-by: Andy Zhang <[email protected]>
Co-authored-by: Copilot <[email protected]>
---
.../src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java
b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java
index 36e19c1357..92d91f7ba0 100644
---
a/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java
+++
b/core/workflow-core/src/main/scala/edu/uci/ics/amber/core/tuple/Attribute.java
@@ -23,6 +23,7 @@ import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
+import javax.validation.constraints.NotNull;
import static com.google.common.base.Preconditions.checkNotNull;
@@ -45,12 +46,14 @@ public class Attribute implements Serializable {
this.attributeType = attributeType;
}
- @JsonProperty(value = "attributeName")
+ @JsonProperty(value = "attributeName", required = true)
+ @NotNull(message = "Attribute name is required")
public String getName() {
return attributeName;
}
- @JsonProperty(value = "attributeType")
+ @JsonProperty(value = "attributeType", required = true)
+ @NotNull(message = "Attribute type is required")
public AttributeType getType() {
return attributeType;
}