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

Exact Match for JOINs without the ON clause #82

Open
hrshtv opened this issue Oct 23, 2022 · 0 comments
Open

Exact Match for JOINs without the ON clause #82

hrshtv opened this issue Oct 23, 2022 · 0 comments

Comments

@hrshtv
Copy link

hrshtv commented Oct 23, 2022

Consider the below case:

predicted = "SELECT professionals.first_name , professionals.last_name FROM professionals JOIN treatments ON professionals.professional_id = treatments.professional_id WHERE treatments.cost_of_treatment<(SELECT AVG( treatments.cost_of_treatment ) FROM treatments)"
gold = "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )"

I get exact match = 1 for this (using eval_exact_match). Is this by design? Since the predicted SQL has an additional ON clause after the JOIN.

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

No branches or pull requests

1 participant