Skip to content

Conversation

@AmirHesamSH
Copy link
Contributor

Conjunction string is changing in every iteration. Now, conjunction string is created for every iteration.

@mdboom
Copy link
Contributor

mdboom commented Jan 27, 2025

Can you provide more detail on what this is fixing?

@AmirHesamSH
Copy link
Contributor Author

The function "normalize.normalize" change the content of "conjunction" string to its normalized form. So, from the second iteration, "conjunction" is the normalized form of the original string.
To fix this, I just set the input string for every iteration.

@mdboom
Copy link
Contributor

mdboom commented Jan 28, 2025

Thanks for the explanation. That makes sense.

Since this will change the behavior of the benchmark, it will no longer be comparable to previously collected data from this benchmark. In these situations, what we normally do is create a new benchmark -- e.g. sqlglot2 -- with the fix. Would you mind doing that?

KRRT7 and others added 2 commits January 28, 2025 16:52
Conjunction string is changing in every iteration. Now, conjunction string is created for every iteration.

Update sqlglot to V2

Fix test cases for sqlglot v2
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.

3 participants