Skip to content

Error: QueryFailedError: VT12001: unsupported: LEFT JOIN with derived tables #483

Discussion options

You must be logged in to vote

Hello @ehteshamshahzad,

Unfortunately, this is a current known issue with TypeORM and our Vitess layer.

A partial fix is already implemented within PlanetScale, but the full fix won't be available until after Vitess 17 releases at the end of this month and from there it may take a little while for us to roll out Vitess 17 internally within PlanetScale's infrastructure.

There is an unofficial TypeORM fork available that may be a bit out of date now that implements a workaround approach in the meanwhile if you're interested in having a more immediate option available if you're willing to try it.

If not, aside from the other option of setting synchronize: false that you mentioned, the best r…

Replies: 12 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ehteshamshahzad
Comment options

You must be logged in to vote
1 reply
@orware
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@orware
Comment options

Comment options

You must be logged in to vote
3 replies
@orware
Comment options

@mrjasan
Comment options

@orware
Comment options

Comment options

You must be logged in to vote
1 reply
@orware
Comment options

Comment options

You must be logged in to vote
1 reply
@orware
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@orware
Comment options

@icodealone
Comment options

@icodealone
Comment options

@eintxaurtieta
Comment options

@orware
Comment options

Comment options

You must be logged in to vote
2 replies
@orware
Comment options

@devkiloton
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikechabot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet