You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "todd.chen (Jira)" <ji...@apache.org> on 2021/06/09 05:48:00 UTC

[jira] [Comment Edited] (SPARK-35688) GeneratePredicate eliminate will fail in some case

    [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org