Skip to content

Conversation

@serprex
Copy link
Contributor

@serprex serprex commented Nov 6, 2023

@tobyhede
Copy link
Contributor

@serprex Some more context on this change would be useful ... I assume it is updating syn?

@serprex
Copy link
Contributor Author

serprex commented Nov 14, 2023

Yes

@alamb
Copy link
Contributor

alamb commented Nov 18, 2023

Thank you for this contribution @serprex

@coveralls
Copy link

coveralls commented Nov 18, 2023

Pull Request Test Coverage Report for Build 7009097570

  • 0 of 17 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 87.706%

Changes Missing Coverage Covered Lines Changed/Added Lines %
derive/src/lib.rs 0 17 0.0%
Totals Coverage Status
Change from base Build 7008917646: -0.004%
Covered Lines: 17992
Relevant Lines: 20514

💛 - Coveralls

@serprex
Copy link
Contributor Author

serprex commented Nov 18, 2023

Won't have time this weekend to look into, but will look at how to run tests & fix next week (I only ran cargo test in derive crate)

@alamb alamb marked this pull request as draft November 20, 2023 19:45
@alamb
Copy link
Contributor

alamb commented Nov 20, 2023

Thanks @serprex . Converting to a draft while review feedback is being addressed. Please mark it ready for review when it is ready for another look

@serprex serprex marked this pull request as ready for review November 21, 2023 00:43
@alamb alamb changed the title derive: syn 2 Update sqlaprser-derive to use syn 2.0 Nov 21, 2023
@serprex serprex changed the title Update sqlaprser-derive to use syn 2.0 Update sqlparser-derive to use syn 2.0 Nov 22, 2023
@alamb
Copy link
Contributor

alamb commented Nov 27, 2023

Given I think this may be a non trivial change, I plan to merge this immediately after #1030

Then this PR will have maximum "bake time" for early adopters and others to try it out before I release it on crates.io

@alamb alamb mentioned this pull request Nov 27, 2023
5 tasks

[dependencies]
syn = "1.0"
syn = { version = "2.0", default-features = false, features = ["printing", "parsing", "derive", "proc-macro"] }
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems according to
https://docs.rs/syn/latest/syn/index.html#optional-features

Listing these 4 will at least avoid

clone-impls (enabled by default) — Clone impls for all syntax tree types.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me -- thank you @serprex

I took the liberty of merging up from main and reducing the feature set used

@alamb alamb merged commit 8d97330 into apache:main Nov 27, 2023
@alamb
Copy link
Contributor

alamb commented Nov 27, 2023

Thanks again @serprex and @tobyhede

serprex added a commit to PeerDB-io/sqlparser-rs that referenced this pull request Dec 3, 2023
serprex added a commit to PeerDB-io/sqlparser-rs that referenced this pull request Dec 11, 2023
Merge 0.40 + apache/datafusion-sqlparser-rs#1040

Upstream implemented END parsing as COMMIT on postgresql: apache/datafusion-sqlparser-rs#1035 allowing some convergence
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.

4 participants