Skip to content

More clear error on unsupported IN using subqueries instead of expressions #622

Closed
@campoy

Description

@campoy

When running this request, I get a very unclear error. What is not supported exactly?

SELECT *
FROM trees
WHERE tree_hash IN (
  SELECT tree_hash
  FROM commits
  WHERE commit_hash = '5e5f7e53896a171959c34483a60db5770a8abac0'
)

The error message doesn't necessarily help explain why this is not supported.

Query Failed - unknown error: unsupported syntax: &sqlparser.Subquery{Select:(*sqlparser.Select)(0xc000a5e340)}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions