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

chore(deps): update sqlparser requirement from 0.35 to 0.36 #7037

Closed
wants to merge 4 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 20, 2023

Updates the requirements on sqlparser to permit the latest version.

Changelog

Sourced from sqlparser's changelog.

[0.35.0] 2023-06-23

Added

Fixed

  • Fixed precedence of unary negation operator with operators: Mul, Div and Mod (#902) - Thanks @​izveigor

Changed

  • Add support_group_by_expr to Dialect trait (#896) - Thanks @​jdye64
  • Update criterion requirement from 0.4 to 0.5 in /sqlparser_bench (#890) - Thanks @​dependabot (!!)

[0.34.0] 2023-05-19

Added

Changed

Fixed

[0.33.0] 2023-04-10

Added

  • Support for Mysql Backslash escapes (enabled by default) (#844) - Thanks @​cobyge

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [sqlparser](https://github.com/sqlparser-rs/sqlparser-rs) to permit the latest version.
- [Changelog](https://github.com/sqlparser-rs/sqlparser-rs/blob/main/CHANGELOG.md)
- [Commits](apache/datafusion-sqlparser-rs@v0.35.0...v0.35.0)

---
updated-dependencies:
- dependency-name: sqlparser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@github-actions github-actions bot added sql SQL Planner core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jul 20, 2023
@@ -415,13 +415,13 @@ select c1/c5 from decimal_simple;


query T
select arrow_typeof(c5%cast(0.00001 as decimal(5,5))) from decimal_simple limit 1;
select arrow_typeof(c5 % cast(0.00001 as decimal(5,5))) from decimal_simple limit 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this was due to apache/datafusion-sqlparser-rs#913 from @izveigor where without a space this is parsed to something different.

I think this is a bug in sqlparser

c1%c5 is being parsed like this (note the value is 5, not c5)

                                BinaryOp {
                                    left: Identifier(
                                        Ident {
                                            value: "c1",
                                            quote_style: None,
                                        },
                                    ),
                                    op: Modulo,
                                    right: Value(
                                        Number(
                                            "5",
                                            false,
                                        ),
                                    ),
                                },

With spaces, c1 % c5 is parsed correctly:

                                BinaryOp {
                                    left: Identifier(
                                        Ident {
                                            value: "c1",
                                            quote_style: None,
                                        },
                                    ),
                                    op: Modulo,
                                    right: Identifier(
                                        Ident {
                                            value: "c5",
                                            quote_style: None,
                                        },
                                    ),
                                },```

I will file a ticket in sqlparser

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

#7051 with upgrade with fix

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 24, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/cargo/main/sqlparser-0.36 branch July 24, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-dependencies core Core DataFusion crate sql SQL Planner sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant