-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix](paimon)Fixed the reading of timestamp with time zone type da…
…ta (#37716) ## Proposed changes 1. When using jni to read timestamps with time zones, the time needs to be converted to local time 2. In version 0.8 of paimon, the time zone (isAdjustToUTC) information of parquet files is added, and doris can parse data directly according to the time zone information
- Loading branch information
1 parent
4ebb45c
commit fd5f0d4
Showing
7 changed files
with
400 additions
and
51 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
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
139 changes: 139 additions & 0 deletions
139
regression-test/data/external_table_p0/paimon/paimon_timestamp_types.out
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,139 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !c1 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 | ||
|
||
-- !c2 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 | ||
|
||
-- !ltz_ntz_simple2 -- | ||
1 {"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} {"2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456", "2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456"} ["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] ["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] {"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple3 -- | ||
{"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple4 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple5 -- | ||
2024-01-04T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple6 -- | ||
{"2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456", "2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple7 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple8 -- | ||
2024-01-04T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple9 -- | ||
["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple10 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple11 -- | ||
["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple12 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple13 -- | ||
{"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple14 -- | ||
2024-01-01T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple15 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !c1 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T02:04:05.100 2024-01-02T02:04:05.120 2024-01-02T02:04:05.123 2024-01-02T02:04:05.123400 2024-01-02T02:04:05.123450 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 2024-01-02T02:04:05.123456 | ||
|
||
-- !c2 -- | ||
1 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T18:04:05.123456 2024-01-02T18:04:05.123456 2024-01-02T18:04:05.123456 2024-01-02T10:04:05.100 2024-01-02T10:04:05.120 2024-01-02T10:04:05.123 2024-01-02T10:04:05.123400 2024-01-02T10:04:05.123450 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 2024-01-02T10:04:05.123456 | ||
|
||
-- !ltz_ntz_simple2 -- | ||
1 {"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} {"2024-01-03 02:12:34.123456":"2024-01-04 02:12:34.123456", "2024-01-01 02:12:34.123456":"2024-01-02 02:12:34.123456"} ["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] ["2024-01-01 02:12:34.123456", "2024-01-02 02:12:34.123456", "2024-01-03 02:12:34.123456"] {"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 02:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple3 -- | ||
{"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple4 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple5 -- | ||
2024-01-04T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple6 -- | ||
{"2024-01-03 02:12:34.123456":"2024-01-04 02:12:34.123456", "2024-01-01 02:12:34.123456":"2024-01-02 02:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple7 -- | ||
\N | ||
|
||
-- !ltz_ntz_simple8 -- | ||
\N | ||
|
||
-- !ltz_ntz_simple9 -- | ||
["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple10 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple11 -- | ||
["2024-01-01 02:12:34.123456", "2024-01-02 02:12:34.123456", "2024-01-03 02:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple12 -- | ||
2024-01-02T02:12:34.123456 | ||
|
||
-- !ltz_ntz_simple13 -- | ||
{"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 02:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple14 -- | ||
2024-01-01T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple15 -- | ||
2024-01-02T02:12:34.123456 | ||
|
||
-- !ltz_ntz_simple2 -- | ||
1 {"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} {"2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456", "2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456"} ["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] ["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] {"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple3 -- | ||
{"2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple4 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple5 -- | ||
2024-01-04T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple6 -- | ||
{"2024-01-03 10:12:34.123456":"2024-01-04 10:12:34.123456", "2024-01-01 10:12:34.123456":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple7 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple8 -- | ||
2024-01-04T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple9 -- | ||
["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple10 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple11 -- | ||
["2024-01-01 10:12:34.123456", "2024-01-02 10:12:34.123456", "2024-01-03 10:12:34.123456"] | ||
|
||
-- !ltz_ntz_simple12 -- | ||
2024-01-02T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple13 -- | ||
{"crow1":"2024-01-01 10:12:34.123456", "crow2":"2024-01-02 10:12:34.123456"} | ||
|
||
-- !ltz_ntz_simple14 -- | ||
2024-01-01T10:12:34.123456 | ||
|
||
-- !ltz_ntz_simple15 -- | ||
2024-01-02T10:12:34.123456 | ||
|
Oops, something went wrong.