You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ABDevops-test (via GitHub)" <gi...@apache.org> on 2025/12/09 12:20:13 UTC
[I] Not able to run any SQL query on SQL lab [superset]
ABDevops-test opened a new issue, #36482:
URL: https://github.com/apache/superset/issues/36482
### Bug description
I have created a connection to StarRocks in Apache Superset using the StarRocks dialect. However, when I try to run an SQL query (even a simple SELECT) in Superset’s SQL Lab, I get an “authentication required” error — indicating an issue with the StarRocks database connection. Database connection is already successfully connected and able to see tables created in starrocks but not able to run any query on it.
Can anyone please help here?
<img width="1188" height="344" alt="Image" src="https://github.com/user-attachments/assets/cf1519c6-0476-44e5-aca1-10b5949c5e48" />
<img width="673" height="164" alt="Image" src="https://github.com/user-attachments/assets/906ce6df-8209-4d9e-bcbe-71a318549d47" />
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "ABDevops-test (via GitHub)" <gi...@apache.org>.
ABDevops-test commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3632483144
Below is the starrocks driver version
<img width="194" height="63" alt="Image" src="https://github.com/user-attachments/assets/fc1db0a2-67c1-41b1-8828-b51f96f351bf" />
connection string
starrocks://username:XXXXXXXXXX@starrocks-sd.test.dll.aadpace.com:9030/<starrocks-catalog>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3666306752
Thanks @lilotter45, that's helpful context and additional info for future readers!
Given that this seems not to be reproducible, I'm going to convert this to a discussion. @ABDevops-test if you're able to provide additional information that allows others to reproduce this and verify that indeed there's a bug in the Superset codebase that needs fixing, we'll chat here and then open a new, more specific report with the actual bug documented.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "ABDevops-test (via GitHub)" <gi...@apache.org>.
ABDevops-test commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3632161230
[@dosu](https://go.dosu.dev/dosubot)
The impersonation setting is already disabled. I have also verified on my local machine via terminal that the queries run successfully — only Superset is having an issue executing the same.
<img width="504" height="739" alt="Image" src="https://github.com/user-attachments/assets/05a35767-e68f-44c2-be04-44e917a584ca" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "ABDevops-test (via GitHub)" <gi...@apache.org>.
ABDevops-test commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3635926473
@rusackas
Kindly help on above as issue still persists.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "ABDevops-test (via GitHub)" <gi...@apache.org>.
ABDevops-test commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3635591430
I did install StarRocks driver to version 1.0.6 as per below. But still issue persists. Please suggest.
<img width="251" height="61" alt="Image" src="https://github.com/user-attachments/assets/3260fc66-edaa-46bc-815f-344e46cfe913" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3642275324
Hello @ABDevops-test in a way it's nice that you're having the trouble with Postgres too since that shifts the focus from "some edge case related to StarRocks" to a general config problem. Superset definitely works with Postgres, that's what we test CI with. So I'd keep focusing on debugging that connection instead of StarRocks.
Also I see you marked that you're running the master branch, which could be unstable. If that's true, instead try to debug with e.g. 6.0.0rc4 which is not officially released but has been nice and stable in my testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "ABDevops-test (via GitHub)" <gi...@apache.org>.
ABDevops-test commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3641764800
@rusackas [@dosu](https://go.dosu.dev/dosubot)
Kindly check above comments and let me know if anything i can do from my end.
@rusackas
Also let me know if there is any possibility of having a call for discussion on this so that we can resolve the issue in minimal time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3632192951
<!-- Answer -->
Since impersonation is disabled and queries work in your terminal but not in Superset, the issue is likely with Superset’s connection configuration or environment. Here are the most common causes and next steps:
- **Driver compatibility**: Superset requires `sqlalchemy==1.4.54`, but the latest StarRocks adapter needs SQLAlchemy v2, which can cause authentication or query execution errors. Make sure you’re using `starrocks==1.0.6` for the driver in your Superset environment to avoid this conflict [source](https://github.com/apache/superset/issues/33544).
- **Connection string and SSL settings**: Double-check that your Superset connection string matches the one you use in your terminal, including any SSL or root certificate options. In Superset, these should be set either in the SQLAlchemy URI or in the Extra JSON as `engine_params.connect_args` (for example: `{"engine_params": {"connect_args": {"sslmode": "require", "sslrootcert": "/path/to/cert.pem"}}}`) [source](https://github.com/apache/superset/blob/master/docs/docs/configuration/databases.mdx).
- **Endpoint configuration**: If Superset is pointed at a read-only StarRocks endpoint or proxy, even SELECT queries can fail with authentication or permission errors. Make sure the endpoint allows reads and matches what you use in your terminal [source](https://github.com/apache/superset/discussions/33915#discussioncomment-13580929).
- **Environment-specific issues**: If you’re running Superset in Kubernetes or with Helm, missing Redis password configuration can cause authentication errors in SQL Lab, even if the database credentials are correct. Check your Helm chart’s `values.yaml` for Redis password settings if applicable [source](https://github.com/apache/superset/issues/22773).
If you share your Superset connection string, Extra JSON, and the exact driver versions, I can help spot any mismatches. Also, check Superset and StarRocks logs for more detailed error messages—they often pinpoint where authentication is failing.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5e0f65a2-4b12-4be0-ba07-4c41687b43bd?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Since%20impersonation%20is%20disabled%20and%20queries%20work%20in%20your%20terminal%20but%20not%20in%20Superset%2C%20the%20issue%20is%20likely%20with%20Superset%E2%80%99s%20connection%20configuration%20or%20environment.%20Here%20are%20the%20most%20common%20causes%20and%20next%20steps%3A%0A%0A-%20%2A%2ADriver%20compatibility%2A%2A%3A%20Superset%20requires%20%60sqlalchemy%3D%3D1.4.54%60%2C%20but%20the%20latest%20StarRocks%20adapter%20needs%20SQLAlchemy%20v2%2C%20which%20can%20cause%20authentication%20or%20query%20execution%20errors.%20Make%20sure%20you%E2%80%99re%20using%20%60starrocks%3D%3D1.0.6%60%20for%20the%20driver%20in%20your%20Superset%20environment%20to%20avoid%20this%20conflict%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/335
44%29.%0A-%20%2A%2AConnection%20string%20and%20SSL%20settings%2A%2A%3A%20Double-check%20that%20your%20Superset%20connection%20string%20matches%20the%20one%20you%20use%20in%20your%20terminal%2C%20including%20any%20SSL%20or%20root%20certificate%20options.%20In%20Superset%2C%20these%20should%20be%20set%20either%20in%20the%20SQLAlchemy%20URI%20or%20in%20the%20Extra%20JSON%20as%20%60engine_params.connect_args%60%20%28for%20example%3A%20%60%7B%22engine_params%22%3A%20%7B%22connect_args%22%3A%20%7B%22sslmode%22%3A%20%22require%22%2C%20%22sslrootcert%22%3A%20%22/path/to/cert.pem%22%7D%7D%7D%60%29%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/master/docs/docs/configuration/databases.mdx%29.%0A-%20%2A%2AEndpoint%20configuration%2A%2A%3A%20If%20Superset%20is%20pointed%20at%20a%20read-only%20StarRocks%20endpoint%20or%20proxy%2C%20even%20SELECT%20queries%20can%20fail%20with%20authentication%20or%20permission%20errors.%20Make%20sure%20the%20endpoint%20allows%20reads%20and%20matches%2
0what%20you%20use%20in%20your%20terminal%20%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/33915%23discussioncomment-13580929%29.%0A-%20%2A%2AEnvironment-specific%20issues%2A%2A%3A%20If%20you%E2%80%99re%20running%20Superset%20in%20Kubernetes%20or%20with%20Helm%2C%20missing%20Redis%20password%20configuration%20can%20cause%20authentication%20errors%20in%20SQL%20Lab%2C%20even%20if%20the%20database%20credentials%20are%20correct.%20Check%20your%20Helm%20chart%E2%80%99s%20%60values.yaml%60%20for%20Redis%20password%20settings%20if%20applicable%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/22773%29.%0A%0AIf%20you%20share%20your%20Superset%20connection%20string%2C%20Extra%20JSON%2C%20and%20the%20exact%20driver%20versions%2C%20I%20can%20help%20spot%20any%20mismatches.%20Also%2C%20check%20Superset%20and%20StarRocks%20logs%20for%20more%20detailed%20error%20messages%E2%80%94they%20often%20pinpoint%20where%20authentication%20is%20failing.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36482)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3632508049
<!-- Answer -->
Your StarRocks driver version (1.2.2) is not compatible with Superset’s required SQLAlchemy version (1.4.54). This mismatch can cause authentication errors when running queries, even if the connection appears successful and tables are visible. The recommended fix is to downgrade the StarRocks driver to version 1.0.6, which works with SQLAlchemy 1.4.54 and resolves these issues [source](https://github.com/apache/superset/issues/31803).
Also, make sure your connection string follows the format `starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>`—catalog and database must be separated by a dot [source](https://github.com/apache/superset/blob/master/superset/db_engine_specs/starrocks.py).
If you still see errors after downgrading, check your Superset database “Extra” JSON for any SSL or authentication options, and confirm your endpoint isn’t a read-only replica. If you want, share your Extra JSON and the full connection string (with sensitive info redacted) for a more detailed review.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5a4ee6a0-2e22-419e-9a27-282f665f566f?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=Your%20StarRocks%20driver%20version%20%281.2.2%29%20is%20not%20compatible%20with%20Superset%E2%80%99s%20required%20SQLAlchemy%20version%20%281.4.54%29.%20This%20mismatch%20can%20cause%20authentication%20errors%20when%20running%20queries%2C%20even%20if%20the%20connection%20appears%20successful%20and%20tables%20are%20visible.%20The%20recommended%20fix%20is%20to%20downgrade%20the%20StarRocks%20driver%20to%20version%201.0.6%2C%20which%20works%20with%20SQLAlchemy%201.4.54%20and%20resolves%20these%20issues%20%5Bsource%5D%28https%3A//github.com/apache/superset/issues/31803%29.%0A%0AAlso%2C%20make%20sure%20your%20connection%20string%20follows%20the%20format%20%60starrocks%3A//%3CUser%3E%3A%3CPassword%3E%40%3CHost%3E%3A%3CPort%3E/%3CCatalog%3E.%3CDatabase%3
E%60%E2%80%94catalog%20and%20database%20must%20be%20separated%20by%20a%20dot%20%5Bsource%5D%28https%3A//github.com/apache/superset/blob/master/superset/db_engine_specs/starrocks.py%29.%0A%0AIf%20you%20still%20see%20errors%20after%20downgrading%2C%20check%20your%20Superset%20database%20%E2%80%9CExtra%E2%80%9D%20JSON%20for%20any%20SSL%20or%20authentication%20options%2C%20and%20confirm%20your%20endpoint%20isn%E2%80%99t%20a%20read-only%20replica.%20If%20you%20want%2C%20share%20your%20Extra%20JSON%20and%20the%20full%20connection%20string%20%28with%20sensitive%20info%20redacted%29%20for%20a%20more%20detailed%20review.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36482)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3633602066
Hopefully the bot is right, and that resolves it. Let us know if not!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "lilotter45 (via GitHub)" <gi...@apache.org>.
lilotter45 commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3666028534
@ABDevops-test, I also have a StarRocks database connection configured and working. I can give you some information on the configuration I've used as a point of reference:
### Version
I'm running 5.0.0 and 6.0.0rc2 or maybe rc3 with these settings. I do have a custom build that I'm using.
StarRocks is version 3.4.4-bc987bb
### Dockerfile
This is the Dockerfile I use to build the image I'm using, minus some customizations and packages irrelevant to this issue. It is based on the [example in the docs](https://superset.apache.org/docs/6.0.0/installation/docker-builds).
```dockerfile
ARG SUPERSET_TAG=5.0.0
FROM apache/superset:${SUPERSET_TAG}
USER root
# Set environment variable for Playwright
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers
# Add build-essential to allow building python packages
RUN /app/docker/apt-install.sh build-essential default-libmysqlclient-dev pkg-config
# Install packages using uv into the virtual environment
RUN . .venv/bin/activate && \
uv pip install --no-cache-dir \
authlib \
flask-caching \
mysqlclient \
pillow \
playwright \
psycopg2-binary \
redis \
starrocks==1.2.2 \
&& playwright install-deps \
&& PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers playwright install chromium
USER superset
CMD ["/app/docker/entrypoints/run-server.sh"]
```
**Python packages** I have explicitly added that are relevant to StarRocks:
- mysqlclient
- starrocks - use version 1.2.2 because 1.2.3 is broken; a fix was just released a couple days ago, but it isn't yet available, except when built from source
### StarRocks
- Is it possible that you have a permission issue for the user that you've used to connect? Are you able to run a `SELECT` query in other clients using the same credentials?
- If not, maybe you need to grant `SELECT` privileges, e.g.:
```sql
-- If you're providing permissions via roles, you might need/want to make sure they're applied at login, or you can set the default role, as I've done below.
SET GLOBAL activalte_all_roles_on_login = TRUE;
CREATE DATABASE example_db;
SET CATALOG default_catalog;
CREATE ROLE IF NOT EXISTS reader;
GRANT SELECT ON ALL TABLES IN DATABASE example_db TO ROLE reader;
CREATE USER test_user IDENTIFIED BY 'some-password' DEFAULT ROLE reader;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke closed issue #36482: Not able to run any SQL query on SQL lab
URL: https://github.com/apache/superset/issues/36482
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Not able to run any SQL query on SQL lab [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #36482:
URL: https://github.com/apache/superset/issues/36482#issuecomment-3631993335
<!-- Greeting -->
Hi @ABDevops-test! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
This issue is likely caused by how Superset handles impersonation for StarRocks connections during query execution. When running queries in SQL Lab, Superset may execute a pre-query like `EXECUTE AS "username" WITH NO REVERT;` if impersonation is enabled for the database connection. If the impersonation fails or the effective user lacks privileges, StarRocks returns an "authentication required" error, even though listing tables works (because metadata operations skip this step) [[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/db_engine_specs/starrocks.py#L34-L250)].
Here’s a checklist to help resolve this:
1. **Check impersonation settings**: In Superset, go to your StarRocks database connection and see if "Impersonate the logged-in user" is enabled. If so, try disabling it and test query execution again.
2. **Verify user privileges**: Make sure the user specified in your connection string has permission to run queries and, if impersonation is enabled, that the impersonated user can run queries in StarRocks.
3. **Review connection string**: Confirm your connection string follows the format `starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>` and that credentials are correct [[source](https://github.com/apache/superset/blob/master/docs/docs/configuration/databases.mdx)].
4. **Driver compatibility**: If you installed the latest StarRocks driver, there may be a SQLAlchemy version conflict. Use `starrocks==1.0.6` to ensure compatibility with Superset [[source](https://github.com/apache/superset/issues/31803)].
5. **Check logs**: Look for detailed error messages in both Superset and StarRocks logs to pinpoint whether the failure is during the impersonation pre-query or the main query.
If impersonation is not needed, disabling it is often the quickest fix. If you need impersonation, ensure the StarRocks user has the right privileges and that the pre-query works when run manually. For more details, see the [StarRocks Superset integration docs](https://docs.starrocks.io/docs/integrations/BI_integrations/Superset/).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7b9b8638-0788-48d1-a96d-fffec4fb2c9b?feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=This%20issue%20is%20likely%20caused%20by%20how%20Superset%20handles%20impersonation%20for%20StarRocks%20connections%20during%20query%20execution.%20When%20running%20queries%20in%20SQL%20Lab%2C%20Superset%20may%20execute%20a%20pre-query%20like%20%60EXECUTE%20AS%20%22username%22%20WITH%20NO%20REVERT%3B%60%20if%20impersonation%20is%20enabled%20for%20the%20database%20connection.%20If%20the%20impersonation%20fails%20or%20the%20effective%20user%20lacks%20privileges%2C%20StarRocks%20returns%20an%20%22authentication%20required%22%20error%2C%20even%20though%20listing%20tables%20works%20%28because%20metadata%20operations%20skip%20this%20step%29%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/db_
engine_specs/starrocks.py%23L34-L250%29%5D.%0A%0AHere%E2%80%99s%20a%20checklist%20to%20help%20resolve%20this%3A%0A%0A1.%20%2A%2ACheck%20impersonation%20settings%2A%2A%3A%20In%20Superset%2C%20go%20to%20your%20StarRocks%20database%20connection%20and%20see%20if%20%22Impersonate%20the%20logged-in%20user%22%20is%20enabled.%20If%20so%2C%20try%20disabling%20it%20and%20test%20query%20execution%20again.%0A2.%20%2A%2AVerify%20user%20privileges%2A%2A%3A%20Make%20sure%20the%20user%20specified%20in%20your%20connection%20string%20has%20permission%20to%20run%20queries%20and%2C%20if%20impersonation%20is%20enabled%2C%20that%20the%20impersonated%20user%20can%20run%20queries%20in%20StarRocks.%0A3.%20%2A%2AReview%20connection%20string%2A%2A%3A%20Confirm%20your%20connection%20string%20follows%20the%20format%20%60starrocks%3A//%3CUser%3E%3A%3CPassword%3E%40%3CHost%3E%3A%3CPort%3E/%3CCatalog%3E.%3CDatabase%3E%60%20and%20that%20credentials%20are%20correct%20%5B%5Bsource%5D%28https%3A//github.com/apache/sup
erset/blob/master/docs/docs/configuration/databases.mdx%29%5D.%0A4.%20%2A%2ADriver%20compatibility%2A%2A%3A%20If%20you%20installed%20the%20latest%20StarRocks%20driver%2C%20there%20may%20be%20a%20SQLAlchemy%20version%20conflict.%20Use%20%60starrocks%3D%3D1.0.6%60%20to%20ensure%20compatibility%20with%20Superset%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/31803%29%5D.%0A5.%20%2A%2ACheck%20logs%2A%2A%3A%20Look%20for%20detailed%20error%20messages%20in%20both%20Superset%20and%20StarRocks%20logs%20to%20pinpoint%20whether%20the%20failure%20is%20during%20the%20impersonation%20pre-query%20or%20the%20main%20query.%0A%0AIf%20impersonation%20is%20not%20needed%2C%20disabling%20it%20is%20often%20the%20quickest%20fix.%20If%20you%20need%20impersonation%2C%20ensure%20the%20StarRocks%20user%20has%20the%20right%20privileges%20and%20that%20the%20pre-query%20works%20when%20run%20manually.%20For%20more%20details%2C%20see%20the%20%5BStarRocks%20Superset%20integration%20docs%5D%28https%3
A//docs.starrocks.io/docs/integrations/BI_integrations/Superset/%29.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36482)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org