A developer has User Specific Time Zones enabled for a Looker instance, but wants to ensure that queries run in Looker are as performant as they can be. The developer wants to add a datatype: date parameter to all dimension_group definitions without time data in a table-based view, so that time conversions don’t occur for these fields.
How can the developer determine to which fields this parameter should be applied through SQL Runner?
- Open the Explore query in SQL Runner and validate whether removing the conversion from date fields changes the results.
- Open the Explore query in SQL Runner to determine which fields are converted.
- Use the CAST function in SQL Runner to ensure that all underlying fields are dates and conversions are not applied.
- Use the Describe feature in SQL Runner to determine which fields include time data.
Answer(s): C
Reference:
https://community.looker.com/technical-tips-tricks-1021/how-looker-does-timezones-and-how-to-troubleshoot-them-25477
Reveal Solution Next Question