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

Fix sqlglot>=23.0.0 issue #2079

Merged
merged 7 commits into from
Mar 25, 2024
Merged

Conversation

RobinL
Copy link
Member

@RobinL RobinL commented Mar 19, 2024

Closes #2072, see that issue for details
Closes #2075
Closes #2076

@RobinL RobinL linked an issue Mar 19, 2024 that may be closed by this pull request
2 tasks
@ADBond
Copy link
Contributor

ADBond commented Mar 20, 2024

I think there will also be similar updates needed to SQLTask and _exact_match_colname

@RobinL
Copy link
Member Author

RobinL commented Mar 20, 2024

Oops - that's me being overly optimistic, and also forgetting the tests are running against old SQL glot so of course they pass. Good spot.

I've updated the other methods, and updated the lockfile.

You can see in CI that tests passed for both the old and the new lockfile so i think we should be covered.

Copy link
Contributor

@ThomasHepworth ThomasHepworth left a comment

Choose a reason for hiding this comment

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

Thanks Robin, this looks great.

Just to confirm, I've tested the code against the following SQLglot versions:

  • 23.0.0
  • 19.0.0
  • 13.0.0

Everything is working as expected.

splink/comparison_level.py Outdated Show resolved Hide resolved
@RobinL RobinL merged commit 4129d18 into master Mar 25, 2024
10 checks passed
@RobinL RobinL deleted the 2072-sqlglot-2300-breaks-em-training branch March 25, 2024 17:04
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.

ERROR - IndexError: list index out of range Sqlglot 23.0.0 breaks EM Training
3 participants