Vitor-Avila opened a new issue, #26459: URL: https://github.com/apache/superset/issues/26459
The `SORT BY` clause for BigQuery connections is not adding quotes to the column/metric name used, so in case it has special characters it throws an error. #### How to reproduce the bug 1. Make sure you have a dataset powered by BQ. 2. Use it to create a table chart. 3. Add any dimension to it. 4. Create an ad-hoc metric using `COUNT(*)` and name it as `métric`. ### Expected results The chart works properly. ### Actual results An error is displayed: https://github.com/apache/superset/assets/96086495/f84569ac-313a-40df-be09-f1f070eea436 Log: ``` File "/Users/vitoravila/.pyenv/versions/3.9.0/envs/superset-mods/lib/python3.9/site-packages/google/api_core/retry.py", line 207, in retry_target result = target() File "/Users/vitoravila/.pyenv/versions/3.9.0/envs/superset-mods/lib/python3.9/site-packages/google/cloud/bigquery/job/query.py", line 1584, in do_get_result super(QueryJob, self).result(retry=retry, timeout=timeout) File "/Users/vitoravila/.pyenv/versions/3.9.0/envs/superset-mods/lib/python3.9/site-packages/google/cloud/bigquery/job/base.py", line 952, in result return super(_AsyncJob, self).result(timeout=timeout, **kwargs) File "/Users/vitoravila/.pyenv/versions/3.9.0/envs/superset-mods/lib/python3.9/site-packages/google/api_core/future/polling.py", line 261, in result raise self._exception google.api_core.exceptions.BadRequest: 400 Syntax error: Illegal input character "\303" at [5:11] ``` ### Environment - browser type and version: Chrome latest version. - superset version: Running from `master`. ### Checklist - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. -- 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]
