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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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 marked this pull request as ready for review November 5, 2024 21:34
@iajoiner iajoiner force-pushed the feat/adapt-sqlparser branch 2 times, most recently from 5c949d7 to 40794eb Compare November 5, 2024 21:41
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants