E534 Fix sqlglot normalize benchmark by AmirHesamSH · Pull Request #380 · python/pyperformance · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@AmirHesamSH
Copy link
Contributor
@AmirHesamSH AmirHesamSH commented Jan 28, 2025

Update sqlglot to V2

In the current sqlglot normalized, conjunction string would be modified to its normalized form after the first iteration.
And for the remaining iterations, normalization function was applied to the normalized form of the original conjunction string.
Therefore, the performance of the first iteration would be different to the remaining iterations.
This causes unsuitability in performance reports.

To fix this issue, we created the V2 version, in which, a new conjunction string is created for every individual iteration.

@AmirHesamSH
Copy link
Contributor Author

@mdboom
I create a new pull request to fix the issue with sqlglot normalized.
It would be great if you set the test run.

@AmirHesamSH
Copy link
Contributor Author

So, the pull request seems ready :)
Please, let me know if I need to modify anything.
I also updated the description.

In the current sqlglot normalized, conjunction string would be modified to its normalized form after the first iteration.
And for the remaining iterations, normalization function was applied to the normalized form of the original conjunction string.
Therefore, the performance of the first iteration would be different to the remaining iterations.
This causes unsuitability in performance reports.

To fix this issue, we created the V2 version, in which, a new conjunction string is created for every individual iteration.
Copy link
Contributor
@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

Thanks, this is really helpful.

@mdboom mdboom merged commit 727a0aa into python:main Feb 4, 2025
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

0