We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cartoframes/cartoframes/data/observatory/enrichment/enrichment_service.py
Line 329 in e61ead0
If we add a space before the AND it might take care of an error I get when trying to apply two VariableFilters:
AND
[{'reason': 'invalidQuery', 'location': 'query', 'message': 'Syntax error: Missing whitespace between literal and alias at [32:65]'}]
Here's my code:
enriched_data = enrich.enrich_polygons( polys, variables=dataset_vars, filters=[ VariableFilter( Variable.get("date_range_star_d1bbce15"), "= 1567296000 " ), VariableFilter(dataset_vars[-1], " is not null "), ], aggregation={dataset_vars[-1].id: "ARRAY_AGG"}, )
If I add spaces around the filter condition in the VariableFilter it works just fine but when I remove the spaces that error shows up.
For example:
# this works filters=[ VariableFilter( Variable.get("date_range_star_d1bbce15"), "= 1567296000 " ), VariableFilter(dataset_vars[-1], " is not null "), ], # this doesn't work filters=[ VariableFilter( Variable.get("date_range_star_d1bbce15"), "= 1567296000" ), VariableFilter(dataset_vars[-1], "is not null"), ],
The text was updated successfully, but these errors were encountered:
This could be solved with #1397.
cc @oleurud.
Sorry, something went wrong.
🚀 It should be solved. Take into account #1406
@andy-esch could you check this issue has been solved?
Already solved
No branches or pull requests
cartoframes/cartoframes/data/observatory/enrichment/enrichment_service.py
Line 329 in e61ead0
If we add a space before the
AND
it might take care of an error I get when trying to apply two VariableFilters:Here's my code:
If I add spaces around the filter condition in the VariableFilter it works just fine but when I remove the spaces that error shows up.
For example:
The text was updated successfully, but these errors were encountered: