-
Notifications
You must be signed in to change notification settings - Fork 184
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
refactor!: proof_of_sql_parser::intermediate_ast::BinaryOp
with sqlparser::ast::BinaryOp
in the proof-of-sql crate
#362
Conversation
fa1a9bf
to
d29f3eb
Compare
@JayWhite2357 Can I add ignore clippy to this? If we go with clippy the signature of impl -> BinaryOP in sqlparser.rs need to get changed? Which approach could be the best here? |
@varshith257 If you think clippy is being really absurd you can add ignores. |
2fa0d76
to
5278227
Compare
crates/proof-of-sql/src/base/database/column_operation_error.rs
Outdated
Show resolved
Hide resolved
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.
Please rebase with main
144a86f
to
eb70802
Compare
proof_of_sql_parser::intermediate_ast::BinaryOp
with sqlparser::ast::BinaryOp
in the proof-of-sql crate
db21763
to
37c1e84
Compare
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.
Looks great! Can we pass in references to not trigger clippy::needless_pass_by_value
?
@iajoiner This is the conflict #362 (comment) |
@varshith257 OK. Actually in this case I think it is better to comply. Normally it shouldn't hurt to add a few &. If not please let me know. |
37c1e84
to
1e06299
Compare
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.
Really thanks! This is awesome!
P.S. I don't really think we need to make changes in this PR to satisfy clippy::needless_pass_by_value
since we pass in UnaryOp
by value as well and clippy doesn't flag that.
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.
Looks good. Only request is the clippy lint.
You shouldn't need to change |
1e06299
to
59499d1
Compare
e6792f7
to
0149422
Compare
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 fixes!
0149422
to
ba1e13a
Compare
ba1e13a
to
e337e65
Compare
🎉 This PR is included in version 0.47.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.
Please go through the following checklist
!
is used if and only if at least one breaking change has been introduced.source scripts/run_ci_checks.sh
.Rationale for this change
This PR addresses the need to replace the
proof_of_sql_parser::intermediate_ast::BinaryOp
with thesqlparser::ast::BinaryOp
in theproof-of-sql
crate as part of a larger transition toward integrating thesqlparser
.This change is a subtask of issue #235, with the main goal of streamlining the repository by switching to the
sqlparser
crate and gradually replacing intermediary constructs likeproof_of_sql_parser::intermediate_ast
withsqlparser::ast
.What changes are included in this PR?
proof_of_sql_parser::intermediate_ast::BinaryOp
have been replaced withsqlparser::ast::BinaryOp
BianryOp
has been updated to maintain the original functionality, ensuring no changes to the logic or behavior.BinaryOp
variants fromsqlparser
have been appropriately handled using existing error handling mechanisms (i.e., theUnsupported
variant inExpressionEvaluationError
).Are these changes tested?
Yes
Closes #349
Part of #235