Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-34960][SQL][DOCS][FOLLOWUP] Improve doc for DSv2 aggregate push down #36311

Closed
wants to merge 1 commit into from

Conversation

c21
Copy link
Contributor

@c21 c21 commented Apr 22, 2022

What changes were proposed in this pull request?

This is a followup per comment in https://issues.apache.org/jira/browse/SPARK-34960, to improve the documentation for data source v2 aggregate push down of Parquet and ORC.

  • Unify SQL config docs between Parquet and ORC, and add the note that if statistics is missing from any file footer, exception would be thrown.
  • Also adding the same note for exception in Parquet and ORC methods to aggregate from statistics.

Though in future Spark release, we may improve the behavior to fallback to aggregate from real data of file, in case any statistics are missing. We'd better to make a clear documentation for current behavior now.

Why are the changes needed?

Give users & developers a better idea of when aggregate push down would throw exception.
Have a better documentation for current behavior.

Does this PR introduce any user-facing change?

Yes, the documentation change in SQL configs.

How was this patch tested?

Existing tests as this is just documentation change.

@github-actions github-actions bot added the SQL label Apr 22, 2022
@c21
Copy link
Contributor Author

c21 commented Apr 22, 2022

@cloud-fan and @huaxingao could you help take a look when you have time? Thanks.

@huaxingao huaxingao closed this in 86b8757 Apr 22, 2022
huaxingao pushed a commit that referenced this pull request Apr 22, 2022
…h down

### What changes were proposed in this pull request?

This is a followup per comment in https://issues.apache.org/jira/browse/SPARK-34960, to improve the documentation for data source v2 aggregate push down of Parquet and ORC.

* Unify SQL config docs between Parquet and ORC, and add the note that if statistics is missing from any file footer, exception would be thrown.
* Also adding the same note for exception in Parquet and ORC methods to aggregate from statistics.

Though in future Spark release, we may improve the behavior to fallback to aggregate from real data of file, in case any statistics are missing. We'd better to make a clear documentation for current behavior now.

### Why are the changes needed?

Give users & developers a better idea of when aggregate push down would throw exception.
Have a better documentation for current behavior.

### Does this PR introduce _any_ user-facing change?

Yes, the documentation change in SQL configs.

### How was this patch tested?

Existing tests as this is just documentation change.

Closes #36311 from c21/agg-doc.

Authored-by: Cheng Su <chengsu@fb.com>
Signed-off-by: huaxingao <huaxin_gao@apple.com>
(cherry picked from commit 86b8757)
Signed-off-by: huaxingao <huaxin_gao@apple.com>
@huaxingao
Copy link
Contributor

Merged to 3.3/master. Thanks @c21

@c21
Copy link
Contributor Author

c21 commented Apr 22, 2022

Thank you @huaxingao for review!

@c21 c21 deleted the agg-doc branch April 22, 2022 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants