Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update warning for type mismatches #1236

Open
daveatweaviate opened this issue Aug 6, 2024 · 0 comments
Open

Update warning for type mismatches #1236

daveatweaviate opened this issue Aug 6, 2024 · 0 comments

Comments

@daveatweaviate
Copy link
Contributor

Code like this

unindexed_response = water_temperatures.aggregate.over_all(
    group_by=GroupByAggregate(prop="location"),
    filters=Filter.by_property("unindexed_temp").greater_or_equal(80),
    return_metrics=Metrics("unindexed_temp").number(median=True, maximum=True, minimum=True),
)

Can return an error because the filter value (80) is type valueInt instead of type valueNumber

Update the current error message to return something more like this:

"The filter input is the wrong type. Property PROP is a NEEDED_TYPE, but the filter value is a INFERRED_TYPE. Update the filter value."

Slack link

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

No branches or pull requests

1 participant