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

remove some subquery and join constraints #451

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

brunocalza
Copy link
Collaborator

@brunocalza brunocalza commented Aug 16, 2024

Summary

This PR removes the following constraints

  • subquery on inserts
  • subquery on update
  • subquery on deletes
  • subquery and joins inside a insert + select statement

cc @dtbuchholz @asutula

Context

https://linear.app/tableland/issue/ENG-877/allow-more-complex-sql-subqueries-in-parser

parser_test.go Outdated Show resolved Hide resolved
dtbuchholz
dtbuchholz previously approved these changes Aug 16, 2024
Copy link

@dtbuchholz dtbuchholz left a comment

Choose a reason for hiding this comment

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

lgtm! left a comment but feel free to ignore if it doesn't make sense...those can be done at the JS client, if needed

to unlock some studio use cases

Signed-off-by: Bruno Calza <[email protected]>
@@ -4772,99 +4772,39 @@ func TestLimits(t *testing.T) {
})
}

func TestDisallowSubqueriesOnStatements(t *testing.T) {
func TestAllowSubqueriesOnStatements(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@asutula asutula left a comment

Choose a reason for hiding this comment

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

Great! Thanks for getting this done.

@brunocalza brunocalza merged commit a982c05 into main Aug 16, 2024
7 checks passed
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