[ 
https://issues.apache.org/jira/browse/SPARK-35688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17359775#comment-17359775
 ] 

todd.chen edited comment on SPARK-35688 at 6/9/21, 5:47 AM:
------------------------------------------------------------

in this case ,because get_json_object is  CodegenFallback, so in 
CollapseCodegenStages, supportCodegen  will return false, and spark will call 
`org.apache.spark.sql.execution.FilterExec.doExecute`, and use  
Predicate.create(condition, child.output)

if we remove condition  uid > 0 ,this plan supportCodegen and we can success 
execute this query 


was (Author: cjuexuan):
in this case ,because get_json_object is  CodegenFallback, so in 
CollapseCodegenStages, supportCodegen  will return false, and spark will call 
`org.apache.spark.sql.execution.FilterExec.doExecute`, and use  
Predicate.create(condition, child.output)

> GeneratePredicate eliminate will fail  in some case
> ---------------------------------------------------
>
>                 Key: SPARK-35688
>                 URL: https://issues.apache.org/jira/browse/SPARK-35688
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.1
>            Reporter: todd.chen
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to