-
Notifications
You must be signed in to change notification settings - Fork 60
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
[lang] Remove wildcard imports #488
Conversation
- Replace the wildcard imports with explicit ones to make the code easier to read. - Also fixes some redundant import namespacing which was causing conflicts as a result of wildcard import. - Removes unused imports
Codecov Report
@@ Coverage Diff @@
## main #488 +/- ##
=============================================
+ Coverage 68.47% 80.91% +12.44%
- Complexity 1686 1687 +1
=============================================
Files 197 196 -1
Lines 24472 14305 -10167
Branches 4568 2944 -1624
=============================================
- Hits 16756 11575 -5181
+ Misses 6033 1776 -4257
+ Partials 1683 954 -729
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I'm not opposed to this, however, FYI, we haven't already done this already done this already due to the multiple branches and the havoc it will likely cause with merge conflicts. |
That's fair, however IMHO, the sooner we get to this the less headache we'll have down the track. |
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.
We have to do this at some point. Better sooner than later. Successful build is all we need. Ship it.
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.
I agree with what's been said already. This is some important tech debt to clean up sooner rather than later. However, we are currently working to merge one branch with a lot of changes into main
. To prevent further delays due to merge conflicts, I'd prefer to perform this work after the merge.
We have already held off on performing some other tech debt cleaning to post-merge (e.g.
- Draft PR for replacing ExprNode with PIG-generated PartiqlAst in EvaluatingCompiler #425 Deprecating
ExprNode
with PIG-generatedPartiqlAst
in the evaluator - Integrate ktlint into Gradle build #43 Integrating ktlint into Gradle build
).
I haven't looked too closely at the diffs, but it's entirely possible these changes won't result in many conflicts. We could merge this PR and revert it if we feel there are too many conflicts.
Good call-outs everyone! @alancai98 to move away from speculation realm by bringing more data: do we know what parts of codebase contribute to the upcoming merge? As this commit includes almost all files under |
Pretty much all parts of the codebase will be touched. The major updates will affect the evaluator ( Based on that, imo, we should hold off on removing wildcard imports till after the merge. There may also be other new files coming in to |
Thanks for the update @alancai98! I'll set this pull request as blocked until we get the merge in place, then. |
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 putting the effort in removing the wildcard imports! There were certainly a lot of files missing our style standards.
I have some concerns about some of the extra whitespace added. I marked most locations as a nit since they didn't span too many lines of code and could be easily fixed when we add ktlint. However, I think the added whitespace in EvaluatingCompiler
may make it hard to look at the git history/blame for some of the logic.
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.
* [lang] Remove wildcard imports - Replace the wildcard imports with explicit ones to make the code easier to read. - Also fixes some redundant import namespacing which was causing conflicts as a result of wildcard import. - Removes unused imports * Optimize imports
Issue #, if available: 484
Description of changes:
lang
package to make the code easier to read.of wildcard import.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.