Skip to content
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

feat: add basic sqlparser adaptions #338

Merged
merged 4 commits into from
Nov 7, 2024
Merged

feat: add basic sqlparser adaptions #338

merged 4 commits into from
Nov 7, 2024

Conversation

iajoiner
Copy link
Contributor

@iajoiner iajoiner commented Nov 5, 2024

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

Rationale for this change

In order to allow #235 to be done in time for JOIN-related integrations we need to get proof-of-sql-parser -> sqlparser adaptions done. Large parts of the work going forward can then become more manageable.

What changes are included in this PR?

  • add sqlparser.rs with adaptations

Are these changes tested?

Yes

@iajoiner iajoiner force-pushed the feat/adapt-sqlparser branch 8 times, most recently from 968124d to fbde9db Compare November 5, 2024 21:33
@iajoiner iajoiner requested a review from JayWhite2357 November 5, 2024 21:33
@iajoiner iajoiner marked this pull request as ready for review November 5, 2024 21:34
@iajoiner iajoiner force-pushed the feat/adapt-sqlparser branch 3 times, most recently from 40794eb to 4580d0a Compare November 6, 2024 14:56
Literal::Int128(n) => Value::Number(n.to_string(), false),
Literal::Decimal(n) => Value::Number(n.to_string(), false),
Literal::Boolean(b) => Value::Boolean(b),
Literal::Timestamp(_ts) => todo!(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this an Expr::TypedString? This is what sqlparser does. Then, this should be impl From<Literal> for Expr.

@iajoiner iajoiner requested a review from JayWhite2357 November 6, 2024 19:49
@iajoiner iajoiner force-pushed the feat/adapt-sqlparser branch 2 times, most recently from 4428efc to 26d19ad Compare November 6, 2024 19:56
@iajoiner iajoiner mentioned this pull request Nov 7, 2024
2 tasks
@iajoiner iajoiner force-pushed the feat/adapt-sqlparser branch from 2160bd2 to a2ce853 Compare November 7, 2024 06:13
@iajoiner iajoiner enabled auto-merge November 7, 2024 06:58
@iajoiner iajoiner merged commit ca82b96 into main Nov 7, 2024
11 checks passed
Copy link

github-actions bot commented Nov 7, 2024

🎉 This PR is included in version 0.36.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@iajoiner iajoiner deleted the feat/adapt-sqlparser branch November 12, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants