Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] LLM正确的S2SQL被修正为错误的S2SQL #2022

Open
1 task
EcoleKeine opened this issue Jan 23, 2025 · 1 comment
Open
1 task

[Bug] LLM正确的S2SQL被修正为错误的S2SQL #2022

EcoleKeine opened this issue Jan 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@EcoleKeine
Copy link

SuperSonic version

0.9.10-Snapshot

Your organization

None

Description

修正后的SQL SELECT 中多出了 _调用次数_ 这个临时列

LLM SQL:

SELECT
  接口ID,
  接口路径,
  接口名称,
  SUM(调用数量) AS _调用次数_
FROM
  网关调用记录数据集
WHERE
  网关名称 = '内网集群'
GROUP BY
  接口ID,
  接口路径,
  接口名称
ORDER BY
  _调用次数_ DESC
LIMIT
  5

修正S2SQL

SELECT
  接口ID,
  接口路径,
  接口名称,
  SUM(调用数量) AS _调用次数_,
  _调用次数_
FROM
  网关调用记录数据集
WHERE
  网关名称 = '内网集群'
GROUP BY
  接口ID,
  接口路径,
  接口名称
ORDER BY
  _调用次数_ DESC
LIMIT
  5

类似Issue: #1400

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@EcoleKeine EcoleKeine added the bug Something isn't working label Jan 23, 2025
@iamdoublef
Copy link

请问处理了吗?我也是这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants