marvelefe commented on code in PR #27470:
URL: https://github.com/apache/datafusion/pull/27470#discussion_r4607129593


##########
datafusion/sqllogictest/test_files/explain.slt:
##########
@@ -264,6 +264,23 @@ physical_plan DataSourceExec: file_groups={1 group: 
[[WORKSPACE_ROOT/datafusion/
 statement ok
 set datafusion.explain.show_schema = false;
 
+### tests for EXPLAIN with display equivalences enabled
+statement ok
+set datafusion.explain.show_equivalences = true;
+
+query TT
+EXPLAIN SELECT a, b, c FROM simple_explain_test ORDER BY a;
+----
+logical_plan
+01)Sort: simple_explain_test.a ASC NULLS LAST
+02)--TableScan: simple_explain_test projection=[a, b, c]
+physical_plan
+01)SortExec: expr=[a@0 ASC NULLS LAST], preserve_partitioning=[false], 
facts=[order: [a@0 ASC NULLS LAST]]
+02)--DataSourceExec: file_groups={1 group: 
[[WORKSPACE_ROOT/datafusion/core/tests/data/example.csv]]}, projection=[a, b, 
c], file_type=csv, has_header=true, facts=[none]

Review Comment:
   @jayzhan211 Added the case. It covers an equal class for `a/b`, a constant 
`c = 5`, and a literal `5` that's skipped in equal classes.



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