metabase / metabase/metabase

Latitude and longitude fields don't have binning on MongoDB

Open
#45,005 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.Backend .Team/Drivers Database/Mongo Type:New Feature
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

### Describe the bug

fields that have latitude and longitude simply don't bin on MongoDB
![image](https://github.com/metabase/metabase/assets/1711649/0aef277f-2f21-4fb8-a11e-016eb240f974)

### To Reproduce

1) add MongoDB to Metabase
2) ensure that latitude and longitude have semantic types
3) try making a grid map with the people table

### Expected behavior

It should work in the same way as in the rest of the tables

### Logs

NA

### Information about your Metabase installation

```JSON
it has always been like that, I believe
```

### Severity

P2

### Additional context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by adding MongoDB, checking latitude and longitude semantic types, and creating a grid map with the people table. Trace how binning is handled for MongoDB compared with other tables; done means the grid map bins latitude and longitude consistently and the relevant behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, mongodb
Domain
data-visualization, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.