diff --git a/test/regression/expected/extensions.out b/test/regression/expected/extensions.out index 0884cf9e..c0288998 100644 --- a/test/regression/expected/extensions.out +++ b/test/regression/expected/extensions.out @@ -2,8 +2,9 @@ SET duckdb.force_execution TO false; SELECT * FROM duckdb.raw_query($$ SELECT extension_name, loaded, installed FROM duckdb_extensions() WHERE loaded and extension_name != 'jemalloc' $$); NOTICE: result: extension_name loaded installed VARCHAR BOOLEAN BOOLEAN -[ Rows: 4] +[ Rows: 5] cached_httpfs true true +icu true true json true true parquet true true pgduckdb true false diff --git a/test/regression/expected/timestamp_with_interval.out b/test/regression/expected/timestamp_with_interval.out new file mode 100644 index 00000000..7362f7e5 --- /dev/null +++ b/test/regression/expected/timestamp_with_interval.out @@ -0,0 +1,12 @@ +CREATE TABLE recently_created_table(a VARCHAR); +INSERT INTO recently_created_table VALUES ('latest 1'), ('latest 2'), ('latest 3'); +select 1 as result +FROM recently_created_table +WHERE timestamp with time zone '2024-12-10 13:59:59.776896+00' < CAST((NOW() + INTERVAL '1 day') AS date) +LIMIT 1; + result +-------- + 1 +(1 row) + +drop table recently_created_table; diff --git a/test/regression/schedule b/test/regression/schedule index 51d16a7b..eec4208b 100644 --- a/test/regression/schedule +++ b/test/regression/schedule @@ -26,4 +26,5 @@ test: transaction_errors test: secrets test: prepare test: function +test: timestamp_with_interval test: approx_count_distinct diff --git a/test/regression/sql/timestamp_with_interval.sql b/test/regression/sql/timestamp_with_interval.sql new file mode 100644 index 00000000..f601afd3 --- /dev/null +++ b/test/regression/sql/timestamp_with_interval.sql @@ -0,0 +1,9 @@ +CREATE TABLE recently_created_table(a VARCHAR); +INSERT INTO recently_created_table VALUES ('latest 1'), ('latest 2'), ('latest 3'); + +select 1 as result +FROM recently_created_table +WHERE timestamp with time zone '2024-12-10 13:59:59.776896+00' < CAST((NOW() + INTERVAL '1 day') AS date) +LIMIT 1; + +drop table recently_created_table; diff --git a/third_party/pg_duckdb_extensions.cmake b/third_party/pg_duckdb_extensions.cmake index 2827fcee..d9e88a74 100644 --- a/third_party/pg_duckdb_extensions.cmake +++ b/third_party/pg_duckdb_extensions.cmake @@ -1,4 +1,5 @@ duckdb_extension_load(json) +duckdb_extension_load(icu) # This is relative to third_party/duckdb dir duckdb_extension_load(cached_httpfs SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../cached_httpfs"