-
Notifications
You must be signed in to change notification settings - Fork 80
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
Remove query!
macro.
#236
Comments
/bounty $50 |
💎 $50 bounty • Space and TimeSteps to solve:
Thank you for contributing to spaceandtimelabs/sxt-proof-of-sql! Add a bounty • Share on socials
|
/attempt #236 Options |
💡 @akhilender-bongirwar submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
🎉 This issue has been resolved in version 0.34.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@JayWhite2357 I did not receive the bounty. I think you need to approve it on the Algora dashboard. |
// @iajoiner |
/attempt #236 Maybe I didn't do this before that might be reason I was not awarded the bounty but it is written optional in the guidelines.
|
🎉🎈 @akhilender-bongirwar has been awarded $50! 🎈🎊 |
Background and Motivation
Rust macros are a bit of a anti-pattern. In particular, the
query!
macro, which is used as a testing utility macro to testQueryExpr
, obfuscates the tests.Changes Required
query!
macro and replace it with explicit uses of the tested methods. For example,sxt-proof-of-sql/crates/proof-of-sql/src/sql/parse/query_expr_tests.rs
Lines 1166 to 1170 in e2eb590
get_test_accessor
so that it is explicit what the tables, columns, and data types are in theSchemaAccessor
. For example, the above query has at
table with the columnsi
,i0
, andi1
, all withBigInt
type. These columns should also be renamed to be slightly less generic and/or more helpful.query!
macro.NOTE: the macro is almost exclusively a macro that builds the query text. The actual functionality being tested should be essentially unchanged.
The text was updated successfully, but these errors were encountered: