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

HTTP Request SQL Query Returns Incorrect Results for Same selectItem #54557

Closed
style1002 opened this issue Dec 31, 2024 · 0 comments · Fixed by #54590
Closed

HTTP Request SQL Query Returns Incorrect Results for Same selectItem #54557

style1002 opened this issue Dec 31, 2024 · 0 comments · Fixed by #54590
Assignees
Labels
type/bug Something isn't working

Comments

@style1002
Copy link

style1002 commented Dec 31, 2024

Steps to reproduce the behavior (Required)

结果错误

curl --location 'http://127.0.0.1:8061/api/v1/catalogs/default_catalog/databases/database_name/sql' \
--header 'Content-Type: application/json' \
--data '{
    "query":"SELECT count(*) AS logCount, count(*) AS totalMetric FROM table",
    "sessionVariables":{
        "sql_mode":"MODE_DOUBLE_LITERAL"
    }
}'
企业微信截图_445ac6ad-eab6-4706-8b88-28fffbca4091

Expected behavior (Required)

{
"data": [
0,
0
]
}

Real behavior (Required)

{
"data": [
00
]
}

StarRocks version (Required)

version: 3.3.7-00177de

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

Successfully merging a pull request may close this issue.

2 participants