-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for the newly enabled functionality, using a strftime overlo…
…ad added by ICU
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ query II | |
select * from read_csv_auto('__TEST_DIR__/timestamps.csv'); | ||
---- | ||
Tuesday Tuesday | ||
|
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,24 @@ | ||
# name: test/sql/copy/csv/test_csv_timestamp_tz_icu.test | ||
# description: Test CSV with timestamp_tz and timestampformat | ||
# group: [csv] | ||
|
||
statement ok | ||
pragma enable_verification | ||
|
||
require icu | ||
|
||
statement ok | ||
SET Calendar = 'gregorian'; | ||
|
||
statement ok | ||
SET TimeZone = 'America/Los_Angeles'; | ||
|
||
statement ok | ||
COPY ( | ||
SELECT make_timestamptz(1713193669561000) AS t | ||
) TO '__TEST_DIR__/timestamp-format.csv' (FORMAT CSV, timestampformat '%x %X.%g%z'); | ||
|
||
query I | ||
select * from read_csv('__TEST_DIR__/timestamp-format.csv', all_varchar=true) | ||
---- | ||
2024-04-15 08:07:49.561-07 |