comphead commented on code in PR #16910:
URL: https://github.com/apache/datafusion/pull/16910#discussion_r2233111585


##########
datafusion/physical-expr/src/equivalence/class.rs:
##########
@@ -1231,4 +1251,33 @@ mod tests {
 
         Ok(())
     }
+
+    #[test]
+    fn test_fields_equal() -> Result<()> {
+        let schema = create_test_schema()?;
+        let col_a = &col("a", &schema)?;
+        let col_c = &col("c", &schema)?;
+        let col_d = &col("d", &schema)?;
+        let col_e = &col("e", &schema)?;
+        // Field indices are 0, 1, 2, 3, 4 respectively

Review Comment:
   it is 4 columns `a, c, d, e`, but 5 indices, is it expected?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to