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

Catalog().datasets_filter doesn't work #1229

Closed
alasarr opened this issue Nov 22, 2019 · 0 comments · Fixed by #1241
Closed

Catalog().datasets_filter doesn't work #1229

alasarr opened this issue Nov 22, 2019 · 0 comments · Fixed by #1241
Assignees
Labels

Comments

@alasarr
Copy link
Contributor

alasarr commented Nov 22, 2019

from cartoframes import CartoDataFrame
from cartoframes.data.observatory import Catalog
area_of_interest = CartoDataFrame.from_carto('manhattan_long_island')
Catalog().datasets_filter(filter_dataset=area_of_interest)

It returns a syntax error, because there is a problem with the SQL (see [)

SELECT t.* FROM datasets_public t WHERE t.geography_id = '['carto-do.unacast.geography_usa_latlon_v1'
 'carto-do.safegraph.geography_usa_latlon_2019'
 'carto-do.mastercard.geography_usa_zipcode_2019'
 'carto-do.mastercard.geography_usa_county_2019'
 'carto-do.mastercard.geography_usa_blockgroup_2019'
 'carto-do.mastercard.geography_usa_block_2019'
 'carto-do-public-data.tiger.geography_usa_blockgroup_2015'
 'carto-do-public-data.tiger.geography_usa_congressionaldistrictclipped_2015'
 'carto-do.carto.geography_usa_q17_v1'
 'carto-do-public-data.usa_naturalearth.geometry_usa_parksandprotectedlandspoint_410'
 'carto-do-public-data.usa_naturalearth.geometry_usa_parksandprotectedlandsarea_410'
 'carto-do-public-data.usa_naturalearth.geometry_usa_parksandprotectedlandsscalerank_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_admin1statesprovinceslines_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_populatedplaces_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_admin0antarcticclaimlimitlines_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_admin1statesprovincesscalerankminorislands_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_admin1labelpoints_410'
 'carto-do-public-data.usa_naturalearth.geometry_usa_parksandprotectedlandsline_410'
 'carto-do-public-data.glo_naturalearth.geometry_glo_roads_410'
@alasarr alasarr added the bug label Nov 22, 2019
@alasarr alasarr changed the title datasets_filter doesn't work Catalog().datasets_filter doesn't work Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants