kevinwen2k commented on issue #16574:
URL: https://github.com/apache/superset/issues/16574#issuecomment-916272277


   @rumbin Yes, when running the query you provided, I could get the result 
without any problem. However, the input from all of the editors in any software 
is compliant with UTF-8 and can't reproduce the scenario that happened on our 
end where data came from different sources or are collected from 3rd party. 
It's hard to enforce all of our sources to convert the non-UTF8 bytes to UTF8 
bytes. 
   
   Also, as I mentioned in this ticket earlier, Snowflake (for some reasons) 
can convert these byte string back to UTF-8 characters and displayed well in 
the browser. DBVisualizer does similar thing that can convert byte into some 
non-human readable characters, but at least it won't cause the error when 
running the query. 
   
   The following query goes through in Chrome browser connecting Snowflake 
account (meaning that Snowflake implemented both frontend and backend for the 
endpoint service with our Snowflake account) and in DBvisualizer, but it throws 
an error in SqlLab. 
   
   ```
   select install_country, install_city 
   from my_table
   where return_date between current_date - 10 and current_date - 1 
       and install_country = 'Venezuela' and endswith(install_city, 'rida') 
   limit 100;  
   ```
   
   I know the data are not perfect, but what I wanted was to have the query 
goes through, so we can create chart on dashboard. I'm ok if those non-human 
readable characters  are displayed in the charts.
   
   ![Screen Shot 2021-09-09 at 9 42 57 
AM](https://user-images.githubusercontent.com/4207782/132729022-d7c5875a-d107-4590-bf3d-be79bd3f0f5b.png)
   ![Screen Shot 2021-09-09 at 9 43 27 
AM](https://user-images.githubusercontent.com/4207782/132729048-8286676a-b0ef-4fe7-a534-d78efe4148ab.png)
   ![Screen Shot 2021-09-09 at 9 41 16 
AM](https://user-images.githubusercontent.com/4207782/132729065-0b0fe6ea-c323-4edf-a1dd-8c9759343958.png)
   


-- 
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]

Reply via email to