dosubot[bot] commented on issue #31295:
URL: https://github.com/apache/superset/issues/31295#issuecomment-2519003338

   <!-- Greeting -->
   Hey there, @big-mouth-cn! I'm here to help you with any bugs, questions, or 
contributions. Let's tackle this issue together!
   
   <!-- Answer -->
   The issue you're experiencing with the 'Current Day' time filter in Map 
visualizations might be related to how Superset processes SQL templates for 
different visualization types. While I couldn't find specific details about 
differences in SQL template processing between Map and Table visualizations, 
it's possible that the Map visualization is not correctly interpreting the 
`from_dttm` and `to_dttm` parameters for the 'Current Day' selection.
   
   In Superset, these parameters are used to define the start and end datetime 
for a query, and they are typically set based on the time range settings in the 
form data. If there is a discrepancy in how these parameters are handled 
between different visualization types, it could lead to issues like the one 
you're encountering 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/viz.py)</sup>.
   
   To troubleshoot this issue, you might want to:
   
   1. Verify the SQL query generated for both Map and Table visualizations to 
see if there are any differences in how the time parameters are applied.
   2. Check if there are any specific configurations or settings in Superset 
that affect time filters for Map visualizations, although I couldn't find 
specific information on this 
<sup>[[2]](https://github.com/apache/superset/blob/master/docs/docs/configuration/sql-templating.mdx)</sup>.
   3. Consider using the `get_time_filter` macro, which provides a more 
flexible way to handle time filters and might help resolve discrepancies 
<sup>[[2]](https://github.com/apache/superset/blob/master/docs/docs/configuration/sql-templating.mdx)</sup>.
   
   If the issue persists, reviewing the Superset logs for any errors or 
warnings related to time filtering might provide additional insights.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to