-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postgres): ensure that no timezone conversion takes place on time…
…stamptz columns when selecting them out
- Loading branch information
Showing
3 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
ibis/backends/postgres/tests/snapshots/test_client/test_timezone_from_column/out.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
WITH t0 AS ( | ||
SELECT | ||
t2.id AS id, | ||
t2.ts_tz AS tz, | ||
t2.ts_no_tz AS no_tz | ||
FROM x AS t2 | ||
) | ||
SELECT | ||
t0.id, | ||
CAST(t0.tz AS TIMESTAMPTZ) AS tz, | ||
CAST(t0.no_tz AS TIMESTAMP) AS no_tz, | ||
t1.id AS id_right | ||
FROM t0 | ||
LEFT OUTER JOIN y AS t1 | ||
ON t0.id = t1.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters