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

Tracking: Introduce per-module error type for frontend #2366

Open
5 of 7 tasks
Tracked by #4077
lmatz opened this issue May 7, 2022 · 6 comments
Open
5 of 7 tasks
Tracked by #4077

Tracking: Introduce per-module error type for frontend #2366

lmatz opened this issue May 7, 2022 · 6 comments
Labels
component/frontend Protocol, parsing, binder. type/refactor
Milestone

Comments

@lmatz
Copy link
Contributor

lmatz commented May 7, 2022

As mentioned in #1367.

Tracking:

@lmatz lmatz added type/refactor component/frontend Protocol, parsing, binder. labels May 7, 2022
@TennyZhuang
Copy link
Contributor

#2035 can be tracked in the issue

@lmatz lmatz changed the title Introduce per-crate error type for frontend Tracking: Introduce per-crate error type for frontend May 8, 2022
@likg227
Copy link
Contributor

likg227 commented May 10, 2022

How about OptimizeError?

@lmatz
Copy link
Contributor Author

lmatz commented May 10, 2022

How about OptimizeError?

Maybe an enum of PlanError? It seems the optimization rules return Option instead of Result, similar to Calcite returning a Null in the event of a failure of rule application.

But we will see whether it is necessary later and we can add it then.

@likg227
Copy link
Contributor

likg227 commented May 10, 2022

We do need it to check whether apply can be unnested or not.
#2187 (comment)

@likg227
Copy link
Contributor

likg227 commented May 10, 2022

The reason our current optimizer returns Option is for writting code easily........

@BugenZhao
Copy link
Member

After #14953, I believe there's a stronger motivation for addressing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/frontend Protocol, parsing, binder. type/refactor
Projects
None yet
Development

No branches or pull requests

6 participants