X-lab2017 / open-digger

Open source analysis tools
https://open-digger.cn
Apache License 2.0
286 stars 85 forks source link

[Question] Why does the same repository have two different IDs in the clickhouse? #1415

Closed Peng99999 closed 10 months ago

Peng99999 commented 10 months ago

Description

When attempting to query the "repo_id" by "repo_name" in the "gh_events" table, I noticed that the same repository has multiple IDs, as shown in the image below. I would like to ask what the reason for this and which ID should be used to represent the “repo_id” for this repository.

image

image

5f3903108ff4cd5faf984ea88fee7fa

frank-zsy commented 10 months ago

In the GitHub events log, one repo ID may have multiple different repo names and one repo name also may have multiple different IDs. The reason is that:

Peng99999 commented 10 months ago

I got it. Thanks !