0.18.3 (dev environment)
I'm connecting to a postgres db on aws.
My connection string looks something like
postgres://ABC:[email protected]:5432/blahblah
I can connect alright and explore the associated table.
Time Grains show-up when exploring tables.
Time Grains don't show-up.
See above
In my environment models.core.db_engine_spec (https://github.com/airbnb/superset/blob/master/superset/models/core.py#L651) always returns db_engine_specs.BaseEngineSpec and therefore models.core.grains (https://github.com/airbnb/superset/blob/master/superset/models/core.py#L655) always returns empty.
Digging further, it seems that it's because (via https://github.com/airbnb/superset/blob/master/superset/db_engine_specs.py#L913 ), I should somehow have 'postgres' associated with PostgresEngineSpec in my globals. But that doesn't seem to be the case.
The workaround is to change https://github.com/airbnb/superset/blob/master/superset/models/core.py#L653 to instead default to PostgresEngineSpec - then everything works beautifully.
Am I missing something in my config or environment or what-not?
Note: there's a related issue (https://github.com/airbnb/superset/issues/1754), but I don't think it's relevant anymore.
Thanks in advance!
OK. Never mind. :-)
My DB URI should start with "postgresql://" and NOT "postgres://".
Per the doc (http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html#database-urls).
Closing this.
You guys can probably close https://github.com/airbnb/superset/issues/1754 as well
I 鉂わ笍 when issues close themselves :)
Most helpful comment
OK. Never mind. :-)
My DB URI should start with "postgresql://" and NOT "postgres://".
Per the doc (http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html#database-urls).
Closing this.
You guys can probably close https://github.com/airbnb/superset/issues/1754 as well