You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2022/09/16 14:46:00 UTC

[jira] [Closed] (ARROW-17184) [R] Investigate Nodes missing from ExecPlan print out for nested queries

     [ https://issues.apache.org/jira/browse/ARROW-17184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neal Richardson closed ARROW-17184.
-----------------------------------
    Resolution: Not A Problem

The only missing nodes (afaict) are in the case where we have head/tail and have to evaluate multiple ExecPlans to support this in R. When the FetchNode PR lands and we can handle all of this in a single plan, this will be resolved. So there is no extra action to take here.

> [R] Investigate Nodes missing from ExecPlan print out for nested queries
> ------------------------------------------------------------------------
>
>                 Key: ARROW-17184
>                 URL: https://issues.apache.org/jira/browse/ARROW-17184
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Dragoș Moldovan-Grünfeld
>            Priority: Major
>
> *Update:* We currently do not print a plan for nested queries as that would involve the execution of the inner most query / queries. That is likely the reason why, in the chunk below, we do not see the filter and arrange nodes.
> ==========================
> *Original description:*
> Now that we can print an ExecPlan (ARROW-15016), we can investigate unexpected outputs. With the following chunk of code:
> {code:r}
> mtcars %>%
>   arrow_table() %>%
>   select(mpg, wt, cyl) %>% 
>   filter(mpg > 20) %>%
>   arrange(desc(wt)) %>%
>   head(3) %>%
>   show_exec_plan()
> #> ExecPlan with 3 nodes:
> #> 2:SinkNode{}
> #>   1:ProjectNode{projection=[mpg, wt, cyl]}
> #>     0:SourceNode{}
> {code}
>  * FilterNode disappears when head/tail are involved +
>  * we do not have additional information regarding the OrderBySinkNode
>  * the entry point is a SourceNode and not a TableSourceNode



--
This message was sent by Atlassian Jira
(v8.20.10#820010)