-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Refactor MetadataDeleteNode to spi Plan #25430
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
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
Summary: Rollback Plan: Differential Revision: D77249220
a08c457 to
21d5696
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
Summary: Rollback Plan: Differential Revision: D77249220
21d5696 to
ac0a774
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
presto-spi/src/main/java/com/facebook/presto/spi/plan/MetadataDeleteNode.java
Show resolved
Hide resolved
| @Immutable | ||
| public class MetadataDeleteNode | ||
| extends InternalPlanNode | ||
| extends PlanNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ghelmling InternalPlanNode access issue after switching package
|
@ghelmling MetadataDeleteOptimizer.findNode() implementation contains ExchangeNode, which is also in package com.facebook.presto.sql.planner.plan. Any thoughts on how to use ExchangeNode in FB's Metalake optimizer? A refactor similar to MetadataDeleteNode for ExchangeNode would be quite large Edit: Discussed offline, the optimization can be done slightly differently, instead of using ExchangeNode |
|
lgtm! Thanks for the change. You'll just need committer approval. |
|
@natashasehgal has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: ## Description Refactor MetadeleteNode from com.facebook.presto.sql.planner.plan.MetadataDeleteNode to com.facebook.presto.spi.plan.MetadataDeleteNode, ## Motivation and Context Refactor so Metadata Optimization can be used in FB Metalake optimization ## Impact No impact Test Plan: - [x] Unit tests ## Contributor checklist - [x] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [x] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [x] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [x] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [x] Adequate tests were added if applicable. - [x] CI passed. ## Release Notes Please follow [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines) and fill in the release notes below. ``` == NO RELEASE NOTE == ``` Rollback Plan: Differential Revision: D77249220 Pulled By: natashasehgal
93d4248 to
7b23a46
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
|
@natashasehgal has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
hantangwangd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the refactoring, overall looks good to me, just one nit.
Besides, there seems to be a couple of typos in the commit message—it should be MetadataDeleteNode instead of MetadeleteNode.
Summary: ## Description Refactor MetadeleteNode from com.facebook.presto.sql.planner.plan.MetadataDeleteNode to com.facebook.presto.spi.plan.MetadataDeleteNode, ## Motivation and Context Refactor so Metadata Optimization can be used in FB Metalake optimization ## Impact No impact Test Plan: - [x] Unit tests ## Contributor checklist - [x] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [x] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [x] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [x] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [x] Adequate tests were added if applicable. - [x] CI passed. ## Release Notes Please follow [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines) and fill in the release notes below. ``` == NO RELEASE NOTE == ``` Rollback Plan: Differential Revision: D77249220 Pulled By: natashasehgal
7b23a46 to
ecfdcfb
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
Summary: ## Description Refactor MetadeleteNode from com.facebook.presto.sql.planner.plan.MetadataDeleteNode to com.facebook.presto.spi.plan.MetadataDeleteNode, ## Motivation and Context Refactor so Metadata Optimization can be used in FB Metalake optimization ## Impact No impact Test Plan: - [x] Unit tests ## Contributor checklist - [x] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [x] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [x] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [x] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [x] Adequate tests were added if applicable. - [x] CI passed. ## Release Notes Please follow [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines) and fill in the release notes below. ``` == NO RELEASE NOTE == ``` Rollback Plan: Differential Revision: D77249220 Pulled By: natashasehgal
ecfdcfb to
dac3b01
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77249220 |
|
@natashasehgal has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
You're right updated these typos, and removed unnecessary function |
|
@natashasehgal has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Description
Refactor MetadataDeleteNode from com.facebook.presto.sql.planner.plan.MetadataDeleteNode to com.facebook.presto.spi.plan.MetadataDeleteNode,
Motivation and Context
Refactor so Metadata Optimization can be used in FB Metalake optimization
Impact
No impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.