trino: Provide AT ZONE-equivalent functions where zone name is not constant
~make at_timezone it public (see @dain 's https://github.com/prestodb/presto/issues/5162#issuecomment-434127569) and add documentation~
This is required to perform AT TIME ZONE conversion when zone is not a constant
See https://github.com/prestosql/presto/issues/135#issuecomment-466559709 comment below for what should be implemented in this issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (21 by maintainers)
Commits related to this issue
- [#135] Expose complete query for execute statement — committed to zhangminglei/trino by deleted user 2 years ago
- [#135] Expose complete query for execute statement — committed to zhangminglei/trino by deleted user 2 years ago
There are a bunch of references to this function in stackoverflow, so at the very least we would need to deprecate the old name.
Summing up:
with_timezonefor (1)at_timezonefor (2)I’d say, let’s leave that one out. It seems an uncommon use case with a reasonable workaround. If there’s demand later, we can consider adding such a function.