nytai commented on issue #18085:
URL: https://github.com/apache/superset/issues/18085#issuecomment-1017771314


   I was originally thinking that what would make the most sense is for 
superset to use the same case that it's defined in the db (ie, most likely 
UPPERCASE for snowflake, but not _always_), however since the sqlalchemy 
dialect is doing this "normalization" there really is no way to know for sure 
what the case is in the db. We could update the `get_column_spec` to instead 
use a describe table stmt (or whatever the dialect is using to get table names) 
and get the column names from the cursor (not sure if this would actually 
work). 
   
   However, this gets very complicated when we take into consideration all the 
existing datasets out there, as users who upgrade to a version with this fix 
would start seeing issues when they run the sync columns action and the case 
changes (which would break all their existing dashboard filters, etc). 
   
   I too really wish snowflake had not gone with this UPPERCASE by default 
design, and I especially wish that the sqlalchemy dialect hadn't gone with this 
"normalize" column names approach. 


-- 
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-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to