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


   After giving this some more thought, I agree that the best solution would 
probably be to store the object names in their native case (UPPERCASE), as that 
would always work with quotes. If we do that, then all physical table column 
definitions would change from lowercase to UPPERCASE (unless MixedCase). I'm 
not sure we can do a database migration to fix old datasets reliably, so to 
deal with backwards compatibility issues, we could potentially add a config 
flag to the dataset metadata, something like `legacy_mode`, which we'd set to 
`True` for existing Snowflake datasets, but that would not be set on new 
datasets. When set to `True`, column names would be set with the current 
normalization logic, but when disabled would return the UPPERCASE name. Then 
existing charts wouldn't break, and users would have the option of migrating 
those by hand if they so wish.


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