MerginMaps / MerginMaps/geodiff

API to check whether two files have the same schema

Open
#164 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
183
Forks
21
Avg merge
9d 11h
Merged PRs (30d)
2

Description

When we need to check if two geopackages have the same structure, right now one needs to use GEODIFF_schema() twice and then compare JSON output - it would be nicer and more efficient if this was encapsulated in a single API call (and without the intermediate JSON output step)

E.g. bool GEODIFF_hasEqualSchema(file1, file2)

It would be useful if we could also report why the schema is not the same - user may have a hard time to understand what's wrong without extra hint like "Table ABC: new column XY"

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

Start by locating the GEODIFF_schema API and the code that compares its JSON output. Define the proposed equality API's result and how schema differences should be reported, then identify or add coverage for matching schemas and representative differences such as a new column.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.