-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: strip timezone info from DTimestamp parsing
Previously, parsing a DTimestamp would silently retain timezone information, even though it wouldn't get printed out in many cases. This led to problems with timestamp serialization in DistSQL mode in particular. Release note (bug fix): ensure that the timestamp data type never retains a timezone and renders consistently across a distributed computation flow.
- Loading branch information
1 parent
049174a
commit 0b6baa3
Showing
8 changed files
with
51 additions
and
32 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
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,17 @@ | ||
# LogicTest: local local-opt local-parallel-stmts fakedist fakedist-opt fakedist-metadata | ||
|
||
query T | ||
SELECT '2000-05-05 10:00:00+03':::TIMESTAMP | ||
---- | ||
2000-05-05 10:00:00 +0000 +0000 | ||
|
||
statement ok | ||
CREATE TABLE a (a int); INSERT INTO a VALUES(1) | ||
|
||
# Ensure that timestamp serialization doesn't break even if the computation is | ||
# distributed: #28110. | ||
|
||
query T | ||
SELECT '2000-05-05 10:00:00+03':::TIMESTAMP FROM a | ||
---- | ||
2000-05-05 10:00:00 +0000 +0000 |
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
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
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
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
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
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