You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "devkenji (via GitHub)" <gi...@apache.org> on 2025/03/13 06:26:17 UTC
[I] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
devkenji opened a new issue, #32642:
URL: https://github.com/apache/superset/issues/32642
### Bug description
### Bug Description
Hello.
When using the Deck.gl Multiple Layers chart, the geometry on the map is not updated after the underlying dataset changes.
1. I create a dataset in Superset that returns latitude and longitude.
2. I use this dataset to create a Deck.gl Scatter chart.
3. I then create a Deck.gl Multiple Layers chart that includes the Scatter chart from step (2).
At this point, both the Deck.gl Scatter chart and the Deck.gl Multiple Layers chart correctly display points on the map. However, after I change the dataset so that it returns different records, the Scatter chart updates correctly while the Deck.gl Multiple Layers chart does not update—it continues to display the old points.
- OS: Ubuntu 22.04.5
- Superset version: 4.1.1
- DB: PostgreSQL
### Detailed Steps to Reproduce
1. Create a dataset (test-dataset) with the following SQL (this initially returns 2 records):
```sql
SELECT *
FROM (VALUES (36.54, 136.97, 1),
(36.70, 137.10, 2)
) AS t(lat, lng, id);
```
2. From test-dataset, create a Deck.gl Scatter Map chart (test-scatter). You will see two points plotted on the map.
3. Create a Deck.gl Multiple Layers chart (test-multi-layer) that includes:
- Dataset: test-dataset
- Deck.gl Chart: test-scatter
At this stage, both charts (Scatter and Multiple Layers) properly display two points on the map.
4. Update test-dataset so that the SQL now returns only 1 record:
```sql
SELECT *
FROM (VALUES (36.54, 136.97, 1),
(36.70, 137.10, 2)
) AS t(lat, lng, id)
WHERE id = 1;
```
After this change, the Scatter chart updates correctly and displays only 1 point. However, the Deck.gl Multiple Layers chart still shows the original 2 points and does not update.
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe closed issue #32642: Deck.gl Multiple Layers Chart Fails to Update After Dataset Change
URL: https://github.com/apache/superset/issues/32642
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-2722063827
Hmm... I was suspecting a caching issue as well, so I'm not sure. I confess, I don't use the multi-layer plugin often. I wonder if @Mattc1221 @jansule @villebro have any insights here.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-2960613939
Are you able to shorten the cache life on both underlying charts, so each updates more often? I'm not sure whether or not that would effectively solve your use case.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "sadpandajoe (via GitHub)" <gi...@apache.org>.
sadpandajoe commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-5490000848
Looks like this was fixed by #41714 - deck_multi no longer runs through the legacy explore_json pipeline, so it should pick up dataset changes the same way the other layers do now. Closing this out. Feel free to reopen if you're still seeing it on master.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "devkenji (via GitHub)" <gi...@apache.org>.
devkenji commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-2723439510
I also think the cache function is the cause.
Deck.gl Multi Layer Chart is a very good feature, but unfortunately it cannot be used when data changes dynamically due to this phenomenon.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-2720114299
<!-- Greeting -->
Hey @devkenji! 👋 I'm here to help you with bugs, questions, and becoming a contributor.
<!-- Answer -->
The issue you're experiencing with the Deck.gl Multiple Layers chart not updating after a dataset change might be related to the caching mechanism in Superset. Superset uses caching to improve performance, and this can sometimes lead to charts not reflecting the latest data changes immediately.
Here are a few things you can check or try:
1. **Cache Settings**: Verify if the caching settings for your chart are causing the old data to persist. You can check the `cache_timeout` setting for your chart and adjust it if necessary. The default cache timeout might be causing the data to remain cached for a longer period than desired <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-preset-chart-deckgl/Polygon/geojsonPayload.js)</sup>.
2. **Cache Warm-Up**: Superset has a cache warm-up feature that can refresh the cache for charts. Ensure that this feature is configured correctly to update the cache at appropriate intervals <sup>[[2]](https://github.com/apache/superset/blob/master/superset/tasks/cache.py)</sup>.
3. **Force Refresh**: Try forcing a refresh of the chart to see if it updates with the new data. This can sometimes be done by clearing the cache manually or by using any available options in the Superset UI to refresh the chart.
If these steps do not resolve the issue, it might be necessary to investigate further into the specific configuration of the Deck.gl Multiple Layers chart and how it handles data updates in your Superset setup.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e1de1266-fbab-4330-aa22-108c8230bf7b?feedback_type=other)</sup>
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "devkenji (via GitHub)" <gi...@apache.org>.
devkenji commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-2720127780
Thank you. I tried steps 1, 2, and 3, but none of them worked. I also modified the cache settings in the GUI and in superset_config.py, but that didn't help. I'm using Redis for caching, and even manually clearing the Redis cache had no effect.
--
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] Deck.gl Multiple Layers Chart Fails to Update After Dataset Change [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32642:
URL: https://github.com/apache/superset/issues/32642#issuecomment-4035395964
The underlying issue — deck.gl Multiple Layers not refreshing when a constituent single-layer chart's dataset changes — may require a more thorough fix in how the multi-layer chart subscribes to dataset changes. Until then, shortening the cache TTL on the underlying single-layer charts is a workaround. PRs to investigate the update mechanism are welcome.
--
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