Make sure these boxes are checked before submitting your issue - thank you!
0.28.1
When a column type in Druid (0.12.3) is changed (for example "String" -> "Long") and a "Refresh Metadata" is done, Superset gets the columns of the latest segment and updates all necessary Types (Column now has type "Long").
Looking at the code, it does exactly as expected. In practice, the types in Superset stay the same (e.g. "String").
The Column type in Druid is now "Long" and displayed as "String" in Superset. This can be verified by metadata queries.
No Logs are shown in the process of refreshing metadata.
Without Superset adapting the new data type, queries that sum up the values of a column cannot be done via Superset. If the column is given capability to "sum" in the datasource edit section, Superset tries to do a "StringSum" when running the query, which does not exist in Druid.
Investigating this issue further, the following has been discovered:
This means that it will take one week (as that is usually the timeframe for the metadata query) until the new field type will be adapted.
In our case, this is not an issue. Should I close this issue?
i have a same problem, have you solved this issue ?
hello i solved this issue, this my step i do
*ambari->druid->config->advance
=> custom druid-broker
druid.sql.enable = true
*superset->sources->+
Database => *yourdatabasename
SQLAlchemy URI => druid://yourdruidbrokerip:8082/druid/v2/sql/
Expose in SQL Lab => v
Allow Run Sync => v
Allow Run Async => v
Allow CREATE TABLE AS => v
save
*superset->tables->+
Database => *yourdatabasename
Table Name => *yourtablenameindruid
save
in your superset table list you can click "Edit Record" and you can change your table data type
and finn
someone else could be resolving this issue?
If I remember correctly, the column type gets updated one week after it has been changed, as superset requests metadata for the last week of available druid data for every topic. So you either need to wait one week or re-add the datasource to superset.
OMG, well I'm learning superset and just right now I don麓t know hos tu re-add the data source to superset, can you send me a link to do it, please.
And I appreciate your answer, have a nice day!
If I remember correctly, the column type gets updated one week after it has been changed, as superset requests metadata for the last week of available druid data for every topic. So you either need to wait one week or re-add the datasource to superset.
----Could you tell me, where can i find the code in superset to change that time, because i think is a lot of time to wait and see the change if i need to change column types frecuently its imposible to wait.
And thank you very much , your help was so helpfull. Best regards
Sorry to keep you waiting so long, here you go https://github.com/apache/incubator-superset/blob/e55fe43ca67a29518674a1a2137a3dbd4f166864/superset/connectors/druid/models.py#L647