You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/15 16:20:51 UTC

[GitHub] [arrow-datafusion] andygrove opened a new issue #345: Indentation is incorrect for joins in formatted physical plans

andygrove opened a new issue #345:
URL: https://github.com/apache/arrow-datafusion/issues/345


   **Describe the bug**
   The new physical plan formatting code does not handle joins correctly. Both children of a join should be shown at the same indent level. 
   
   Here is an example of an incorrectly formatted plan:
   
   ```
   ballista-executor_1   |     HashAggregateExec: mode=Partial, gby=[l_shipmode], aggr=[SUM(CASE WHEN #o_orderpriority Eq Utf8("1-URGENT") Or #o_orderpriority Eq Utf8("2-HIGH") THEN Int64(1) ELSE Int64(0) END), SUM(CASE WHEN #o_orderpriority NotEq Utf8("1-URGENT") And #o_orderpriority NotEq Utf8("2-HIGH") THEN Int64(1) ELSE Int64(0) END)]
   ballista-executor_1   |       CoalesceBatchesExec: target_batch_size=4096
   ballista-executor_1   |         HashJoinExec: mode=CollectLeft, join_type=Inner, on=[("l_orderkey", "o_orderkey")]
   ballista-executor_1   |           CoalesceBatchesExec: target_batch_size=4096
   ballista-executor_1   |             FilterExec: l_shipmode IN ([Literal { value: Utf8("MAIL") }, Literal { value: Utf8("SHIP") }]) AND l_commitdate < l_receiptdate AND l_shipdate < l_commitdate AND l_receiptdate >= CAST(1994-01-01 AS Date32) AND l_receiptdate < CAST(1995-01-01 AS Date32)
   ballista-executor_1   |               CsvExec: source=Path(/data/lineitem.tbl: [/data/lineitem.tbl]), has_header=false
   ballista-executor_1   |                 CsvExec: source=Path(/data/orders.tbl: [/data/orders.tbl]), has_header=false
   
   ```
   
   **To Reproduce**
   Run the integration tests and look at the logs (once https://github.com/apache/arrow-datafusion/pull/344 is merged).
   
   **Expected behavior**
   Both children of a join should be shown at the same indent level. 
   
   **Additional context**
   None
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] andygrove commented on issue #345: Indentation is incorrect for joins in formatted physical plans

Posted by GitBox <gi...@apache.org>.
andygrove commented on issue #345:
URL: https://github.com/apache/arrow-datafusion/issues/345#issuecomment-841687467


   @alamb fyi


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [arrow-datafusion] Dandandan closed issue #345: Indentation is incorrect for joins in formatted physical plans

Posted by GitBox <gi...@apache.org>.
Dandandan closed issue #345:
URL: https://github.com/apache/arrow-datafusion/issues/345


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org