Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

修复了一些安装问题和代码bug

Open
#100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, mysql

Research direction

Start by reviewing the referenced SQLAdvisor repository and reproducing the CentOS 7 installation failure involving Percona 5.6. Then trace the index recommendation logic for GROUP BY, ORDER BY, driver-table selection, nested subqueries, and MySQL 5.7 execution-plan row counts. Done means the installation succeeds and each listed bug is fixed without the reported incorrect recommendations or segmentation fault.

Written by the indexing model from the issue text.

Description

可以参考这个仓库的代码,修复了这个项目里发现的一些问题
https://github.com/iwanghc/SQLAdvisor

安装问题:
  • CentOS7安装时下载不了Percona56问题(最后一步make时报错问题)
代码bug:
  • 修复了推荐的索引列使用了别名问题,代码在处理GROUP BY和ORDER BY字段时存在的bug。
  • 修复了驱动表选择错误问题,原逻辑仅根据explain select * from xxx 来获取结果集大小,但是实际上可能受原始sql中where条件的影响。
  • 修复嵌套子查询中忽略了子查询未推荐子查询表的索引问题。
  • 修复 MySQL5.7 从执行计划中获取影响行数时报错问题(Segmentation fault)
Dominant language
C
Stars
5.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from Meituan-Dianping/SQLAdvisor

All issues in Meituan-Dianping/SQLAdvisor

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.