Unstructured-IO / unstructured-ingest

Apache License 2.0
20 stars 19 forks source link

fix: AstraDB precheck suceeds on non-existant collections #228

Closed ds-filipknefel closed 1 week ago

ds-filipknefel commented 1 week ago

Bug description

Precheck succeeds despite collection passed in parameters not existing

Solution

Just getting collection with get_collection() doesn't validate existance

an AsyncCollection instance, representing the desired collection (but without any form of validation).

so we run options() after getting a Collection which will fails if collection doesn't exist.