-
Notifications
You must be signed in to change notification settings - Fork 83
refactor!: Remove get_ prefix from engine getters #804
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
==========================================
- Coverage 84.67% 84.67% -0.01%
==========================================
Files 83 83
Lines 19785 19780 -5
Branches 19785 19780 -5
==========================================
- Hits 16753 16748 -5
Misses 2213 2213
Partials 819 819 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
LGTM though I didn't check for exhaustiveness (grep for old strings).
One question: I'd prefer to normalize the FileSystemClient
with the other *Handler
abstractions. Perhaps we should rename this to StorageHandler
? (happy to open a separate PR - just thought of it as I was reviewing this)
I did. Hopefully I even did it correctly! Lots of doc comments updated, at least.
Interesting thought. Part of me thinks we should go ahead and make the change here, so all the breaking changes land at once. How 'bout this -- I'll make the change as a separate commit in this PR. Easy revert if others squawk. |
sounds great! I'm also happy to open a separate one |
Hmm, that change is actually bigger than this whole PR. Maybe better to have a separate PR after all. But I can go ahead and post it as stacked on this one, since I already did the work to learn this. |
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.
Just making sure as I am not a native speaker ... :).
The rename ExpressionHandler
--> EvaluationHandler
is motivated by the fact that we also have the null_row
API now, which does not actually handle an expression, but still evaluates something?
That, and also because very soon engines will need to evaluate predicates and not just expressions (see PR description):
(it would read a bit weird to have |
67a8b52
to
87bf4e9
Compare
## What changes are proposed in this pull request? Continuing the cleanup started by #804, rename the class to eliminate the last vestiges of (ancient) "client" nomenclature. ### This PR affects the following public APIs The renamed class (and module) are public. ## How was this change tested? Rename-only operation, no functional changes. Compilation suffices.
## What changes are proposed in this pull request? Continuing the cleanup started by delta-io#804, rename the class to eliminate the last vestiges of (ancient) "client" nomenclature. ### This PR affects the following public APIs The renamed class (and module) are public. ## How was this change tested? Rename-only operation, no functional changes. Compilation suffices.
What changes are proposed in this pull request?
Rust doesn't encourage the
get_
prefix for getters because it's redundant and anyway a getter is allowed to have the same name as the field it exposes. Remove the prefix from the various engine interfaces. Additionally, renameget_evaluator
asnew_expression_evaluator
to accurately reflect that it is NOT a getter at all, but actually creates a new expression evaluator.Finally, we also rename
ExpressionHandler
toEvaluationHandler
because that trait is used to create expression evaluators, not expressions. Additionally, future work will differentiate generic "expressions" from "predicates" (boolean-valued expressions with special evaluation semantics), and that will likely necessitate defining aEvaluationHandler::new_predicate_evaluator
method alongside thenew_expression_evaluator
method.This PR affects the following public APIs
All the methods and traits we change are public.
How was this change tested?
Rename-only operation, no functional changes. Compilation suffices.