Skip to content
Source
Sign inSign up
TanStack/db

Subquery doesn't work in leftJoin clause with auto indexing #494

ClosedUziniii(GitHub profile, opens in a new tab) opened this issue 2 comments
  1. samwillis assignedkevin-dp

  2. Thanks for the report @Uziniii - it looks like there is a bug as this should work.

    This appears to be an issue with the lazy loading of indexed collections in a join.

    Two things to note, if you change the leftJoin to an innerJoin or rightJoin it works, as does settings autoIndex: 'off' on both source collection.

    I suspect the logic around marking a joined collection as lazy is not working when there is a sub query rather than collection.

    @kevin-dp can you pick this one up?

  3. samwillis changed the title

  4. Thanks for the reproduction, this helped me track down the issue and i fixed it in #501

  5. KyleAMathews closed this

Sign in to join this conversation.