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

SqlSmith: Enable gen subqueries. Finding the bug and solving it #3935

Closed
2 tasks done
Tracked by #3896
marvenlee2486 opened this issue Jul 16, 2022 · 0 comments
Closed
2 tasks done
Tracked by #3896

SqlSmith: Enable gen subqueries. Finding the bug and solving it #3935

marvenlee2486 opened this issue Jul 16, 2022 · 0 comments
Assignees

Comments

@marvenlee2486
Copy link
Contributor

marvenlee2486 commented Jul 16, 2022

TODO list


I am debugging on the subqueries, in my knowledge there are many types of subquery
Scalar, Row subqueries (in clauses), Table subqueries
And there is Uncorrelated subquries, and Correlated Subquery.

Currently, sqlsmith seems to only support table subqueries that are used in FROM statement. (I dun think the case where x in select(...) is being implemented (I can think of implementing this in later time).

And there is a few bug I notice, (Still need more debugging)

  1. We cannot
Select * 
From t1, (select t1.x) 

but we can

select *
from t1,
where t1.x in (select t1.x)

Current SqlSmith does not generate the 2nd one. However, it wrongly generated the 1st one.

  1. Another one is regarding a bug in the correlated issue, Internal Error: correlated InputRef having some issue when group by table outside the subquery/ #3934

There may be more, let me fix the 1st one first.

@marvenlee2486 marvenlee2486 changed the title Enable gen subqueries. Not too sure what this is caused by. Enable gen subqueries. Finding the bug and solving it Jul 16, 2022
@marvenlee2486 marvenlee2486 changed the title Enable gen subqueries. Finding the bug and solving it SqlSmith: Enable gen subqueries. Finding the bug and solving it Jul 16, 2022
@marvenlee2486 marvenlee2486 self-assigned this Jul 18, 2022
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