-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Can't access database in SQL lab #28596
Comments
It sounds like you're encountering a permissions issue or a problem with database connectivity or table existence. Here are some targeted steps to troubleshoot and hopefully resolve the issue:
If these steps don't resolve the issue, providing the exact error message from the Superset logs could offer more insight into the problem.
|
I've tried your steps but still can't solve my problem @dosu.
|
To address the issue where a user with the necessary permissions cannot query a database in SQL Lab and receives an error indicating a failure to execute the SQL query, let's go through a detailed checklist and some potential solutions: Checklist and Potential Solutions
Additional StepsIf the above steps do not resolve the issue, please provide the exact error messages from the Superset logs. This will help in diagnosing the problem more accurately. Additionally, ensure that there are no network issues or firewall rules blocking access to the database. By following these steps, you should be able to identify and resolve the issue preventing the user from querying the database in SQL Lab.
|
DB engine Error |
The error message "Failed to execute query 'SELECT * FROM main.bart_lines': can not access the query" indicates a security access issue, specifically a Verify Role PermissionsEnsure that the Review Dataset PermissionsMake sure the dataset permissions are correctly configured to allow access to the Inspect Security PoliciesCheck for any security policies or rules that might be restricting access to the query. This includes reviewing the Check the
|
DB engine Error |
I encountered the same problem and tried to print some logs to investigate the issue. The code is as follows:
I try to print log: |
Awesome! @leoguo1024 #29311 fixed my problem as well. I was experiencing the same issue when upgrading from |
Hopefully we can merge that PR soon and close out this issue. I think the PR has a couple of comments/requests that need to be addressed by @leoguo1024, and then we'll be all good! |
Adjust to not show tables, only views
Fix sqllab access issue. Fixes apache#28596 Adjust to not show tables, only views
@rusackas @john-bodley This is still an issue for me. Is there anything I can do to help? |
Bug description
I have authorized the permissions of sample.main to this user, but this account still cannot be queried in sql_lab
How to reproduce the bug
testRole
, and grantschema access on [examples].[main]
Gamma
,sql_lab
,testRole
SELECT * FROM main.bart_lines
Screenshots/recordings
Superset version
3.1.3
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: