def METHOD_NAME(client, data_resource: MongoDBResource):
    # collection that doesn't exist
    with pytest.raises(AqueductError, match="Preview Execution Failed"):
        data_resource.collection("missing_table").find({})
    # valid collection, bad query, here "$or" is an invalid operator.
    with pytest.raises(AqueductError, match="Preview Execution Failed"):
        data_resource.collection("hotel_reviews").find({}, {"$or": ["1", "2"]})