Fix for "Top commented issues for each of the top repositories"

未關閉 適合新手
#21 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
clickhouse, html, sql

研究方向

從 queries.sql 第 671 行附近的聚合開始,並將其與 index.html 第 3685 行附近的對應查詢進行比較。檢查 top-commented-issues 結果,以確認每一列的 stars 值都獲得保留,而不是跨列合併,然後驗證兩個副本產生的輸出相同。

由索引模型根據 Issue 內容生成。

描述

I think sum is wrong here. Each row contains the total number of stars.

---
 index.html  | 2 +-
 queries.sql | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index a1b6343..03af266 100644
--- a/index.html
+++ b/index.html
@@ -3685,7 +3685,7 @@ LIMIT 50</span>
     max(comments),
     argMax(authors, comments) AS authors,
     argMax(number, comments) AS number,
-    sum(stars) AS stars
+    any(stars) AS stars
 FROM
 (
     SELECT *
diff --git a/queries.sql b/queries.sql
index 938e358..e7c13a6 100644
--- a/queries.sql
+++ b/queries.sql
@@ -671,7 +671,7 @@ SELECT
  max(comments),
  argMax(authors, comments) AS authors,
  argMax(number, comments) AS number,
- sum(stars) AS stars
+ any(stars) AS stars
 FROM
 (
  SELECT *
-- 
主要語言
HTML
星號
180
分支
19
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ClickHouse/github-explorer 的其他 Issue

查看 ClickHouse/github-explorer 的全部 Issue

相似的 Issue

更多 Data Visualization Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。