Skip to content

Projection removes antijoin constraints #558

@fabiansinz

Description

@fabiansinz

I have a collection stimuli that I wanted to extend. The imagenet.Album tables have a field called collection_id. In the first line, I identify new images that are not yet in the existing set of stimuli. Note that the stimulus.StaticImage.ImageNet tables does not have collection_id.

In the second line I create a selection of new stimuli and directly give them a new collection_id. However, when I do that, datajoint forgets about the antijoin constraints above. When I remove the collection_id=3 call the antijoin constraints are applied correctly.

candidates = stimulus.StaticImage.ImageNet()  - imagenet.Album.Single() - imagenet.Album.Oracle()
selection = candidates.proj('image_class', 'image_id', collection_id='3')```

Metadata

Metadata

Labels

bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions