Yicong-Huang commented on code in PR #4024:
URL: https://github.com/apache/texera/pull/4024#discussion_r2526427814


##########
common/workflow-core/src/main/scala/org/apache/amber/core/tuple/Tuple.scala:
##########
@@ -112,6 +112,17 @@ case class Tuple @JsonCreator() (
 
 object Tuple {
 
+  /** Build a Tuple from (name -> value) pairs, coercing values to the schema 
types. */
+  def of(schema: Schema, values: (String, Any)*): Tuple = {

Review Comment:
   I don't think this is related to type ops? Can we remove them from this PR?



##########
common/workflow-core/src/main/scala/org/apache/amber/core/tuple/AttributeTypeUtils.scala:
##########
@@ -387,6 +387,137 @@ object AttributeTypeUtils extends Serializable {
     }
   }
 
+  /** Three-way compare for the given attribute type.
+    * Returns < 0 if left < right, > 0 if left > right, 0 if equal.
+    * Null semantics: null < non-null (both null => 0).
+    */
+  @throws[UnsupportedOperationException]
+  def compare(left: Any, right: Any, attrType: AttributeType): Int =

Review Comment:
   I think it is important to have test cases for those fundamental util 
functions. Do we have tests?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to