-
Notifications
You must be signed in to change notification settings - Fork 126
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: remove base::sqlparser::ident
since into()
is simpler
#437
Conversation
4d1b9cf
to
b72b6c6
Compare
"boolean_column".into(), | ||
ColumnRef::new(tab_ref, "boolean_column".into(), ColumnType::Boolean), |
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.
Are these always strings? Why not simplify this and abstract the into() conversions away so that the K,V pair becomes String, ColumnRef or &str, ColumnRef, same comment with the ColumnRef new field
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.
@Dustin-Ray These are sqlparser::ast::Ident
s. That's the easiest way to construct an Ident
from a string.
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.
@Dustin-Ray We used to use Identifier
and now use Ident
. Strings don't really one-on-one map to Ident
.
b72b6c6
to
ce4274d
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.
LGTM
🎉 This PR is included in version 0.63.1 🎉 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 change simplifies the codebase since
proof_of_sql::base::sqlparser::ident
only does one thing which is to callFrom<&str>
onIdent
. Let's simplify the codebase here.What changes are included in this PR?
See title.
Are these changes tested?
Yes.