Comments (1)
In Trino, timestamp with time zone
is rendered with it's stored time zone. This is intentional, as the insertion time zone is considered to have meaning. Readers can choose to render it in a different time zone via at time zone
. The session time zone is used for conversions between timestamp
and timestamp with time zone
inside the query engine, as described by the SQL specification.
There are roughly three phases of processing when reading timestamp values that need to be considered:
- Internal representation after value is read from storage
- How the value is transported to the client
- Rendering the value to the user
Changing the representation after the value is read from storage is problematic. It makes it impossible to observe the value as it was stored, with its original time zone. Changing the representation when the value is transported to the client requires changes to the protocol to allow clients to express such preference. Adjusting the rendering in the client requires each client to be able to do so independently.
As an aside, Iceberg's timestamp with time zone type is stored in UTC, and the timezone information is lost. From the Iceberg spec (https://iceberg.apache.org/spec/#primitive-types):
Timestamp values with time zone represent a point in time: values are stored as UTC and do not retain a source time zone (2017-11-16 17:10:34 PST is stored/retrieved as 2017-11-17 01:10:34 UTC and these values are considered identical).
from trino.
Related Issues (20)
- Delta Lake connector doesn't write min/max stats on `BOOLEAN`, `TIMESTAMP`, and `VARBINARY` types
- PruneTableScanColumns throws an exception when column name contains only non-alphanumeric HOT 1
- Fix broken `pt (default, suite-databricks-unity-http-hms, )`
- Hive connector: SELECT * works, but SELECT on specific column doesn't - NullPointerException
- [Trino-420] Relevant Error message should be shown when clientTags is not passed while query is run
- Pinot connector has no way to pass query option along with query HOT 1
- Trino Query getting Hung after reading 400~600M rows (10~12GB data) of Parquet from object storage HOT 3
- Flaky test TestHiveTransactionalTable.testLargePartitionedUpdate: Hive TEZ failure: `Vertex did not succeed due to OWN_TASK_FAILURE`
- Invalid position 2 in block with 2 positions with multiple filters on array(varchar) HOT 3
- Metadata listing fails when Glue database (schema) dropped concurrently HOT 1
- Correctness issue for predicate pushdown on approx numeric column in Postgres
- Improve stats reporting for group by operator
- how to access mongo object?
- ColumnMask is enabled before aggregation, rather than after aggregation. HOT 1
- OAuth userinfo should be cached
- Trino postgres connector does not support modifying table rows HOT 1
- enabled filesystem caching query error HOT 1
- MySQL slow in 447 HOT 3
- High Memory usage after 444 version with iceberg connector HOT 4
- Regression: Sql planner fails with unexpected parameters for function $try_cast HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino.