You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "gs-scooter (via GitHub)" <gi...@apache.org> on 2023/10/26 20:12:52 UTC
[I] Snowflake connector does not automatically surround field names in double-quotes [superset]
gs-scooter opened a new issue, #25769:
URL: https://github.com/apache/superset/issues/25769
When using Snowflake as a data source for a chart, the chart will fail with a SQL compilation error. The only workaround is to go into the field's custom SQL and surround it with double-quotes. This bug exists in the preset.io product as well.
#### How to reproduce the bug
1. Launch Superset via a Docker container.
2. Add a Snowflake data source.
3. Create a new chart using the data source.
4. Drag fields onto the chart designer and create chart.
5. See compilation error referencing invalid identifier 'FIELD_NAME'.
### Expected results
No SQL compilation error. The Snowflake connector should work out of the box.
#### Screenshots
Error:

Workaround:

### Environment
- browser type and version: Vivaldi 6.2.3105.58
- superset version: Version on latest [Docker image](https://hub.docker.com/r/apache/superset).
- any feature flags active: `snowflake-sqlalchemy` driver installed.
--
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-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2101773808
@wavenator please feel free, you have as much right as anyone to fix it, and if you're affected by it, you have all the more reason to. I understand the frustration, but there are an awful lot of issues, and never enough contributors.
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-4748638941
We've been unable to reproduce this on recent versions except in a narrow temporal-column case, and we haven't gotten a minimal reproduction. Closing as not reproducible — please reopen with a concrete dataset/chart definition on a current release (6.x.x) if you're still hitting this.
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-4035380128
Checking in — @sadpandajoe was unable to reproduce in June 2025 unless using temporal columns specifically. Is this still affecting anyone on Superset 4.1.x or 5.0? If we can't get a reproducible case, this may be closed.
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #25769: Snowflake connector does not automatically surround field names in double-quotes
URL: https://github.com/apache/superset/issues/25769
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2737741854
Tempted to close this as stale, but is anyone still facing this in 4.1.1 or 5.0.0rc1?
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-1787570775
@rusackas you are the sole person listed in the database rolodex for Snowflake - do you have any thoughts on this?
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2101778463
Possibly relevant: https://stackoverflow.com/a/68311509
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-1922310746
I have access to a database to reproduce issues, but I don't use it on any real basis, or know much about _actually fixing it_. I think @villebro might use it too?
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "wavenator (via GitHub)" <gi...@apache.org>.
wavenator commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2101414877
We are using Snowflake too and having the same issue. Pretty frustrating no one is picking up this issue and fix it :/
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-3001917446
Is this something that sqlglot would normally handle @betodealmeida ?
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2103832217
Yes it does seem related to case sensitivity. It'd help to get more information on the schema's case and the SQL generated. Also relevant -> https://community.snowflake.com/s/article/How-to-ignore-the-case-of-quoted-identifiers-on-Snowflake#:~:text=Quoted%20identifiers%20are%20identifiers%20such,you%20will%20get%20an%20error.
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "wavenator (via GitHub)" <gi...@apache.org>.
wavenator commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-2748730216
Yep still experiencing this issue
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-3001953396
@rusackas not able to really repro this unless if I use a temporal column, I have number columns that are all lower case and others that are mixed and upper case and they seem to work fine for the x-axis without having to use customer sql.
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Snowflake connector does not automatically surround field names in double-quotes [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25769:
URL: https://github.com/apache/superset/issues/25769#issuecomment-3001885158
Did the two links/references above provide any help here? I don't have a Snowflake instance to test those suggestions on... maybe @sadpandajoe has one?
--
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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org