dosubot[bot] commented on issue #30239:
URL: https://github.com/apache/superset/issues/30239#issuecomment-2343770150
<!-- Greeting -->
@Michuk02 Hello there! I'm here to help you with any bugs, questions, or
even becoming a contributor. Let's squash those bugs together! 🤖
<!-- Answer -->
To resolve the "DB engine Error" with error code 1011 when trying to import
a filter in Apache Superset on Google Cloud, follow these steps:
1. **Check Superset Logs**: Look at the Superset logs to get more details
about the error. This can provide more context on what went wrong.
2. **Database Connection**: Ensure that the database connection parameters
are correct and that the database is accessible.
3. **Superset Configuration**: Verify that your Superset configuration is
correct and that all necessary parameters are set.
4. **Update Superset**: Make sure you are using the latest version of
Superset, as the issue might have been fixed in a newer release.
5. **Google Cloud Environment**: Check if there are any specific issues or
limitations in your Google Cloud environment that might be causing the error.
Additionally, for BigQuery-specific issues:
6. **Verify BigQuery Permissions**: Ensure that the service account used has
the necessary permissions, such as "BigQuery Data Viewer", "BigQuery Metadata
Viewer", "BigQuery Job User", and permissions like
"bigquery.readsessions.create" and "bigquery.readsessions.getData".
7. **Check for Specific Errors**: Look for specific error patterns in the
logs, such as:
- **Access Denied**: Ensure the service account has the required
permissions.
- **Table Does Not Exist**: Verify that the table name and dataset are
correct.
- **Column Does Not Exist**: Check if the column names in your query are
correct.
- **Schema Does Not Exist**: Ensure the schema specified in the query
exists.
- **Syntax Errors**: Review your SQL query for any syntax errors.
For the "Unexpected param" error:
- Ensure all template parameters in your query are surrounded by double
braces, e.g., `{{ ds }}`.
- Verify that the parameters are correctly formatted and not missing any
required values.
- Double-check the syntax and structure of your query to avoid any typos or
errors.
If the issue persists, provide more specific details from the logs or error
messages to further diagnose the problem
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/errors.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/db_engine_specs/bigquery.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/docs/docs/using-superset/issue-codes.mdx)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]