You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/01/08 09:08:00 UTC
[jira] [Assigned] (SPARK-41940) Infer IsNotNull constraints for complex join expressions
[ https://issues.apache.org/jira/browse/SPARK-41940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-41940:
------------------------------------
Assignee: Apache Spark
> Infer IsNotNull constraints for complex join expressions
> --------------------------------------------------------
>
> Key: SPARK-41940
> URL: https://issues.apache.org/jira/browse/SPARK-41940
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Wan Kun
> Assignee: Apache Spark
> Priority: Major
>
> Infer IsNotNull constraints for complex join expressions could help filter a lot of rows before join.
> For example,
> {code:sql}
> CREATE TABLE t(id int, text string) using parquet;
> SELECT *
> FROM t as t1
> LEFT JOIN t as t2
> ON t1.text = get_json_object(t2.text, '$.not_exists_col');
> {code}
> we can infer *IsNotNull(get_json_object(t2.text, '$.not_exists_col'))* constraint along with *IsNotNull(t2.text)* to filter a lot of rows for the right side of the join.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org