{"id":15060695,"url":"https://github.com/cartodb/analytics-toolbox-core","last_synced_at":"2025-10-10T22:02:40.601Z","repository":{"id":37386539,"uuid":"202936427","full_name":"CartoDB/analytics-toolbox-core","owner":"CartoDB","description":"A set of UDFs and Procedures to extend BigQuery, Snowflake, Redshift, Postgres and Databricks with Spatial Analytics capabilities","archived":false,"fork":false,"pushed_at":"2025-03-14T10:15:59.000Z","size":13378,"stargazers_count":192,"open_issues_count":10,"forks_count":44,"subscribers_count":28,"default_branch":"main","last_synced_at":"2025-03-26T19:44:57.236Z","etag":null,"topics":["analytics-toolbox","bigquery","carto","databricks","geospatial","gis","postgres","redshift","snowflake","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CartoDB.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-17T22:24:01.000Z","updated_at":"2025-03-22T12:17:43.000Z","dependencies_parsed_at":"2023-12-20T10:26:28.578Z","dependency_job_id":"f0b23b53-d5f8-4248-a2f2-4575325d2497","html_url":"https://github.com/CartoDB/analytics-toolbox-core","commit_stats":{"total_commits":463,"total_committers":37,"mean_commits":"12.513513513513514","dds":0.7084233261339092,"last_synced_commit":"94532b07a148ed025baf28190f89dd650688b785"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Fanalytics-toolbox-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Fanalytics-toolbox-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Fanalytics-toolbox-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CartoDB%2Fanalytics-toolbox-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CartoDB","download_url":"https://codeload.github.com/CartoDB/analytics-toolbox-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248608014,"owners_count":21132649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics-toolbox","bigquery","carto","databricks","geospatial","gis","postgres","redshift","snowflake","sql"],"created_at":"2024-09-24T23:03:14.911Z","updated_at":"2025-10-10T22:02:40.515Z","avatar_url":"https://github.com/CartoDB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CARTO Analytics Toolbox Core\n\nThe *CARTO Analytics Toolbox* is a set of UDFs and Stored Procedures to unlock Spatial Analytics. It is organized into modules based on the functionality they offer. This toolbox is cloud-native, which means it is available for different data warehouses: BigQuery, Snowflake, Redshift, Postgres, and Databricks. It is built on top of the data warehouse's GIS features, extending and complementing this functionality.\n\n| BigQuery | Snowflake | Redshift | Postgres | Databricks |\n|:--------:|:---------:|:--------:|:--------:|:----------:|\n|\u003cimg src=\"./clouds/bigquery/common/analytics-toolbox-bigquery.png\" width=80 height=80\u003e|\u003cimg src=\"./clouds/snowflake/common/analytics-toolbox-snowflake.png\" width=80 height=80\u003e|\u003cimg src=\"./clouds/redshift/common/analytics-toolbox-redshift.png\" width=80 height=80\u003e|\u003cimg src=\"./clouds/postgres/common/analytics-toolbox-postgres.png\" width=80 height=80\u003e|\u003cimg src=\"./clouds/databricks/common/analytics-toolbox-databricks.png\" width=80 height=80\u003e|\n\nThis repo contains the core open-source modules of the toolbox. CARTO offers a set of premium modules that are available for CARTO users.\n\n## Getting started\n\nUsing the functions on this project depends on the Datawarehouse you are using. In BigQuery and Snowflake you can access them directly as a shared resources without having to install them, for the rest you will have to install them locally on your database.\n\n### BigQuery\n\nYou can use directly the functions as they are globally shared in the US region.\n\n```sql\nSELECT `carto-os.carto.H3_CENTER`('84390cbffffffff')\n```\n\nIf you need to use them from the Europe region use:\n\n```sql\nSELECT `carto-os-eu.carto.H3_CENTER`('84390cbffffffff')\n```\n\nIf you need to install them on your own VPC or in a different region, follow the instructions later on.\n\n### Snowflake\n\nThe easiest way to start using these functions is to add them to your Datawarehouse through the [Snowflake Marketplace](https://www.snowflake.com/datasets/carto-analytics-toolbox/). Go there and install it using theregular methods. After that you should be able to use them on the location you have installed them. For example try:\n\n```sql\nSELECT carto_os.carto.H3_FROMGEOGPOINT(ST_POINT(-3.7038, 40.4168), 4)\n```\n\nIf you need to install them directly, not through the data share process, follow the instructions later on.\n\n### Redshift\n\nRight now the only way to get access the Analytics toolbox is by installing it directly on your database. Follow the instructions later on.\n\n## Documentation\n\n| Cloud | Documentation |\n|---|---|\n| BigQuery | https://docs.carto.com/analytics-toolbox-bigquery |\n| Snowflake | https://docs.carto.com/analytics-toolbox-snowflake |\n| Redshift | https://docs.carto.com/analytics-toolbox-redshift |\n| Postgres | https://docs.carto.com/analytics-toolbox-postgres |\n| Databricks | https://docs.carto.com/analytics-toolbox-databricks |\n\n## Development\n\n| Cloud | Development |\n|---|---|\n| BigQuery | [README.md](./clouds/bigquery/README.md) |\n| Snowflake | [README.md](./clouds/snowflake/README.md) |\n| Redshift | [README.md](./clouds/redshift/README.md) |\n| Postgres | [README.md](./clouds/postgres/README.md) |\n| Databricks | [README.md](./clouds/databricks/README.md) |\n\n### Useful make commands\n\nTo run tests, switch to a specific cloud directory. For example, Showflake: `cd clouds/snowflake`.  \n\n```\n# All tests\nmake test\n\n# Specific module(s)\nmake test modules=h3\nmake test modules=h3,transformations\n\n# Specific function(s)\nmake test functions=H3_POLYFILL\nmake test functions=H3_POLYFILL,ST_BUFFER\n```\n\n## Contribute\n\nThis project is public. We are more than happy of receiving feedback and contributions. Feel free to open a ticket with a bug, a doubt or a discussion, or open a pull request with a fix or a new feature.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartodb%2Fanalytics-toolbox-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcartodb%2Fanalytics-toolbox-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcartodb%2Fanalytics-toolbox-core/lists"}